Integration
Claude Code
This guide registers knowmind as an MCP server in the Claude Code command line tool. From then on, every Claude Code chat has access to the ten knowmind tools — recall, store, link, unlink, stats and six more.
Prerequisites
- Claude Code installed and ready (check:
claude --version) - knowmind account on Business API or higher (for your own API token), or on Private / Pro / Business with the knowmind CLI installed
- For the CLI option: Node.js 20 or newer
Steps
- 1
Option A: via the installed knowmind CLI
This option is the fastest — assuming you have the knowmind CLI installed and signed in. If not, run through the command line guide first.
bashclaude mcp add knowmind knowmind mcpClaude Code launches the knowmind CLI on demand in stdio MCP mode. The token stays in
~/.knowmind/config.jsonand is not stored in the Claude Code configuration.Outcome:
claude mcp listshows an entryknowmind: knowmind mcp — Connected. - 2
Option B: HTTP transport with your own API token
This option uses the official HTTP transport protocol with a bearer token. Requires the Business API plan or higher, which unlocks personal API tokens.
In the dashboard under API Tokens create a token with scopes
readandwrite. Copy the clear text once — afterwards only the prefix is visible.bashclaude mcp add knowmind \ --transport http \ --url https://knowmind.de/api/mcp/v1 \ --header "Authorization: Bearer kmt_…"Safety noticeToken appears in the configuration
With this option the token is stored in the Claude Code configuration file. Make sure this file is not checked into version control or backed up to a cloud service. If you suspect compromise, revoke the token in the dashboard. - 3
Smoke-test from chat
Start a Claude Code session and ask a question that points at content in your Memory Store. Claude usually recognises the need for a recall on its own. If needed you can ask explicitly: "Look up … in knowmind".
bash$ claude > What open items are on the Müller contract?Outcome: Claude calls
knowmind.recall(visible in the tool output) and answers based on the hits from your Memory Store. - 4
Save a memory from the chat
In the same chat you can ask Claude to write something into knowmind. Claude picks
knowmind.store_memory(for short notes) orknowmind.upload_document(for longer texts that need chunking).bash> Store as a new memory: "QM training confirmation Maria, 12 March"Outcome: Claude confirms the new memory and returns its memory ID. The entry appears immediately in the knowmind dashboard.
Verify the result
The integration is healthy when all four conditions hold:
claude mcp listshows knowmind as Connected.- In the chat, a domain question triggers a
knowmind.recallcall. - The knowmind dashboard "Recent activity" lists the actions you took.
- Running
knowmind statsin a second terminal shows the updated memory count.
Troubleshooting
| Error message | Cause | Resolution |
|---|---|---|
| claude mcp list shows knowmind as Failed | knowmind CLI not on PATH (Option A) or bad header value (Option B). | Option A: run which knowmind / where knowmind — if empty, reinstall the CLI. Option B: check the token in the dashboard and re-register. |
| Tool calls time out | First request in a cold-start situation or network latency. | Retry the request. If it persists, run knowmind health to verify service reachability. |
| Memory type unknown | Claude passed an invalid memory_type value. | Valid values: semantic, episodic, procedural, reference. Be explicit with Claude on the next save. |