mem0-mcp-server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mem0-mcp-local-docker
A self-hosted Mem0 MCP server adapted from the official mem0-mcp to run entirely on your own infrastructure using Docker containers (PostgreSQL with pgvector + Neo4j).
The official server connects to Mem0's cloud API via MemoryClient. This fork replaces it with the local Memory class, pointing to your own Postgres and Neo4j instances.
Prerequisites
Docker & Docker Compose
Python >= 3.10
An OpenAI API key (used by Mem0 internally for embeddings and LLM)
Related MCP server: Memoria
Architecture
┌─────────────────────────────────┐
│ MCP Client (OpenCode, Claude) │
└──────────────┬──────────────────┘
│ stdio
┌──────────────▼──────────────────┐
│ mem0-mcp-server (Python) │
│ src/mem0_mcp_server/server.py │
└──┬───────────────────────────┬──┘
│ │
┌──▼─────────────┐ ┌─────────▼──────────┐
│ PostgreSQL │ │ Neo4j │
│ (pgvector) │ │ (graph store) │
│ port: 8432 │ │ port: 8687 │
└────────────────┘ └────────────────────┘Setup
1. Clone and configure
git clone https://github.com/materializerx/mem0-mcp-local-docker.git
cd mem0-mcp-local-docker
cp .env.example .envEdit .env and set your OPENAI_API_KEY. The other defaults match the included docker-compose.yml.
2. Start backing services
docker compose up -dThis starts PostgreSQL (pgvector) on port 8432 and Neo4j on port 8687. Both are configured with restart: unless-stopped so they survive reboots.
Wait for healthy status:
docker compose ps3. Install dependencies
uv sync
# or
pip install -e .4. Run the server
uv run mem0-mcp-server
# or
python -m mem0_mcp_server.serverThe server runs over stdio by default (for MCP client integration).
MCP Client Configuration
OpenCode (oh-my-opencode.json)
{
"mcp": {
"mem0": {
"type": "stdio",
"command": "/path/to/mem0-mcp/.venv/bin/python",
"args": ["-m", "mem0_mcp_server.server"],
"env": {
"OPENAI_API_KEY": "sk-...",
"MEM0_DEFAULT_USER_ID": "sisyphus",
"MEM0_ENABLE_GRAPH_DEFAULT": "true"
}
}
}
}Claude Desktop
{
"mcpServers": {
"mem0": {
"command": "uvx",
"args": ["mem0-mcp-server"],
"env": {
"OPENAI_API_KEY": "sk-...",
"MEM0_DEFAULT_USER_ID": "your-handle",
"MEM0_ENABLE_GRAPH_DEFAULT": "true"
}
}
}
}Tools
Tool | Description |
| Store a preference, fact, or conversation snippet |
| Semantic search over existing memories |
| List memories with filters and pagination |
| Fetch a single memory by ID |
| Overwrite a memory's text |
| Delete a single memory |
| Bulk delete all memories in a scope |
| Remove a user/agent/run and cascade-delete its memories |
Key Differences from Official
Aspect | Official ( | This Fork |
Backend | Mem0 Cloud API ( | Local |
Vector Store | Mem0 Cloud | Self-hosted PostgreSQL + pgvector |
Graph Store | Mem0 Cloud | Self-hosted Neo4j |
LLM | Mem0 Cloud | OpenAI API (configurable model) |
Embedder | Mem0 Cloud | OpenAI |
Auth |
|
|
| Supported | Not available (returns error) |
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted memory for AI agents over MCP. One memory shared by all your agents.
Hosted agent memory: store, search, and recall facts across sessions from any MCP client.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Related MCP Servers
AlicenseAqualityDmaintenanceSelf-hosted Mem0 MCP server integrating Qdrant, Neo4j, and Ollama for semantic memory search, graph entity relationships, and memory management via OpenMemory API.64MIT- AlicenseNot gradedqualityFmaintenanceA self-hosted memory backend for MCP clients, providing tools for storing, searching, updating, and deleting memories with per-user scoping and OIDC support.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server wrapping a self-hosted mem0 REST API, enabling memory management with deduplication and mention-aware reranked search.MIT

Kagura Memory Cloudofficial
AlicenseNot gradedqualityBmaintenanceProvides AI agents and teams with self-hosted adaptive memory, combining hybrid search and a self-improving neural memory graph to enable precise recall and serendipitous discovery across MCP-compatible clients.14Apache 2.0