About Mem0 MCP Selfhosted
Mem0 MCP Selfhosted is an MCP server published by elvismdev in the AI category: self-hosted mem0 MCP server for Claude Code. Run a complete memory server against self-hosted Qdrant + Neo4j + Ollama while using Claude as the main LLM. Conduid read 13 tools from its source: add_memory, delete_all_memories, delete_entities, delete_memory, get_entity, get_memories and 7 more. No package is published for it, so it installs from a source checkout.
The repository has 112 stars and 47 forks, is licensed MIT, and its last commit was on 13 Mar 2026. The latest release is v0.3.2 (13 Mar 2026): Cache-bust Glama badge URL to force fresh camo proxy fetch (205ecf9) Detailed Changes: v0.3.1...v0.3.2. It follows v0.3.1 (12 Mar 2026), and the 5 most recent releases go back to v0.2.0 (28 Feb 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Its topics include ai-memory, knowledge-graph, mem0, memory, neo4j and ollama.
Install
git clone https://github.com/elvismdev/mem0-mcp-selfhostedTools (13)
add_memoryStore text or conversation history as memories. Supports `enable_graph`, `infer`, `metadata`.| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent scope identifier. |
| enable_graph | boolean | Override default graph toggle for this call. |
| infer | boolean | If true (default), LLM extracts key facts. If false, stores raw text. |
| messages | array | Structured conversation history (role/content dicts). When provided, takes precedence over text. |
| metadata | object | Arbitrary metadata JSON to store alongside the memory. |
| run_id | string | Run scope identifier. |
| text * | string | Text to store as a memory. Converted to messages format internally. |
| user_id | string | User scope identifier. Defaults to MEM0_USER_ID. |
delete_all_memoriesBulk-delete all memories in a scope.| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent scope to delete. |
| run_id | string | Run scope to delete. |
| user_id | string | User scope to delete. |
delete_entitiesCascade-delete an entity and all its memories.| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent entity to delete. |
| run_id | string | Run entity to delete. |
| user_id | string | User entity to delete (cascades to all memories). |
delete_memoryDelete a single memory by UUID.| Parameter | Type | Description |
|---|---|---|
| memory_id * | string | Exact memory UUID to delete. |
get_entityGet all relationships for an entity (bidirectional: incoming + outgoing).get_memoriesList/filter memories (non-search). Supports `limit` and scope filters.| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent scope. |
| limit | integer | Maximum number of memories to return. |
| run_id | string | Run scope. |
| user_id | string | User scope. Defaults to MEM0_USER_ID. |
get_memoryFetch a single memory by UUID.| Parameter | Type | Description |
|---|---|---|
| memory_id * | string | Exact memory UUID to fetch. |
list_entitiesList users/agents/runs with memory counts. Uses Qdrant Facet API.mcp_get_entityGet all relationships for a specific entity (bidirectional).| Parameter | Type | Description |
|---|---|---|
| name * | string | Exact entity name to look up. |
mcp_search_graphSearch entities by name/id substring matching in Neo4j knowledge graph.| Parameter | Type | Description |
|---|---|---|
| query * | string | Entity or topic to search for (e.g., 'Python', 'TypeScript'). |
search_graphSearch Neo4j entities by name substring. Returns entities + outgoing relationships.search_memoriesSemantic search with optional `filters`, `threshold`, `rerank`, `enable_graph`.| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Agent scope. |
| enable_graph | boolean | Override default graph toggle. |
| filters | object | Additional structured filter clauses. |
| limit | integer | Maximum number of results. |
| query * | string | Natural language description of what to find. |
| rerank | boolean | Whether to apply reranking. |
| run_id | string | Run scope. |
| threshold | number | Minimum relevance score (0.0-1.0). |
| user_id | string | User scope. Defaults to MEM0_USER_ID. |
update_memoryReplace memory text. Re-embeds and re-indexes in Qdrant.| Parameter | Type | Description |
|---|---|---|
| memory_id * | string | Exact memory UUID to update. |
| text * | string | Replacement text for the memory. |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.7K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- ✓No dynamic code executionScanned 11 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEsrc/mem0_mcp_selfhosted/server.py:490, src/mem0_mcp_selfhosted/server.py:488, src/mem0_mcp_selfhosted/server.py:486
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 3 callssrc/mem0_mcp_selfhosted/auth.py:152, src/mem0_mcp_selfhosted/auth.py:162
- Writes or deletes files
- 2 callssrc/mem0_mcp_selfhosted/hooks.py:442, src/mem0_mcp_selfhosted/hooks.py:444
- Lockfile
- None in the repository
Pattern matches on the source text of 11 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.7K words, fetched a month ago. The original in the repository is authoritative.
Read full README