MCP Memory
Uses OpenAI's embedding models and LLMs for memory management, with configurable model selection through environment variables.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Memorycreate a memory for our project planning session"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Memory
A Model Context Protocol (MCP) server implementing memory solutions for data-rich applications with efficient knowledge graph capabilities.
Overview
This MCP server implements a memory solution for data-rich applications that involve searching information from many sources including uploaded files. It uses HippoRAG internally to manage memory through an efficient knowledge graph. HippoRAG is a required dependency for this package.
Related MCP server: KG Memory
Features
Session-based Memory: Create and manage memory for specific chat sessions
Efficient Knowledge Graph: Uses HippoRAG for memory management
Multiple Transport Support: Works with both stdio and SSE transports
Search Capabilities: Search information from various sources including uploaded files
Automatic Resource Management: TTL-based cleanup for both sessions and memory instances
Installation
Install from PyPI:
pip install mcp-mem hipporagOr install from source:
git clone https://github.com/ddkang1/mcp-mem.git
cd mcp-mem
pip install -e .
pip install hipporagNote: HippoRAG is a required dependency for mcp-mem to function.
Usage
You can run the MCP server directly:
mcp-memBy default, it uses stdio transport. To use SSE transport:
mcp-mem --sseYou can also specify host and port for SSE transport:
mcp-mem --sse --host 127.0.0.1 --port 3001Configuration
Basic Configuration
To use this tool with Claude in Windsurf, add the following configuration to your MCP config file:
"memory": {
"command": "/path/to/mcp-mem",
"args": [],
"type": "stdio",
"pollingInterval": 30000,
"startupTimeout": 30000,
"restartOnFailure": true
}The command field should point to the directory where you installed the python package using pip.
Environment Variable Configuration
You can configure the LLM and embedding models used by mcp-mem through environment variables:
EMBEDDING_MODEL_NAME: Name of the embedding model to use (default: "text-embedding-3-large")EMBEDDING_BASE_URL: Base URL for the embedding API (optional)LLM_NAME: Name of the LLM model to use (default: "gpt-4o-mini")LLM_BASE_URL: Base URL for the LLM API (optional)OPENAI_API_KEY: OpenAI API key (required)
Memory Management Configuration
The server includes automatic resource management features:
Session TTL: Automatically removes session directories after a specified number of days of inactivity. Set using the
session_ttl_daysconfiguration parameter (default: None - disabled).Instance TTL: Automatically offloads HippoRAG instances from memory after a specified period of inactivity. Set using the
instance_ttl_minutesconfiguration parameter (default: 30 minutes).This feature helps manage memory usage by unloading inactive instances while preserving the underlying data. When an offloaded instance is accessed again, it will be automatically reloaded from disk.
Example usage:
EMBEDDING_MODEL_NAME="your-model" LLM_NAME="your-llm" mcp-memFor convenience, you can use the provided example script:
./examples/run_with_env_vars.shAvailable Tools
The MCP server provides the following tools:
create_memory: Create a new memory for a given chat session
store_memory: Add memory to a specific session
retrieve_memory: Retrieve memory from a specific session
Development
Installation for Development
git clone https://github.com/ddkang1/mcp-mem.git
cd mcp-mem
pip install -e ".[dev]"Running Tests
pytestCode Style
This project uses Black for formatting, isort for import sorting, and flake8 for linting:
black src tests
isort src tests
flake8 src testsContributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceAn advanced MCP server providing RAG-enabled memory through a knowledge graph with vector search capabilities, enabling intelligent information storage, semantic retrieval, and document processing.Last updated6146MIT
- AlicenseAqualityCmaintenanceEnhanced MCP knowledge graph memory server with cloud persistence and semantic search, acting as a drop-in replacement for the standard memory server.Last updated1052MIT
- Flicense-qualityBmaintenanceMCP server that gives AI agents and teams persistent, shared memory using a knowledge graph with vector embeddings, automatic consolidation of related facts, and hybrid search.Last updated3
Related MCP Connectors
Cloud-hosted MCP server for durable AI memory
Local-first RAG engine with MCP server for AI agent integration.
Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ddkang1/mcp-mem'
If you have feedback or need assistance with the MCP directory API, please join our Discord server