MCP.so
登录

Memory MCP Server

@jcdiv47

基本信息

分类

记忆与知识

许可证

MIT

传输方式

stdio

作者

jcdiv47

关于 Memory MCP Server

暂无概览

#mcp-server-memory#knowledge-graph#ai-memory

Memory MCP Server 配置

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

{
  "mcpServers": {
    "mcp-server-memory": {
      "command": "uv",
      "args": [
        "venv"
      ]
    }
  }
}

Memory MCP Server 工具

9

Create multiple new entities in the knowledge graph

Create multiple new relations between entities

Add new observations to existing entities

Delete entities and their associated relations

Delete specific observations from entities

Delete specific relations from the graph

Read the entire knowledge graph

Search for nodes matching a query

Retrieve specific nodes by name

概览

What is Memory MCP Server?

A Python implementation of an MCP server that processes and saves memory in the form of a knowledge graph. It enables AI systems to store, retrieve, and query structured data (entities, relations, observations) across sessions.

How to use Memory MCP Server?

Install via uv add mcp-server-memory or pip install mcp-server-memory. Run the server with the mcp-server-memory command. Optionally set the MEMORY_FILE_PATH environment variable to customize the memory file location. Configure for MCP clients like Claude or Cursor by adding the server definition to their settings files.

Key features of Memory MCP Server

  • 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

Use cases of Memory MCP Server

  • Persist AI assistant memory across conversations
  • Build and query a structured knowledge base from chat sessions
  • Enable context recall by storing named entities and their relationships
  • Facilitate long‑term agent memory in multi‑turn interactions

常见问题

1

How do I install and run the server?

Install using `uv add mcp-server-memory` or `pip install mcp-server-memory`, then run `mcp-server-memory`. Optionally set the `MEMORY_FILE_PATH` environment variable for a custom storage location.

2

Where is the knowledge graph data stored?

By default, data is saved in a `memory.json` file in the package directory. You can change the path with the `MEMORY_FILE_PATH` environment variable.

3

What MCP tools does the server expose?

It exposes nine tools: `create_entities`, `create_relations`, `add_observations`, `delete_entities`, `delete_observations`, `delete_relations`, `read_graph`, `search_nodes`, and `open_nodes`.

4

What are the runtime dependencies?

The server requires Python and either `uv` or `pip` for installation. It uses the MCP (Model Control Protocol) interface.

5

Are there configuration examples for popular MCP clients?

Yes, the README provides example JSON configurations for both Claude (`claude_desktop_config.json`) and Cursor (`mcp.json`), using either `uv` or a pip‑installed Python module.

评论

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