Model Context Protocol (MCP)
memanto-mcp package exposes Memanto’s memory primitives — remember, recall, answer, and friends — as Model Context Protocol tools, so any MCP-compatible client can plug into long-term memory in a single config line.
One Moorcheh API key → typed semantic memory shared across every agent that uses the namespace, with sub-90 ms retrieval, conflict detection, and zero ingestion latency.
Universal
Works with every MCP host: Claude Desktop, Cursor, Windsurf, Cline, Continue, Goose, Codex, and custom agents using the MCP SDK.
Zero glue code
No client code, no vector DB. Add one JSON block to your client’s config and the agent gets 7 memory tools.
Typed memory
13 memory types (fact, preference, decision, goal, instruction, …) with confidence + provenance — built for LLM tool-selection.
Shared namespace
Different clients pointed at the same
agent_id share one memory. Remember in Claude Desktop, recall in Cursor.How It Works
Prerequisites
- Python 3.10+
- A Moorcheh API key (free tier: 100K ops/month)
- Any MCP-compatible client
Install
memanto-mcp console script that every client below launches over stdio.
Quickstart
Pick your client. The JSON shape is identical across most hosts — only the config file path changes.- Claude Desktop
- Cursor
- Windsurf
- Cline (VS Code)
- Continue
- Goose
1
Open the config file
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
2
Add the Memanto server
3
Restart Claude Desktop
Ask Claude to “remember that I prefer concise answers”. Tomorrow, in a brand-new chat, ask “what do I prefer?” — the answer comes from Memanto.
The first call auto-creates the
MEMANTO_DEFAULT_AGENT_ID namespace and activates a session. Every subsequent call (in any client pointed at the same agent) reuses the same persistent memory.Available Tools
The server registers 7 memory tools by default. SetMEMANTO_EXPOSE_ADMIN=true to also expose 4 agent-management tools.
Memory tools (always on)
Agent admin tools (opt-in)
Enabled whenMEMANTO_EXPOSE_ADMIN=true:
Memory types accepted by remember / batch_remember
Memory types accepted by remember / batch_remember
fact, preference, goal, decision, artifact, learning, event, instruction, relationship, context, observation, commitment, error.See the Memory Types Reference for guidance on picking the right type.Provenance values
Provenance values
explicit_statement, inferred, corrected, validated, observed, imported.Use explicit_statement when the user said it directly, inferred when you deduced it, and corrected when overriding an earlier wrong memory.Fields returned by recall
Fields returned by recall
Each memory hit from
recall / recall_recent / recall_as_of / recall_changed_since carries its trust and provenance metadata:id,title,content,type,confidence,score,created_at,tagsstatus— lifecycle state; alwaysactivefor stored memories.source— who wrote the memory:user,agent, the connected MCP client’s identity (e.g.cursor,codex), or the uploaded file name.source_ref— pointer to the original record within that source (e.g. tool-call or migration id).nullwhen not set.provenance— how the memory was obtained (explicit_statement,inferred, …).
Configuration
All configuration is via environment variables (load order: process env →.env file in the working directory). Most clients let you set these inside the env block of the MCP server entry.
CLI flags override env vars:
Running over HTTP / SSE
For remote clients or multi-process setups, run the server over a network transport:- Streamable HTTP (recommended)
- SSE (legacy)
http://your-host:8765/mcp.Programmatic Embedding
Wiring the server into a larger Python process or custom MCP host:Sharing Memory Across Clients
Point multiple clients at the sameMEMANTO_DEFAULT_AGENT_ID and they share one persistent memory namespace:
Troubleshooting
Next Steps
Memory Types Reference
Learn which memory type to pick for each piece of information.
Agent Management
Create, activate, and switch Memanto agents.
Remember API
The REST endpoint the
remember MCP tool wraps.Recall API
The REST endpoint the
recall MCP tool wraps.Links