Memory Mongo
MCP server for enabling memory for Claude through a knowledge graph with MongoDB API persistence
Ask AI about Memory Mongo
Powered by Claude · Grounded in docs
I know everything about Memory Mongo. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
MCP Memory Server with MongoDB
This repository contains an MCP (Model Context Protocol) server that provides Claude with memory capabilities through a knowledge graph stored in MongoDB. The server uses a REST API for persistence, allowing the memory to be shared and persisted across sessions.
Features
- Create and manage entities with observations
- Create relationships between entities
- Search through entities and their observations
- Persistent storage through MongoDB
- Full CRUD operations for entities, relations, and observations
Installation
npm install @berwickgeek/mcp-memory-mongo
Configuration
The server requires the following environment variables:
MEMORY_API_KEY: API key for authentication with the MongoDB APIMEMORY_API_URL: URL of the MongoDB API server (defaults to http://localhost:3000 if not set)
Usage in MCP Settings
Add the following to your MCP settings file (e.g., cline_mcp_settings.json or claude_desktop_config.json):
{
"mcpServers": {
"memory": {
"command": "node",
"args": [
"/path/to/node_modules/@berwickgeek/mcp-memory-mongo/dist/index.js"
],
"env": {
"MEMORY_API_KEY": "your_api_key_here",
"MEMORY_API_URL": "https://memory-api-production.up.railway.app"
}
}
}
}
Development
# Install dependencies
npm install
# Build all packages
npm run build
# Watch for changes during development
npm run watch
Available Tools
The server provides the following tools to Claude:
create_entities: Create new entities in the knowledge graphcreate_relations: Create relationships between entitiesadd_observations: Add observations to existing entitiesdelete_entities: Remove entities and their relationsdelete_observations: Remove specific observations from entitiesdelete_relations: Remove relationships between entitiesread_graph: Retrieve the entire knowledge graphsearch_nodes: Search for nodes based on a queryopen_nodes: Retrieve specific nodes by their names
License
MIT
