MCP Memory Graph Server
@santahate
About MCP Memory Graph Server
MCP-server implementing a memory system backed in MongoDB.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"Memory": {
"command": "uvx",
"args": [
"mongo-memory"
],
"env": {
"MCP_MONGO_MEMORY_CONNECTION": ""
}
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is MCP Memory Graph Server?
The MCP Memory Graph Server provides persistent storage for knowledge graphs using MongoDB. It enables AI agents to store entities, manage relationships, query graph structures, and receive real-time updates.
How to use MCP Memory Graph Server?
Install uvx and set up a MongoDB connection string via the environment variable MCP_MONGO_MEMORY_CONNECTION. Add the server to your MCP client’s configuration with the command uvx mongo-memory and the required connection string.
Key features of MCP Memory Graph Server
- MongoDB-based persistent storage
- Graph operations (create, read, update, delete)
- Entity management with unique names
- Relationship handling between entities
- Query capabilities with filtering
- Real-time updates and modifications
Use cases of MCP Memory Graph Server
- Storing entities and their properties for a knowledge base
- Managing relationships between entities for graph traversal
- Querying and retrieving graph structures for AI agents
- Real-time updates to memory during agent interactions
FAQ from MCP Memory Graph Server
What is required to run the server?
You need uvx installed and a running MongoDB instance (local, cloud, or MongoDB Atlas).
How do I configure the connection to MongoDB?
Set the environment variable MCP_MONGO_MEMORY_CONNECTION to your MongoDB connection string (e.g., mongodb+srv://...).
What operations are available for AI agents?
The server provides entity management (create_entities, get_entity, update_entity, delete_entity, find_entities), relationship management (create_relationship, get_relationships, delete_relationship), and memory structure tools (get_memory_structure, get_usage_guide).
Where is the data stored?
All data is stored in the MongoDB database specified in the connection string.
Can I use a local MongoDB instance?
Yes, any valid MongoDB URI—local, remote, or Atlas—works as long as it is reachable from the server host.
Frequently asked questions
What is required to run the server?
You need `uvx` installed and a running MongoDB instance (local, cloud, or MongoDB Atlas).
How do I configure the connection to MongoDB?
Set the environment variable `MCP_MONGO_MEMORY_CONNECTION` to your MongoDB connection string (e.g., `mongodb+srv://...`).
What operations are available for AI agents?
The server provides entity management (`create_entities`, `get_entity`, `update_entity`, `delete_entity`, `find_entities`), relationship management (`create_relationship`, `get_relationships`, `delete_relationship`), and memory structure tools (`get_memory_structure`, `get_usage_guide`).
Where is the data stored?
All data is stored in the MongoDB database specified in the connection string.
Can I use a local MongoDB instance?
Yes, any valid MongoDB URI—local, remote, or Atlas—works as long as it is reachable from the server host.
Basic information
More Memory & Knowledge MCP servers
Context7 MCP - Up-to-date Docs For Any Cursor Prompt
upstashContext7 Platform -- Up-to-date code documentation for LLMs and AI code editors

Memory
modelcontextprotocolModel Context Protocol Servers
Notion MCP Server
suekouA Model Context Protocol server for connecting Notion to MCP-compatible clients
Docs MCP Server
araboldGrounded Docs MCP Server: Open-Source Alternative to Context7, Nia, and Ref.Tools
Obsidian MCP Server
StevenStavrakisA simple MCP server for Obsidian
Comments