mcp-server-memory
A Python implementation of an MCP server that processes and saves memory in the form of a knowledge graph.
MCP Server Memory provides functionality for maintaining a persistent knowledge graph for AI memory. It allows storing, retrieving, and querying structured data in the form of entities, relations, and observations. This enables AI systems to store and recall information across sessions.
Features
- 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
MCP Tools
- create_entities: Create multiple new entities in the knowledge graph
- create_relations: Create multiple new relations between entities
- add_observations: Add new observations to existing entities
- delete_entities: Delete entities and their associated relations
- delete_observations: Delete specific observations from entities
- delete_relations: Delete specific relations from the graph
- read_graph: Read the entire knowledge graph
- search_nodes: Search for nodes matching a query
- open_nodes: Retrieve specific nodes by name
Usage with Different Platforms
uv
bash
uv add mcp-server-memory
pip
bash
pip install mcp-server-memory
running_server
bash
# Run the server directly
mcp-server-memory
# Set custom memory file path
MEMORY_FILE_PATH=/path/to/memory.json mcp-server-memory
configure_uv
"mcpServers": {
"memory": {
"command": "/path/to/uv",
"args": [
"--directory",
"/path/to/mcp_server_memory/src",
"run",
"python",
"-m",
"mcp_server_memory"
],
"env": {
"MEMORY_FILE_PATH": "/path/to/memory.json"
}
}
}
configure_pip
"mcpServers": {
"memory": {
"command": "python",
"args": ["-m", "mcp_server_memory"]
}
}
Related MCP Servers
View all knowledge_and_memory servers →git-mcp
by idosal
GitMCP is a free, open-source, remote Model Context Protocol (MCP) server that transforms GitHub projects into documentation hubs, enabling AI tools to access up-to-date documentation and code.
Knowledge Graph Memory Server
by modelcontextprotocol
A basic implementation of persistent memory using a local knowledge graph, allowing Claude to remember information about the user across chats.
mcpdoc
by langchain-ai
MCP LLMS-TXT Documentation Server provides a structured way to manage and retrieve LLM documentation using the Model Context Protocol.
rust-docs-mcp-server
by Govcraft
The Rust Docs MCP Server provides an up-to-date knowledge source for specific Rust crates, enhancing the accuracy of AI coding assistants by allowing them to query current documentation.
mindmap-mcp-server
by YuChenSSR
A Model Context Protocol (MCP) server for converting Markdown content to interactive mindmaps.
algorand-mcp
by GoPlausible
This is a Model Context Protocol (MCP) implementation for Algorand blockchain interactions, providing a server package for blockchain interactions and a client package for wallet management and transaction signing.
mcp-obsidian
by MarkusPfundstein
MCP server to interact with Obsidian via the Local REST API community plugin.