Skip to main content

MCP (Model Context Protocol)

Connect Anona Memory to Claude Code, Claude Desktop, and other MCP clients so your AI assistant can remember and recall context directly, without you writing any integration code.

Tools Exposed

ToolWhat it does
rememberStore a memory in a space
recallSemantically search memories in a space
list_spacesList available Memory Spaces
get_insightsSynthesize an answer from accumulated memories
Per-tool failures (denied space, no credits) come back as structured tool errors, not broken connections - the MCP session stays alive.

Option 1: Local (stdio)

Runs on your machine via uvx, ships with the Python SDK.
Requires:
Or install explicitly:

Register with Claude Code

Set ANONA_API_KEY (and optionally ANONA_SPACE_ID) in your shell environment before starting Claude Code.

Option 2: Remote (Streamable HTTP)

Connect directly to the hosted gateway - no local process to run.
Auth is the same API key you use for the REST API - no separate credential to manage.

Important Notes

  • Tools only load at session start. Adding or changing the MCP server mid-session won’t expose its tools until you restart your MCP client.
  • Scoping to a space. Without ANONA_SPACE_ID set, tools that need a space will ask you to specify one, or operate across whichever spaces your API key can see.
  • Same quota, same billing. MCP calls consume credits and count against your usage the same way REST API calls do.

Example: Claude Code Session

Once registered, just talk naturally:
“Remember that the user prefers dark mode and uses VS Code.”
“What do we know about this user’s editor preferences?”
Claude Code calls remember and recall automatically behind the scenes.

Next Steps

Python SDK

Programmatic client library

API Reference

Full REST API documentation