Memory MCP Server
Overview
Memory MCP Server is a Python implementation of an MCP server designed to process and save memory in the form of a knowledge graph, enabling AI systems to store and recall information across sessions.
To use the Memory MCP Server, install it via pip or uv, run the server, and configure it for your MCP clients by adding the necessary settings to your configuration files.
- Create and manage entities with structured information - Establish typed relations between entities - Add observations to existing entities - Delete entities, relations, and observations - Search nodes in the knowledge graph - Retrieve specific nodes by name
- Maintaining a persistent knowledge graph for AI applications
- Storing and retrieving structured data for machine learning models
- Facilitating complex queries and data management in AI systems
Add to your AI client
Use these steps to connect Memory MCP Server 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-server-memory-jcdiv47": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-memory-jcdiv47"
]
}
}
}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-server-memory-jcdiv47": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-memory-jcdiv47"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-memory-jcdiv47": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-memory-jcdiv47"
]
}
}
}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-server-memory-jcdiv47": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-memory-jcdiv47"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-memory-jcdiv47": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-memory-jcdiv47"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-memory-jcdiv47": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-memory-jcdiv47"
]
}
}
}FAQ
What programming language is Memory MCP Server written in?
Memory MCP Server is written in Python.
Is there a license for using Memory MCP Server?
Yes, it is licensed under the MIT License, allowing free use, modification, and distribution.
How can I customize the memory storage path?
You can customize the memory storage path using the MEMORY_FILE_PATH environment variable.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3783,"uuid":"d6cc0617-2a5c-4ffd-9c1a-99993ee26e4a","name":"mcp-server-memory","title":"Memory MCP Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/45190310?v=4","created_at":"2025-03-21T16:43:29.867Z","updated_at":"2025-03-21T16:48:56.571Z","status":"created","author_name":"jcdiv47","author_avatar_url":"https://avatars.githubusercontent.com/u/45190310?v=4","tags":"mcp-server-memory,knowledge-graph,AI-memory","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/jcdiv47/mcp-server-memory","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-21 22:39:22\"}","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"}]]}]