Memory MCP Server
A Model Context Protocol server that provides knowledge graph management capabilities.
Overview
Memory MCP Server is a Model Context Protocol server that provides knowledge graph management capabilities, enabling AI assistants to maintain memory across conversations.
To use the Memory MCP Server, you can either download the pre-built binary or build it from source. After installation, configure it with your AI assistant to manage knowledge graphs effectively.
- Knowledge Graph Storage: Persistent storage of entities and their relationships. - Entity Management: Create, read, update, and delete entities. - Relation Tracking: Manage relationships between entities. - Observation System: Track observations about entities over time. - Powerful Search: Search for nodes by name, type, or observation content. - Persistent Storage: Data persists in a simple JSON format.
- Long-term memory for AI assistants.
- Knowledge management for organizing information.
- Relationship tracking between entities.
- Context persistence across sessions.
- Maintaining structured records of events and activities.
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": {
"memory-mcp-server-okooo5km": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory-mcp-server-okooo5km"
]
}
}
}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": {
"memory-mcp-server-okooo5km": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory-mcp-server-okooo5km"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"memory-mcp-server-okooo5km": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory-mcp-server-okooo5km"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"memory-mcp-server-okooo5km": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory-mcp-server-okooo5km"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"memory-mcp-server-okooo5km": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory-mcp-server-okooo5km"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"memory-mcp-server-okooo5km": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory-mcp-server-okooo5km"
]
}
}
}FAQ
**What programming language is used?**
The server is implemented in Swift.
**Is it open-source?**
Yes, it is licensed under the MIT License, allowing free use and modification.
**What are the system requirements?**
Requires Swift 6.0 or later and macOS 14.0 or later.