Claude Desktop Setup
Connect RetainDB MCP to Claude Desktop with the current package entrypoint, current environment variables, and the modern primary tool verbs.
Use this path when you want Claude Desktop to call RetainDB tools directly against your projects and local workspace.
What you need
- Claude Desktop installed
- Node.js available on the same machine
- a RetainDB API key starting with
rdb_ - an optional default project slug
The basic config
Add a RetainDB server entry to your Claude Desktop MCP config:
{
"mcpServers": {
"retaindb-context": {
"command": "npx",
"args": ["-y", "@retaindb/mcp-server@latest"],
"env": {
"RETAINDB_API_KEY": "rdb_...",
"RETAINDB_API_URL": "https://api.retaindb.com",
"RETAINDB_PROJECT": "my-project"
}
}
}
}What matters here:
commandlaunchesnpxargsresolve the current MCP packageRETAINDB_API_KEYauthenticates tool callsRETAINDB_PROJECTgives Claude a default project when the tool call does not specify one
Setup flow
- add the server block to Claude Desktop's MCP config
- save the file
- restart Claude Desktop completely
- ask Claude to call a simple RetainDB tool
A good first smoke test
Start with low-risk primary verbs:
searchsearch_coderemember
If Claude can retrieve context, search code, or store one remembered fact, the MCP bridge is working.
Common mistakes
Wrong environment variable name
Use RETAINDB_API_URL if you need a non-default base URL.
Old tool names from stale examples
Prefer modern primary verbs like search, search_code, and remember. Older legacy-style tool names in stale screenshots or copied configs are out of date.
Forgetting the restart
Claude Desktop generally needs a full restart after config changes.
Expecting automatic project selection
If RETAINDB_PROJECT is missing, some tools may still work, but the initial experience is smoother when a default project is set.
When setup fails
Check these in order:
npxcan run on the machine- the
rdb_*API key is valid - the project slug, if set, actually exists
- Claude Desktop was fully restarted
- the requested tool name is part of the current MCP surface
Next step
Once Claude Desktop can start the server, continue to semantic search tools or security and scope controls. If you still need the broader tool overview, read setup tools.
Was this page helpful?
Your feedback helps us prioritize docs improvements weekly.