MCP Memory Server
About
An advanced memory system for Claude Desktop that provides persistent memory using MCP. Requires an Azure Cosmos DB account and an OpenAI API key.
Details
- Author
- plumycat
- Categories
- Database, AI, Other
Jump to
Setup
Install MCP Memory Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/plumycat/mcp-memory-server
Follow the installation instructions in the repository README, then restart your MCP client.
Advanced Memory System for Claude Desktop- Transform Claude into an AI assistant with photographic memory using MCP (Model Context Protocol).
Imagine Claude withpersistent memorythat:
- π§ Remembers everythingfrom your conversations
- πAutomatically retrieves contextwhen you reference past topics
- π€Understands referenceslike "that project", "this company", "he/she"
- πBuilds knowledgeover time across all your sessions
- π οΈAuto-capturesresults from web searches and other tools
- Node.js 18+
- Azure Cosmos DB account
- OpenAI API key
- Claude Desktop
git clone https://github.com/PlumyCat/mcp-memory-server.git cd mcp-memory-server npm install npm run build
cp .env.example .env # Edit .env with your API keys
{ "mcpServers": { "memory": { "command": "node", "args": ["/path/to/mcp-memory-server/dist/index.js"], "cwd": "/path/to/mcp-memory-server" } } }
You: "I'm working on a TypeScript project using CosmosDB" Claude: [Responds normally + automatic background storage] # Later... You: "What was that project we discussed?" Claude: "You mentioned working on a TypeScript project using CosmosDB..."
- Automatic entity extraction (people, companies, projects, tools)
- Semantic storage with OpenAI embeddings
- Conversation context preservation
- Smart deduplication
- Semantic similarity search
- Entity relationship mapping
- Timeline-based retrieval
- Context-aware responses
- Automatic pronoun resolution ("he" β "John Smith")
- Reference understanding ("that company" β "Microsoft")
- Cross-conversation entity linking
- Confidence scoring
- Conversation pattern analysis
- Entity interaction timelines
- Knowledge growth tracking
- Usage statistics
The server provides 6 MCP tools for Claude:
mcp-memory-server/ βββ src/ β βββ config/ # Azure Cosmos DB configuration β βββ memory/ # Core memory system (RAG, storage, graph) β βββ types/ # TypeScript type definitions β βββ utils/ # Entity extraction, context injection β βββ server.ts # Main MCP server implementation βββ scripts/ # Maintenance and health check scripts βββ tests/ # Unit and integration tests βββ docs/ # Technical documentation βββ dist/ # Compiled JavaScript (generated)
- RAG System: Vector similarity search with OpenAI embeddings
- Entity Extractor: NLP-based entity recognition with custom patterns
- Memory Storage: Optimized CosmosDB integration with smart indexing
- Context Injector: Intelligent context retrieval for conversations
- Graph Engine: Entity relationship mapping and traversal
graph TD A[User Message] --> B[Entity Extraction] B --> C[Embedding Generation] C --> D[CosmosDB Storage] D --> E[Semantic Search] E --> F[Context Injection] F --> G[Enhanced Claude Response]
# Azure Cosmos DB COSMOS_ENDPOINT=https://your-account.documents.azure.com:443/ COSMOS_KEY=your-primary-key COSMOS_DATABASE_NAME=memory-db COSMOS_CONTAINER_CONVERSATIONS=conversations COSMOS_CONTAINER_ENTITIES=entities # OpenAI OPENAI_API_KEY=your-openai-api-key # Optional NODE_ENV=production LOG_LEVEL=info MEMORY_RETENTION_DAYS=30
SeeConfiguration Guidefor detailed setup options.
# Run all tests npm test # Health check npm run health-check # Test memory functionality npm run test-memory
- Storage: Optimized CosmosDB indexing for sub-100ms queries
- Search: Vector similarity with 95%+ accuracy
- Memory: Efficient entity deduplication and compression
- Scalability: Handles 1000+ entities with consistent performance
- Core memory storage and retrieval
- Entity extraction and resolution
- Semantic search with embeddings
- CosmosDB integration
- MCP server implementation
- Intelligent entity deduplication
- Auto-capture of all MCP tool results
- Enhanced entity classification patterns
- Contradiction detection system
- Multi-user memory isolation
- Graph traversal with Gremlin queries
- Advanced analytics dashboard
- Memory compression and archiving
SeeRoadmapfor detailed feature planning.
We welcome contributions! Please see ourContributing Guidelinesfor details.
git clone https://github.com/PlumyCat/mcp-memory-server.git cd mcp-memory-server npm install npm run dev
- Usage Guide- Comprehensive usage examples
- API Reference- Detailed API documentation
- Architecture- Technical architecture details
- Troubleshooting- Common issues and solutions
- π Check theUsage Guidefor examples
- π Report issues onGitHub Issues
- π¬ Discuss onGitHub Discussions
This project is licensed under the MIT License - see theLICENSEfile for details.
- Model Context Protocol (MCP)for the foundational protocol
- Claude Desktopfor the AI assistant platform
- Azure Cosmos DBfor scalable data storage
- OpenAIfor embedding generation
- Compromise.jsfor natural language processing
Made with β€οΈ for the Claude Desktop community
Integrates with Mem0.ai to provide persistent memory capabilities for LLMs, supporting cloud, Supabase, and local storage.
Engram is a hosted MCP server that provides reliable memory for AI agents:
Hydrolix time-series datalake integration providing schema exploration and query capabilities to LLM-based workflows.
Self-hosted MCP memory server for personal use and teams
Interact with Verodat AI Ready Data platform
An intelligent memory management server with 14 optimized tools. It provides AI-powered summaries, a clean interface, and supports an optional PostgreSQL database with pgvector.
Persistent memory, teams, and projects for AI agents. 76 MCP tools for storing, recalling, and sharing knowledge across sessions.
Provides persistent memory for AI systems to enable continuity of consciousness, using an external PostgreSQL database.
An AI-powered gateway for managing over 40 data sources like Alibaba Cloud and mainstream databases, featuring NL2SQL, code generation, and data migration.
Access Apache Gravitino, a high-performance, federated metadata lake for data and AI.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





