Local Mem0 MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Local Mem0 MCP ServerRemember that I prefer using the MIT license for my open source projects"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Local Mem0 MCP Server
A fully self-hosted Model Context Protocol (MCP) server that integrates Mem0 for persistent memory capabilities. Enables AI assistants like Claude to store and retrieve contextual information across conversations.
⨠Features
š§ Persistent Memory: Store and retrieve memories across conversations
š Fully Self-Hosted: No external APIs or cloud dependencies
š³ Containerized: Complete Docker deployment with one command
š Easy Installation: Single script setup for Windows, Mac, and Linux
š¤ Local AI Models: Uses Ollama with phi3:mini and nomic-embed-text
š Vector Storage: PostgreSQL with pgvector for efficient memory search
š MCP Compatible: Works with Claude Desktop and other MCP-capable AI tools
Related MCP server: mcp-recall
š Quick Start
Prerequisites
Docker Desktop installed and running
Claude Desktop (for testing)
Installation
Windows:
git clone https://github.com/Synapse-OS/local-mem0-mcp.git
cd local-mem0-mcp
install.batMac/Linux:
git clone https://github.com/Synapse-OS/local-mem0-mcp.git
cd local-mem0-mcp
chmod +x install.sh
./install.shThe installation will:
Build the MCP server container
Start PostgreSQL and Ollama services
Download AI models (~2.5GB total)
Configure Claude Desktop integration
Test the installation
Testing
After installation and configuration:
Restart Claude Desktop completely (close and reopen)
Verify MCP server: Type
/mcp- should listmem0-localas availableTest memory storage: "Remember that I'm testing the MCP memory system today"
Test memory retrieval: "What do you remember about me?"
Verify persistence: Restart Claude Desktop and ask again - memories should persist
Troubleshooting MCP Connection:
If
/mcpshows no servers, check the configuration file path and JSON syntaxEnsure Docker containers are running:
docker psCheck MCP server logs:
docker logs mem0-mcp-server
šļø Architecture
āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāā
ā Claude ā ā MCP Server ā ā PostgreSQL ā
ā Desktop āāāāāŗā (FastMCP) āāāāāŗā + pgvector ā
āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāā
ā
ā¼
āāāāāāāāāāāāāāāāāāāā
ā Ollama ā
ā phi3:mini + ā
ā nomic-embed-text ā
āāāāāāāāāāāāāāāāāāāāš§ Configuration
Claude Desktop MCP Configuration
After installation, configure Claude Desktop to use the MCP server:
Windows:
Edit %APPDATA%\Claude\claude_desktop_config.json:
Mac:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
Linux:
Edit ~/.config/Claude/claude_desktop_config.json:
Add this configuration:
{
"mcpServers": {
"mem0-local": {
"command": "docker",
"args": [
"exec", "-i", "mem0-mcp-server",
"python", "/app/src/server.py"
]
}
}
}System Configuration
The system is configured for local operation by default:
MCP Server: Runs in Docker container with STDIO transport
Database: PostgreSQL with pgvector on port 5432
AI Models: Local Ollama instance on port 11434
Memory Storage: User-isolated memories with vector embeddings
š Available Memory Operations
add_memory: Store new memories
search_memories: Find relevant memories by query
get_all_memories: Retrieve all memories for a user
update_memory: Modify existing memories
delete_memory: Remove specific memories
delete_all_memories: Clear all memories for a user
get_memory_stats: Get memory statistics
š Troubleshooting
Check services:
docker psView logs:
docker-compose -f docker-compose.local.yml logsRestart services:
docker-compose -f docker-compose.local.yml restartClean restart:
docker-compose -f docker-compose.local.yml down -v
# Run install script againš¤ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
š License
This project is licensed under the MIT License - see the LICENSE file for details.
š Acknowledgments
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceSelf-hosted MCP server giving AI agents persistent memory for personalization and context across conversations.268Apache 2.0
- Alicense-qualityCmaintenanceA self-hosted MCP memory server that gives AI assistants persistent, semantic memory by storing facts as vector embeddings locally, supporting semantic search and swappable embedding models.184MIT
- Alicense-qualityDmaintenanceAn MCP server that provides persistent memory capabilities for AI agents using Mem0, enabling storage, search, and management of contextual information across conversations with support for multiple backends and LLM providers.MIT
- Alicense-qualityCmaintenanceA self-hosted MCP server that provides a personal semantic memory layer for AI tools. It enables storing, searching, and managing memories using hybrid vector and keyword search, allowing AI assistants to recall information by meaning.MIT
Related MCP Connectors
Cloud-hosted MCP server for durable AI memory
Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.
Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Hroerkr/mem0mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server