MCP.so
登录

Knowledge Graph Memory Server MCP Server

@edobez

基本信息

分类

记忆与知识

传输方式

stdio

作者

edobez

关于 Knowledge Graph Memory Server MCP Server

MCP server for enabling memory for Claude through a knowledge graph

Knowledge Graph Memory Server MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "memory-python": {
      "command": "uvx",
      "args": [
        "--refresh",
        "--quiet",
        "mcp-memory-py"
      ],
      "env": {
        "MEMORY_FILE_PATH": ""
      }
    }
  }
}

Knowledge Graph Memory Server MCP Server 工具

9

Create multiple new entities in the knowledge graph

Create multiple new relations between entities

Add new observations to existing entities

Remove entities and their relations

Remove specific observations from entities

Remove specific relations from the graph

Read the entire knowledge graph

Search for nodes based on query

Retrieve specific nodes by name

概览

What is Knowledge Graph Memory Server?

Knowledge Graph Memory Server is a Python implementation of persistent memory using a local knowledge graph. It enables Claude to remember information about the user across different chat sessions by storing entities, relations, and observations in a JSON file.

How to use Knowledge Graph Memory Server?

Add the server configuration to your claude_desktop_config.json using uvx with the mcp-memory-py package. Optionally set the MEMORY_FILE_PATH environment variable to specify a custom memory file location. For chat personalization, use the provided system prompt in Claude.ai Project custom instructions.

Key features of Knowledge Graph Memory Server

  • Creates, reads, updates, and deletes entities in a knowledge graph
  • Manages directed relations between entities with active voice
  • Stores atomic observations attached to specific entities
  • Provides search and retrieval tools (search_nodes, open_nodes)
  • Persists memory to a local JSON file
  • Supports custom memory file path via environment variable

Use cases of Knowledge Graph Memory Server

  • Make Claude remember user identity, preferences, and behaviors across chats
  • Allow Claude to recall past interactions and update memory with new information
  • Store and query structured knowledge about people, organizations, and events
  • Maintain a persistent graph of personal and professional relationships

常见问题

1

Where does the server store memory data?

By default, memory is stored in `memory.json` in the server directory. Use the `MEMORY_FILE_PATH` environment variable to set a custom path.

2

What runtime is required?

The server runs via `uvx` and requires Python. It is a port of the Node.js reference server and uses the MCP protocol.

3

What debugging tools are available?

You can use `npx @modelcontextprotocol/inspector` to debug the server, and set `DEBUG_LOGGING` environment variable for daily log files (development only).

4

How can I customize the memory behavior?

Use the provided system prompt to guide Claude on when and how to create entities, relations, and observations. The prompt can be adjusted for different use cases.

5

What happens if I try to create a duplicate entity or relation?

Duplicate entities are ignored; duplicate relations are skipped. The operations are silent on duplicates.

评论

记忆与知识 分类下的更多 MCP 服务器