the-brain-mcp
v0.3.0
Published
MCP server for The Brain — connect any MCP client (Claude Code, Cursor, agents) to a Brain tenant. Thin, zero-dependency stdio adapter over the HTTP API.
Maintainers
Readme
the-brain-mcp
MCP server for The Brain. Connects any MCP client — Claude Code, Cursor, Cline, or a custom agent — to a Brain tenant as long-term, access-scoped memory. A thin, zero-dependency stdio adapter over the Brain HTTP API.
Use
No install needed — npx fetches it:
claude mcp add brain \
-e CORTEX_KG_URL=https://your-brain \
-e CORTEX_KG_API_KEY=ckg_live_xxx \
-- npx -y the-brain-mcpOr in any client's mcp.json:
{
"mcpServers": {
"brain": {
"command": "npx",
"args": ["-y", "the-brain-mcp"],
"env": { "CORTEX_KG_URL": "https://your-brain", "CORTEX_KG_API_KEY": "ckg_live_xxx" }
}
}
}Generate your personal CORTEX_KG_API_KEY from the Brain app's Connect agents tab. The key is bound to your account, so the agent sees only the projects, tasks and ideas you have access to.
Config (env)
CORTEX_KG_URL— base URL of the Brain service (defaulthttp://localhost:6100)CORTEX_KG_API_KEY— your key (required)
Tools
kg_recall, kg_remember, kg_add_node, kg_add_edge, kg_get_node, kg_neighbors, kg_traverse, kg_feedback, kg_stats — all scoped to the key's access.
