Overview
MCP Memory is a server that implements a memory system for long-term storage of conversations with large language models (LLMs) using Redis Graph as the backend.
To use MCP Memory, set up the environment by installing Docker and Node.js, then run the Redis container and the application using Docker Compose and npm commands.
- Store various types of memories (conversations, projects, tasks, etc.) - Create relationships between memories to form a knowledge graph - Search and retrieve memories based on different criteria - Update and delete memories as needed
- Storing and retrieving project details and configurations.
- Managing tasks and to-do items for better organization.
- Recording and handling issues or bugs in software development.
- Providing personal finance advice and tracking financial information.
Add to your AI client
Use these steps to connect MCP Memory with Redis Graph in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-memory-samwang0723": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-memory-samwang0723"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-memory-samwang0723": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-memory-samwang0723"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-memory-samwang0723": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-memory-samwang0723"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-memory-samwang0723": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-memory-samwang0723"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-memory-samwang0723": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-memory-samwang0723"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-memory-samwang0723": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-memory-samwang0723"
]
}
}
}FAQ
What types of memories can be stored?
MCP Memory supports various types including conversations, projects, tasks, issues, configurations, finance, and todos.
How do I connect to Redis?
The application connects to Redis using the default configuration in `src/index.ts`, which can be modified as needed.
Is there a way to visualize the memory graph?
Yes, you can use the provided Redis CLI helper to inspect the graph and view relationships between memories.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1714,"uuid":"e5f0f287-6760-4914-a607-8bd22aebb58d","name":"mcp-memory","title":"MCP Memory with Redis Graph","description":"MCP Server for long term memory graph","avatar_url":"https://avatars.githubusercontent.com/u/538559?v=4","created_at":"2025-03-05T05:00:42.449+00:00","updated_at":"2025-03-12T10:20:32.203+00:00","status":"created","author_name":"samwang0723","author_avatar_url":"https://avatars.githubusercontent.com/u/538559?v=4","tags":"[]","category":"knowledge-and-memory","is_featured":false,"sort":1,"url":"https://github.com/samwang0723/mcp-memory","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-06 20:36:37\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]