# BrainDB Cloud

> Sovereign Cognitive Memory & Relational GraphRAG Gateway for Autonomous AI Agents and Developer IDEs.

BrainDB provides two distinct, sovereign services that stop agent amnesia and eliminate hallucinations:
1. **Working Memory Service**: Sub-15ms task gating, continuous state tracking across session compactions, and an active hot layer with zero token bloat.
2. **Relational GraphRAG Service**: Combines vector similarity search with a connected Neo4j knowledge graph for verified multi-hop reasoning and deterministic AST caller/callee trees.

## Empirical Benchmark Performance
- **GraphRAG Bench (Novel)**: 89.5% accuracy (+23.41% over FalkorDB baseline)
- **LegalBench RAG**: 65.67% recall @ 1 (+60.73% all-time SOTA record)
- **LongMemEval v2**: 75.83% accuracy (+6.53% over Codex baseline)
- **GraphRAG (HotpotQA)**: 87.4% accuracy across multi-hop reasoning benchmarks

## Quickstart & Installation
To scaffold always-active IDE rules and FastMCP configurations into any project:

```bash
# Node.js (npx / npm / yarn):
npx @braindb/mcp init --api-key bdb_live_YOUR_KEY
yarn dlx @braindb/mcp init --api-key bdb_live_YOUR_KEY

# Python (pip):
pip install braindb-mcp && braindb-mcp init --api-key bdb_live_YOUR_KEY
```

## Supported Environments
- **Cursor IDE**: `.cursor/rules/braindb.mdc` (alwaysApply: true) & `.cursor/mcp.json`
- **VS Code (GitHub Copilot)**: `.github/copilot-instructions.md` & `.vscode/mcp.json`
- **Claude Code & Desktop**: `CLAUDE.md`, `.claude/rules/braindb.md`, and `mcp-remote` SSE bridge
- **Google Antigravity**: `.agents/rules/braindb.md` (trigger: always_on)
- **Windsurf**: `.windsurf/rules/braindb.md` & `.windsurf/mcp_config.json`

## Supported LLM Providers
- **Online Aggregators**: OpenRouter (100+ models)
- **Free Developer Catalog**: NVIDIA NIM (build.nvidia.com, 1,000 free credits, DeepSeek-R1, Llama 3.3 70B, Nemotron)
- **Direct APIs**: DeepSeek Direct, xAI Grok, Groq LPU, Anthropic Direct, OpenAI Direct, Google Gemini

## Documentation & Full API
For detailed 31-tool schemas, hosted MCP SSE endpoint, and CLI usage, see:
- Hosted FastMCP SSE Endpoint: https://mcp.braindb.tech/mcp/sse
- Cloud Control Plane: https://braindb.tech/
- XML Sitemap: https://braindb.tech/sitemap.xml
- Full API Reference (31 Tools): https://braindb.tech/static/mcp_tools_api.md
- npm Package: https://www.npmjs.com/package/@braindb/mcp
- PyPI Package: https://pypi.org/project/braindb-mcp/

