@retaindb/mcp-server
v3.3.0
Published
Model Context Protocol server for RetainDB Context API - Connect Claude Desktop to your knowledge base
Maintainers
Readme
@retaindb/mcp-server
Context, memory, and grounded retrieval for coding agents — works with Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Cline, Continue, and any MCP-compatible client.
Install
npm i -g @retaindb/mcp-serverSetup
export RETAINDB_API_KEY="rdb_..."Project defaults automatically — no RETAINDB_PROJECT needed unless you want a specific one.
Claude Code
{
"mcpServers": {
"retaindb": {
"command": "retaindb-mcp",
"env": { "RETAINDB_API_KEY": "rdb_..." }
}
}
}Claude Desktop
Same config, added to ~/Library/Application Support/Claude/claude_desktop_config.json.
Tools
| Tool | Purpose |
|------|---------|
| context | Start here. Retrieves memories, indexed sources, and local codebase in one call. Pass messages to auto-store the conversation so the next session continues where this one left off. |
| remember | Store an explicit fact, preference, or instruction. |
| forget | Delete a memory by ID. |
| compress | Store old conversation turns as memories, return a trimmed message array when context window fills up. |
| index | Connect a source: github · web · pdf · local · slack · video |
| search | Semantic search over indexed sources + local codebase. |
| grep | Regex/text search local files. |
| read | Read a local file with optional line range. |
Automatic memory across sessions
Session 1: context(query, session_id="run-1", messages=[...])
→ ingests conversation in background
Session 2: context(query, session_id="run-2")
→ returns memories from session 1 — agent picks up where it left offNo configuration. No manual remember calls for conversation history. It just works.
Connectors
| Type | Required params |
|------|----------------|
| github | owner, repo |
| web | url |
| pdf | url or path |
| local | path |
| slack | channel_ids, token |
| video | url |
