
MCP Memory
An MCP server implementing memory solutions for data-rich applications using HippoRAG for efficient knowledge graph capabilities, enabling search across multiple sources including uploaded files.
README
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.
Features
- Session-based Memory: Create and manage memory for specific chat sessions
- Efficient Knowledge Graph: Uses HippoRAG for advanced memory management
- Multiple Transport Support: Works with both stdio and SSE transports
- Search Capabilities: Search information from various sources including uploaded files
Installation
Install from PyPI:
pip install mcp-mem
Or install from source:
git clone https://github.com/ddkang1/mcp-mem.git
cd mcp-mem
pip install -e .
Usage
You can run the MCP server directly:
mcp-mem
By default, it uses stdio transport. To use SSE transport:
mcp-mem --sse
You can also specify host and port for SSE transport:
mcp-mem --sse --host 127.0.0.1 --port 3001
Configuration
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 for HippoRAG to function properly)
Example usage:
EMBEDDING_MODEL_NAME="your-model" LLM_NAME="your-llm" mcp-mem
For convenience, you can use the provided example script:
./examples/run_with_env_vars.sh
Available 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
pytest
Code Style
This project uses Black for formatting, isort for import sorting, and flake8 for linting:
black src tests
isort src tests
flake8 src tests
Contributing
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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.