Integrations
Connect Claude Code to Knownbase.
One command, OAuth sign-in, no key to paste. Claude Code gains persistent project memory it can search at the start of a task and write to at the end of one.
Connect in one command
claude mcp add --transport http knownbase https://knownbase.dev/mcp
The first tool call opens a browser so you can sign in and choose a workspace. Nothing else to configure.
Step by step
- Create a workspace. Sign up free — 3 projects, 300 notes, 2 MCP keys, no card required.
- Add the server. Run the command above in your project directory.
- Verify. Run
/mcpin Claude Code;knownbaseshould appear with its tools listed. - Authorize. Ask Claude Code to do something that needs memory (“search project memory for anything about deployments”). The first call opens a browser for sign-in and workspace selection.
- Teach it the habit. Add the CLAUDE.md section below.
Using an API key instead
If you're in CI, on a machine with no browser, or on a client build without OAuth support, generate a key in Settings → Workspace & MCP (shown in full only once) and configure it directly:
{
"mcpServers": {
"knownbase": {
"url": "https://knownbase.dev/mcp",
"headers": {
"Authorization": "Bearer kb_YOUR_KEY_HERE"
}
}
}
}
Tell Claude Code when to use it
This is the step people skip, and it's the one that decides whether the integration is useful. Paste into your project's CLAUDE.md:
## Project memory This project has persistent memory via the `knownbase` MCP server, under project "<your-project>". Before starting work on an unfamiliar area, `search_notes` for prior decisions, constraints and debugging findings about it. When you finish something durable, `upsert_note` it: - an architecture decision, with the reasoning and the alternatives - a non-obvious root cause (the explanation, not the patch) - an environment or deployment constraint - an approach that was tried and rejected, and why - a handoff, if you're stopping mid-task Code lives in git. Store the reasoning here. Don't store transcripts, generated output, or anything unconfirmed.
What the agent can do once connected
search_notes— find notes by query, project, tag, status or last-modified date. Returns snippets and metadata rather than full bodies, so searching is cheap; passincludeBody:truewhen you want everything inline.get_note/get_notes— read one note in full, or up to 50 by id in one call, with resolved[[links]]and backlinks.upsert_note— create or update. Updates are partial: omitted fields are left alone, so fixing a tag can't blank the body.list_projects— every project with note counts by status.list_note_revisions/get_note_revision— how a note changed, and what it used to say.delete_note— soft delete; restorable from the dashboard trash.backup_project— full content for one project, returned inline.
Every call is scoped to the workspace the credential belongs to. A key can additionally be marked read-only, or restricted to a single project — in which case notes in other projects are invisible to it, not merely refused.
Troubleshooting
- Server shows as failed in
/mcp. Usually an older client without remote HTTP MCP support. Use the API-key configuration above. - Authorization never opens. Make a request that actually requires a tool call — OAuth is triggered lazily on first use, not at add time.
- Writes are refused. The key is read-only. Check it in Settings → Workspace & MCP.
- Notes seem missing. The key may be scoped to one project. A project-scoped key sees only that project, by design.
Related
- Why Claude Code forgets, and what persists today
- Making Claude Code remember across sessions
- Connect Codex to the same workspace
- Full MCP tool reference
FAQ
Do I need an API key for Claude Code?
No. Claude Code supports OAuth for remote MCP servers, so the add command is the whole setup and the first tool call opens a browser to sign in. API keys exist for clients that can only do static configuration, and for CI or scripted environments.
How do I check it's connected?
Run /mcp inside Claude Code. The knownbase server should be listed with its tools. If it shows as failed, the usual cause is a client too old for remote HTTP MCP servers — try the API-key configuration instead.
Can I limit a key to one project?
Yes. When creating a key in Settings → Workspace & MCP, set a project. That key can then only see and write notes in that project; everything else behaves as if it does not exist. Useful when a client project's agent should not be able to read another client's notes.
How do I make Claude Code actually use it?
Add a short section to CLAUDE.md telling it when to search and when to save. Tools being available is not the same as the agent reaching for them; one paragraph of guidance is what turns this from a connected server into a working habit.
Connect Claude Code in the next two minutes
One command, OAuth sign-in, free plan. No card required.
Create free workspace