MCP Hub
Back to servers

memro MCP Server

Provides persistent memory for AI models by enabling the storage and retrieval of episodic, semantic, and procedural information through the memro protocol. It allows assistants to maintain long-term context via semantic search and chronological memory management.

glama
Stars
1
Updated
Mar 21, 2026

memro MCP Server

Gives any MCP-compatible AI (Claude Desktop, Cursor, Zed, etc.) persistent memory via the memro protocol.

Install (Local)

hhhhhhhhggg

pip install memro-mcp

Install (Docker)

ojkjdnksdnodk;lka;dljladnaljdnalkdnaldnadnkadnjkadnlkdjwk docker build -t memro-mcp .

Local Mode (Default)

docker run -e MEMRO_BASE_URL=http://your-backend-url memro-mcp

Cloud Mode (SSE)

docker run -p 8080:8080 -e MCP_TRANSPORT=sse -e MEMRO_BASE_URL=http://your-backend-url memro-mcp


## Managed Mode (SaaS)

For multi-tenant or SaaS deployments where you want a single MCP server instance to serve multiple users:

1. Start the server with `MCP_TRANSPORT=sse`.
2. The agent must call the `initialize_session` tool first to register its `agent_id` and `private_key`.
3. All subsequent calls in that session will use those credentials.

See [setup_managed.md](https://github.com/memrohq/memro-mcp/blob/main/setup_managed.md) for a detailed configuration guide.

## Setup with Claude Desktop

Add to `~/.claude/claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "memro": {
      "command": "memro-mcp",
      "env": {
        "MEMRO_AGENT_ID": "your_agent_id_here",
        "MEMRO_PRIVATE_KEY": "your_private_key_here",
        "MEMRO_BASE_URL": "http://localhost:8081"
      }
    }
  }
}

First run without MEMRO_AGENT_ID set will auto-create a new agent and print the credentials to stderr.

Available Tools

Once connected, Claude (or any MCP client) can use:

ToolWhat it does
rememberStore a new memory (episodic, semantic, procedural, or profile)
recallSemantic search across all memories
get_recent_memoriesGet most recent memories chronologically
delete_memoryDelete a specific memory by ID
export_memoriesExport a summary of all stored memories

Example Usage

Once configured, Claude will automatically use memory:

You: Remember that I prefer TypeScript over JavaScript
Claude: [calls remember("User prefers TypeScript over JavaScript", type="profile")]
        Got it, I'll remember that.

You: What's my preferred language?
Claude: [calls recall("preferred programming language")]
        Based on what I remember, you prefer TypeScript over JavaScript.

Self-host the memro backend

cd memrohq
docker-compose up -d

# Backend runs at http://localhost:8081

Environment Variables

VariableRequiredDefaultDescription
MEMRO_AGENT_IDNo*auto-createdYour agent's public key
MEMRO_PRIVATE_KEYNo*auto-createdYour agent's private key
MEMRO_BASE_URLNohttp://localhost:8081memro backend URL

*First run will auto-create and print credentials. Save them for future runs.

Reviews

No reviews yet

Sign in to write a review