Memori MCP (Model Context Protocol)
memori-mcp is the official Memori MCP server. Connect it to your AI agent to give it long-term memory: recall relevant facts before answering, store durable preferences after responding, and maintain context across sessions.
Why Memori MCP?
Memori turns stateless agents into stateful systems by providing structured, persistent memory that works across sessions and workflows.
- Persistent state beyond prompts — Most agents rely on prompt context and lose state between runs. Memori provides durable, structured memory so agents can retain facts, decisions, and outcomes over time.
- Memory from execution (not just natural language) — Traditional systems extract memory from chat. Memori builds memory from agent execution itself — including tool calls, decisions, and results. This enables true agent-native memory, not just conversational recall.
- Lower cost, higher accuracy — Instead of expanding prompt context, Memori retrieves only what matters.
- Significantly reduced token usage
- Faster responses
- Improved accuracy vs long-context approaches
- Works with any MCP client and production-ready - No SDK, no code changes, just config
Memori is state infrastructure for production agents — enabling persistent memory, efficient retrieval, and structured context across both natural language and agent execution.
Server Details
| Property | Value |
|---|---|
| Server | Memori MCP |
| Endpoint | https://api.memorilabs.ai/mcp/ |
| Transport | Stateless HTTP |
| Auth | API key via request headers |
Headers
- Name
X-Memori-API-Key- Type
- string
- Required
- Required
- Description
Your Memori API key from app.memorilabs.ai.
- Name
X-Memori-Entity-Id- Type
- string
- Required
- Required
- Description
Stable end-user or entity identifier (e.g.
user_123).
- Name
X-Memori-Process-Id- Type
- string
- Description
Optional process, app, or workflow identifier (e.g.
my_agent) for memory isolation.
session_id is derived automatically as <entity_id>-<UTC year-month-day:hour>. You do not need to provide it.
Tools
recall
Fetches relevant memories at the start of a user turn.
- Name
query- Type
- string
- Required
- Required
- Description
The latest user message — typically passed verbatim.
entity_id is read from MCP headers. process_id is read when provided. Returns a structured memory payload with relevant context.
advanced_augmentation
Stores durable memory after the agent has drafted a response.
- Name
user_message- Type
- string
- Required
- Required
- Description
The user's message for this turn.
- Name
assistant_response- Type
- string
- Required
- Required
- Description
The assistant's response for this turn.
entity_id is read from MCP headers. process_id is read when provided. Returns a confirmation: memory being created.
Example Agent Flow
Given the user message: "I prefer Python and use uv for dependency management."
- Agent calls
recallwith the user message asquery - Agent composes a response using any returned facts
- Agent sends the response to the user
- Agent calls
advanced_augmentationwith theuser_messageandassistant_response
On a later turn like "Write a hello world script", the agent recalls the Python + uv preference and personalizes its response.
Validation Checklist
After configuring your client, verify the setup:
- MCP server shows as connected and healthy in your client UI
- Tools list includes
recallandadvanced_augmentation - Calls return non-401 responses
recallreturns memories for known entitiesadvanced_augmentationreturnsmemory being created