Cursor SSE Config
{
"mcpServers": {
"braindb": {
"url": "https://mcp.braindb.tech/mcp/sse",
"headers": {
"Authorization": "Bearer bdb_live_YOUR_API_KEY"
}
}
}
}
Nothing runs locally on your laptop when your IDE connects to BrainDB Cloud. Your editor opens an SSE connection to https://mcp.braindb.tech/mcp/sse using a tenant bdb_live_ key, routing tool calls through FastMCP server dispatch into Neo4j across five tiers: sub-15ms hot working memory, two FIFO task ring buffers, and cold HNSW + AST code graphs.
Run the CLI wizard in your repo root. It writes your IDE MCP config (skipping existing files unless --force is passed) and adds small rule files so your assistant reads task state before modifying files.
# Interactive Node.js installer
npx braindb-mcp init --api-key bdb_live_YOUR_API_KEY
# Legacy scoped package alias (monorepo compatibility)
npx @braindb/mcp init --api-key bdb_live_YOUR_API_KEY
# Standalone Python CLI
pip install braindb-mcp && braindb-mcp init --api-key bdb_live_YOUR_API_KEY
# Non-interactive single-client flags
npx braindb-mcp init --client cursor --api-key bdb_live_YOUR_API_KEY
npx braindb-mcp init --client claude --api-key bdb_live_YOUR_API_KEY
npx braindb-mcp init --client vscode --api-key bdb_live_YOUR_API_KEY
npx braindb-mcp init --client windsurf --api-key bdb_live_YOUR_API_KEY
npx braindb-mcp init --client antigravity --api-key bdb_live_YOUR_API_KEY
Two setup mistakes happen most often: reusing the same project_id across unrelated repos (which mixes graph entities), or calling ingest_corpus before adding an extraction key in your dashboard vault. Run health_check first to verify your vault and Neo4j pool are green.
{
"mcpServers": {
"braindb": {
"url": "https://mcp.braindb.tech/mcp/sse",
"headers": {
"Authorization": "Bearer bdb_live_YOUR_API_KEY"
}
}
}
}
{
"mcpServers": {
"braindb": {
"command": "npx",
"args": [
"-y", "mcp-remote",
"https://mcp.braindb.tech/mcp/sse",
"--header",
"Authorization: Bearer bdb_live_YOUR_API_KEY"
]
}
}
}
{
"servers": {
"braindb": {
"type": "sse",
"url": "https://mcp.braindb.tech/mcp/sse",
"headers": {
"Authorization": "Bearer bdb_live_YOUR_API_KEY"
}
}
}
}
{
"mcpServers": {
"braindb": {
"serverUrl": "https://mcp.braindb.tech/mcp/sse",
"headers": {
"Authorization": "Bearer bdb_live_YOUR_API_KEY"
}
}
}
}
Don't paste the whole schema file into your system prompt. Keep startup rules short and pull /static/mcp_tools_api.md only when you need exact parameter types.
ingest_corpus — Pass a directory path for multi-file datasets so community clustering builds once instead of file by file.ingest_raw_text — Write text or markdown straight into a target layer.ingest_context — Store reference notes scoped to a project_name.ingest_codebase_graph — Build an AST dependency graph across files, classes, and functions.query_brain_db — Adaptive router picking hot slots, communities, or cold retrieval.query_graph — Hybrid vector plus multi-hop Neo4j traversal (sota_mode).query_semantic_layer — Direct vector search across KNOWLEDGE.query_code_graph — Deterministic AST caller/callee lookup for a code symbol.hierarchical_community_search — Architecture-level summaries across modules.build_hierarchical_communities — Rebuild community clusters after large ingests.start_spec_task — Register every Markdown checkbox plus a SHA-256 fingerprint before editing files.reconcile_spec_task — Detect manual user changes to a spec without clobbering checked work.sync_and_complete_task — Enforce 100% completion, ingest the spec once, and record an atomic provenance link.archive_completed_tasks — Rotate finished tasks through Warm (cap 50) and Archive (cap 100).initialize_project_layers — Create clean graph layers for a new project_name.get_hot_layer — Sub-15ms, zero-token lookup of ACTIVE_TASK, USER_PREF, WARM_TASK, and WARM_ARCHIVE.upsert_slot_fact — Update subtask status or durable preferences.upsert_slot_facts_batch — Atomic batch slot updates.add_graph_relationships — Wire explicit domain edges between entities.log_episode — Record time-stamped execution events.resolve_and_link_entities — Merge duplicate entity aliases.reinforce_memory — Boost salience on reused facts.run_sleep_consolidation — Background deduplication and cleanup.audit_epistemic_revisions — Check superseded versus active beliefs (invalidation timestamps).compute_bottom_pointers / compute_bottom_reverse_pointers / get_bottom_pointers — Bidirectional chunk-to-entity pointers.health_check — Confirm Neo4j, Redis, and SSE gateway health.manage_vault_credentials — Update encrypted BYOK models (extractor_model, summary_model, reranker_model) and Neo4j URIs when agent vault management is enabled in dashboard settings.manage_agent_keys — Rotate or revoke bdb_live_ tokens.get_account_telemetry — Inspect request counts and usage metrics.BrainDB takes 0% markup on LLM inference. Point every pipeline stage at one model, or split them in Encrypted Cloud Vault across OpenRouter, NVIDIA NIM, OpenAI, Anthropic, Google Gemini, or DeepSeek Direct — for instance running extractor_model on a fast flash model while reserving a stronger model for summary_model and reranker_model.
Configuration Precedence Order: per-request overrides apply first, then tenant Encrypted Cloud Vault settings, then server defaults. See how those models performed on our benchmark suite or read our agent grounding rules.