Docs · MCP Setup (Claude Code, Cursor, …)

MCP Setup (Claude Code, Cursor, …).

One memory, every harness.

The short answer

Not in the current beta bundle: mind-mcp is not one of the two shipped binaries yet, so treat this page as the shape the integration will take.

Read the full answer

Once available, Anvaya's MCP server exposes your local graph to any MCP client over stdio: 14 tools, budgeted queries (default 4096 tokens), zero accounts. Five lines of .mcp.json in your project root, restart the client, and Claude Code, Cursor, or Codex CLI reads and writes the same memory Anvaya CLI uses natively.

MCP Setup (Claude Code, Cursor, …)

Steps

1 · Start the daemonMind runs as a Unix-socket daemon (auto-spawn on first client connect). Verify with anv mind stats.
2 · Add .mcp.jsonFive lines in project root naming Anvaya's MCP server over stdio. Same file shape every MCP client expects.
3 · Restart the clientReload Claude Code / Cursor / Codex so it picks up the server. Expect 14 tools: mind_query, mind_search, mind_get_node, mind_record_change, mind_feedback, mind_stats, session start/end, mind_get_threads, mind_delta, mind_proactive, mind_intent, mind_retro_promote, mind_federate.
4 · Query with budgetmind_query takes natural language plus token_budget (4096 default) and returns PackedContext, critical nodes, patterns, fixes, concepts.
5 · Record outcomesAgents should call mind_record_change on decisions and fixes so future sessions (any client) inherit the lesson.

The memory behind MCP

Every memory has a half-life.

A tried approach fades in 23 days, a decision holds for 347, a synthesis lasts 693: the shipped decay rates.

Experience field · live
Day240

● strong○ fading◌ nearly gone· forgotten● just re-read● kept by use

One mark per memory node. Copper is a fresh re-read, which resets that node's clock.anvaya-mind-rs/crates/mind-types/src/config.rs

Questions

Asked about MCP Setup (Claude Code, Cursor, …).

Which clients work?

Any MCP-compatible client: Claude Code, Cursor, Codex CLI, Windsurf, Gemini CLI, OpenCode. The protocol is identical; only the config location differs per client.

Latency vs native?

MCP ~10ms per call vs Direct <0.5ms / IPC ~2ms inside Anvaya CLI. Irrelevant next to model latency; the bridge tax is noise.

Does MCP send code anywhere?

No, stdio to your local daemon. Cloud exposure depends only on which LLM provider your agent itself uses.

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.