# Add the KnowMan MCP server to LM Studio

Client: LM Studio

LM Studio 0.3.17 and later acts as an MCP Host and supports both local and [remote MCP](https://www.knowman.io/guides/mcp-server-knowledge-base) servers, so you can connect the KnowMan MCP server and make it available to your models ([LM Studio docs](https://lmstudio.ai/docs/app/mcp)). The documented path is to edit LM Studio's mcp.json, which follows Cursor's notation, and add the hosted KnowMan server URL with a Bearer key. You can also run KnowMan locally with `npx -y @knowman/mcp` ([KnowMan MCP](https://github.com/Essatt/knowman-mcp)).

## LM Studio mcp.json, hosted KnowMan server

```json
{
  "mcpServers": {
    "knowman": {
      "url": "https://api.knowman.io/mcp",
      "headers": {
        "Authorization": "Bearer km_..."
      }
    }
  }
}
```

## What you need

LM Studio 0.3.17 and later acts as an MCP Host, so it can connect MCP servers to the app and make them available to your models (LM Studio docs). To run the local KnowMan server you need Node 22 or newer (KnowMan MCP).

You also need a KnowMan API key. Create one in the web app at Settings > Connections > Connect an AI agent. Keys look like `km_...` and are shown exactly once, so copy the key right away (KnowMan MCP).

## Add the hosted KnowMan server

Switch to the "Program" tab in the right-hand sidebar and click Install > Edit mcp.json. This opens mcp.json in the in-app editor, where you add MCP servers by editing the file (LM Studio docs).

Paste the snippet from the config block above and replace `km_...` with your real key. LM Studio's mcp.json follows Cursor's notation, and remote servers are configured with a `url` plus a `headers` object containing the `Authorization` bearer value (LM Studio docs). The hosted KnowMan server lives at `https://api.knowman.io/mcp` (KnowMan MCP).

If you add a server manually next to an existing one, copy only the content after `"mcpServers": {` and before the closing brace, so the file stays valid (LM Studio docs).

## Run KnowMan as a local server instead

LM Studio 0.3.17 (b10) supports both local and remote MCP servers (LM Studio docs). If you prefer the local [stdio server](https://www.knowman.io/guides/what-is-an-mcp-server), use the same mcp.json editor with this entry, which follows KnowMan's documented stdio config (KnowMan MCP):

```json
{
  "mcpServers": {
    "knowman": {
      "command": "npx",
      "args": ["-y", "@knowman/mcp"],
      "env": {
        "KNOWMAN_API_KEY": "km_..."
      }
    }
  }
}
```

This needs Node 22 or newer on the machine running LM Studio (KnowMan MCP).

## Sign in once with knowman login

For the local setup you can skip pasting the key into mcp.json. Run `npx -p @knowman/mcp knowman login` once and [sign in](https://www.knowman.io/guides/personal-knowledge-base) in the browser. The saved credential is shared by the CLI and the MCP server, so the `env` block with `KNOWMAN_API_KEY` can be dropped from the config (KnowMan MCP).

The same package installs a `knowman` CLI with commands such as `kb-search`, `ask`, `save`, `recent`, `memories`, `status` and `logout`, which is handy for checking the account the server uses (KnowMan MCP).

## Check that KnowMan answers

Once the server entry is in mcp.json, connected MCP servers become available to your models (LM Studio docs). The simplest check is to ask your model something concrete, for example "search my KnowMan for reading lists" or "save this URL" (KnowMan MCP).

If nothing happens, retrace the two inputs: the server entry in mcp.json and, for the hosted server, a valid key in the Authorization header. If the model reports a rejected key, recreate the key at Settings > Connections in the web app (KnowMan MCP). For more background on the protocol, see [what an MCP server is](https://www.knowman.io/guides/what-is-an-mcp-server).

## The six KnowMan tools

KnowMan exposes six tools to MCP clients (KnowMan MCP):

`kb_search` searches [saved items](https://www.knowman.io/guides/how-to-save-articles) by [keyword or meaning](https://www.knowman.io/guides/ai-knowledge-base) and returns titles, URLs and metadata. `kb_ask` answers a question with citations. `kb_get_item` fetches the readable content of one item. `kb_save` saves a URL to the Inbox or Knowledge Base with an optional note. `kb_recent` lists recent items. `kb_memories` lists saved claims, decisions and playbooks, and is read-only (KnowMan MCP).

## Token use and trust with local models

LM Studio warns that some MCP servers designed for Claude, ChatGPT or Gemini may use excessive amounts of tokens, which can bog down a local model and trigger frequent context overflows (LM Studio docs). This applies to any server you add, not only KnowMan.

The same doc advises never installing MCP servers from untrusted sources, since some can run arbitrary code, access local files and use your network connection (LM Studio docs). The KnowMan server is open source under MIT, so the code can be inspected before you run it (KnowMan MCP). For a wider picture, see [how to connect any AI to your notes](https://www.knowman.io/guides/connect-any-ai-to-your-notes).

## Questions

### Which LM Studio version supports MCP servers?

LM Studio 0.3.17 and later act as an MCP Host, so the app can connect MCP servers and make them available to your models. Version 0.3.17 (b10) supports both local and remote servers. See LM Studio docs.

### Does LM Studio support remote MCP servers?

Yes. Since 0.3.17 (b10), LM Studio supports both local and remote MCP servers. Remote servers are configured in mcp.json with a `url` key and a `headers` object holding an `Authorization` bearer value (LM Studio docs).

### Where do I find LM Studio's mcp.json file?

Open it from the app: switch to the "Program" tab in the right-hand sidebar and click Install > Edit mcp.json. This opens the file in the in-app editor, where you add servers by editing it (LM Studio docs).

### Can I run KnowMan locally instead of using the hosted server?

Yes. KnowMan ships a local stdio server, package `@knowman/mcp`, started with `npx -y @knowman/mcp` on Node 22 or newer. It authenticates with `KNOWMAN_API_KEY` in the environment (KnowMan MCP).

## Related pages

- [What is an MCP server?](https://www.knowman.io/guides/what-is-an-mcp-server)

- [Connect your knowledge base through KnowMan's MCP server](https://www.knowman.io/guides/mcp-server-knowledge-base)

- [What Is a Knowledge Base for AI Agents?](https://www.knowman.io/guides/knowledge-base-for-ai-agents)

- [How Do You Connect AI to Your Notes?](https://www.knowman.io/guides/connect-any-ai-to-your-notes)

## More in this topic

- [KnowMan MCP server for Microsoft Copilot Studio](https://www.knowman.io/integrations/copilot-studio)
- [Connect Open WebUI to KnowMan](https://www.knowman.io/integrations/open-webui)
- [Add the KnowMan MCP server to LibreChat](https://www.knowman.io/integrations/librechat)

## More for LM Studio

- [How to give LM Studio better memory](https://www.knowman.io/guides/lm-studio-memory)
- [How to teach LM Studio your knowledge](https://www.knowman.io/guides/teach-lm-studio-your-knowledge)
- [Add a personal knowledge base to LM Studio](https://www.knowman.io/guides/lm-studio-knowledge-base)

## Give your local models your library

Try KnowMan Pro for 14 days with no credit card. [Create your account](https://app.knowman.io/signup)

[Start free](https://app.knowman.io/signup)

Every new account starts with 14 days of Pro. No credit card.

Source: https://www.knowman.io/integrations/lm-studio
