Mind · MCP bridge

Memory for the agent you already use.

Fourteen tools. Five lines of config. Your Claude Code, Cursor, or Codex CLI reading from the same compounding graph.

The short answer

Anvaya’s MCP memory server gives any MCP-compatible agent persistent memory: Claude Code, Cursor, Codex CLI, Windsurf, and more connect with five lines of .mcp.json and get 14 tools, mind_query (PackedContext under a 4096-token budget), mind_search, mind_get_node, mind_record_change, mind_feedback, mind_stats, session start/end, thread and delta retrieval, proactive candidates, intent, retro-promotion, and opt-in federation.

Read the full answer

The server is your local Mind daemon (SQLite + HNSW under .anvaya/mind/), so nothing is hosted and nothing leaves your machine. Anvaya CLI itself uses faster native transports (in-process Direct under 0.5ms, Unix-socket IPC around 2ms); MCP at ~10ms is the universal bridge. One graph, every harness: record a fix in the terminal, recall it in the IDE.

What the client receives

Your client asks for context. By default it gets the best 4,096 tokens.

Candidates are ranked and packed into a fixed budget by value per token; the rest stays on disk.

Token budget · liveillustrative
Served11 of 14
Tokens3,310 / 4,096
  1. 0.94decision keep WAL mode for the store180served
  2. 0.91bug fix retry loop double-charged on a 502420served
  3. 0.88pattern handlers return Result<_, ApiError>260served
  4. 0.86concept an invoice is immutable once issued140served
  5. 0.83synthesis billing failures cluster at the gateway edge610served
  6. 0.79approach tried: idempotency keys in Redis, dropped380served
  7. 0.74bug fix timezone drift in the nightly settlement job720served
  8. 0.71decision Postgres for ledgers, SQLite for local state230served
  9. 0.66pattern every migration ships with a down step160served
  10. 0.62concept settlement window is T+2 business days90served
  11. 0.55approach tried: batching webhooks per merchant540over budget
  12. 0.49bug fix flaky test: clock not frozen in fixtures310over budget
  13. 0.44pattern feature flags are read once per request120served
  14. 0.38synthesis the gateway owns retries; callers never do880over budget

11 of 14 served, 3,310 of 4,096 tokens.

Sample candidates under the real ceiling: 4,096 tokens at 0.85 fill, 12 nodes max. The shipped pack also weighs novelty.anvaya-mind-rs/crates/mind-services/src/quorum.rs · mind-types/src/config.rs

The 14 tools

A memory API, not a file.

Reads and writes, the agent accumulates knowledge, not just consumes it.

mind_query (budget 4096)The main read path: natural-language query returns a PackedContext (critical nodes, patterns, fixes, concepts) capped at a 4096-token budget.
mind_search · mind_get_nodeHybrid semantic + keyword search across the graph; full node fetch with links, confidence, and utility history.
mind_record_change · mind_feedbackWrite paths for agents: record decisions, fixes, and turn feedback so future sessions (any client) benefit.
mind_stats · threads · deltaGraph stats, causal thread retrieval, and delta queries for what changed since a session.
mind_proactive · mind_intentIntent-aware proactive candidates and the session's inferred intent, memory that can volunteer under an EVOI gate.
sessions · retro_promote · federateExplicit session start/end, knowledge recovery, and opt-in cross-project export/import.

Setup

Five lines.

Drop in project root as .mcp.json, restart the client, query.

Anvaya's MCP server: over stdioThe server speaks MCP stdio from your local memory daemon, no ports, no tokens, no accounts.
Same graph everywhereSessions from CLI, IDE, and CI land in one store with per-project isolation and cross-project federation when you opt in.
Inspectable alwaysmind_stats shows nodes, sessions, and injection utility; the SQLite file opens in any browser.

Questions

Asked about the MCP server.

How do I add memory to Claude Code?

Point Claude Code at Anvaya's MCP memory server: five lines of .mcp.json in your project root. Claude Code then gets 14 memory tools (query, search, record, feedback, stats, sessions, threads, proactive, intent, federation) backed by your local graph. No account, no hosted service; memory stays under .anvaya/mind/.

Does it work with Cursor, Codex, or other MCP clients?

Yes, any MCP-compatible client speaks the same protocol. Anvaya CLI uses faster native transports (Direct <0.5ms, IPC ~2ms); MCP (~10ms) is the universal bridge for third-party harnesses.

What does a budgeted query mean?

mind_query takes a token_budget (default 4096) and the server packs the best context that fits: top critical nodes first, then patterns, fixes, concepts. Your agent gets high-signal memory at a fixed, predictable cost per call.

Is my code sent anywhere?

No. The MCP server is your local daemon over stdio/Unix socket. Queries never leave your machine unless you independently configure a cloud LLM provider for the agent itself.

Run agents that fit on your laptop.

23.4 MB median own-process memory, measured across 1030 runs (994 verified) and fourteen harnesses. One command installs the harness and the Mind together. Nothing leaves your machine on the Ollama path.

Developer beta. macOS on Apple Silicon and Linux on x86_64 or arm64. Memory figure: --no-mind, macOS/ARM, n=3 per cell. Pre-1.0, pricing not set.