# 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 @braindb/mcp init --api-key bdb_live_YOUR_KEY

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

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

## 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 tool schemas, hosted MCP SSE endpoint, and Python SDK usage, see:
- Hosted FastMCP SSE Endpoint: https://mcp.braindb.tech/mcp/sse
- Cloud Control Plane: https://braindb.tech/
- Full API Reference: https://braindb.tech/static/mcp_tools_api.md
- GitHub Repository: https://github.com/braindb/braindb

