MCPUpdated 2026-05-25
Agent Host Setup
Setup snippets for Claude Code, Codex, Cursor, OpenCode, Windsurf, Cline, and generic MCP clients.
Applies to: RetainDB MCP
Most MCP hosts use the same JSON shape.
Claude Code, Cursor, Windsurf, Cline
json
{
"mcpServers": {
"retaindb": {
"command": "npx",
"args": ["-y", "@retaindb/mcp-server@latest"],
"env": {
"RETAINDB_API_KEY": "rdb_...",
"RETAINDB_API_URL": "https://api.retaindb.com",
"RETAINDB_PROJECT": "production"
}
}
}
}Codex
Use the host's MCP configuration and point it at the same command:
toml
[mcp_servers.retaindb]
command = "npx"
args = ["-y", "@retaindb/mcp-server@latest"]
[mcp_servers.retaindb.env]
RETAINDB_API_KEY = "rdb_..."
RETAINDB_API_URL = "https://api.retaindb.com"
RETAINDB_PROJECT = "production"OpenCode
json
{
"mcp": {
"retaindb": {
"type": "local",
"command": ["npx", "-y", "@retaindb/mcp-server@latest"],
"enabled": true,
"env": {
"RETAINDB_API_KEY": "rdb_...",
"RETAINDB_API_URL": "https://api.retaindb.com",
"RETAINDB_PROJECT": "production"
}
}
}
}Operational notes
- Keep API keys out of shared config files.
- Use one project per environment or workspace.
- Rotate keys if they are pasted into public logs.
- Use Agent Memory Bus tools for multi-agent tasks.
Next: Agent Memory Bus.
Was this page helpful?
Your feedback helps us prioritize docs improvements weekly.