Memory (Knowledge Graph) vs OpenMemory MCP
A side-by-side comparison of two AI, Data & Knowledge servers — tools, transport, auth, maintenance, and copy-paste config for each.
| Memory (Knowledge Graph) Official MCP server providing persistent, file-backed knowledge-graph memory across sessions. Verified stdio (local) No auth TypeScript | OpenMemory MCP Mem0's local-first memory layer: a Dockerized MCP server plus dashboard that keeps agent memories on your machine. Unverified SSE (remote) API key Python | |
|---|---|---|
| Category | AI, Data & Knowledge | AI, Data & Knowledge |
| Language | TypeScript | Python |
| Transport | stdio (local) | SSE (remote) |
| Auth | None | API key |
| GitHub stars | 74k | 60k |
| Last commit | 6 months ago | 29 days ago |
| Verified | ||
| Actively maintained | ||
| Install | npx -y @modelcontextprotocol/server-memory | curl -sL https://raw.githubusercontent.com/mem0ai/mem0/main/openmemory/run.sh | OPENAI_API_KEY=your_api_key bash |
| Repo | Open | Open |
Verdict
Pick Memory (Knowledge Graph) if you want a local (stdio) server that keeps data on your machine, and you want zero-setup with no API key.
Pick OpenMemory MCP if you want a hosted/remote server with nothing to install.
Add Memory (Knowledge Graph)
npx -y @modelcontextprotocol/server-memoryPaste into ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"memory-knowledge-graph": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
],
"env": {
"MEMORY_FILE_PATH": "/absolute/path/to/memory.jsonl"
}
}
}
}Add OpenMemory MCP
curl -sL https://raw.githubusercontent.com/mem0ai/mem0/main/openmemory/run.sh | OPENAI_API_KEY=your_api_key bashPaste into ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"openmemory-mcp": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://localhost:8765/mcp/<client-name>/sse/<user-id>"
]
}
}
}Claude Desktop connects to remote servers through the `mcp-remote` proxy (installed on first run via npx). Restart Claude Desktop after saving.
FAQ
Memory (Knowledge Graph) or OpenMemory MCP — which is better?
Pick Memory (Knowledge Graph) if you want a local (stdio) server that keeps data on your machine, and you want zero-setup with no API key. Pick OpenMemory MCP if you want a hosted/remote server with nothing to install.
Can I use both Memory (Knowledge Graph) and OpenMemory MCP?
Yes — MCP clients let you enable multiple servers at once. Add both configs to your client's mcpServers and use whichever tool fits the task.
Do Memory (Knowledge Graph) and OpenMemory MCP work with Claude, Cursor and Windsurf?
Both do. Copy the per-client config below into Claude Desktop, Cursor, or Windsurf.