MemoryMesh is an MCP server that gives AI models a structured, long-term memory in the form of a knowledge graph.

MemoryMesh is an MCP server that gives AI models a structured, long-term memory in the form of a knowledge graph.

memorymesh•bychemiguel23

A schema-driven MCP server that stores memory as a graph of nodes and edges, generating add, update and delete tools for each node type and providing built-in tools for searching and editing the graph.

License: MIT•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Generates add, update and delete tools for each schema, where schema relationships create edges between nodes.
  • •Stores memory as a graph of nodes with metadata and edges that can carry an optional weight.
  • •Includes built-in tools such as read_graph, search_nodes and open_nodes plus tools for nodes, edges and metadata.
  • •Treats every call as all-or-nothing, with errors returned so the AI can react.

BEST FOR

  • •Text-based RPG and storytelling worlds whose characters and locations need persistent memory.
  • •Personal CRM tracking of contacts, companies, interactions and follow-ups.
  • •Research and reading notes linking sources, authors, concepts and notes.

ABOUT MEMORYMESH

MemoryMesh is an MCP server that gives AI models a structured, long-term memory in the form of a knowledge graph. is cataloged as an MCP server attributed to chemiguel23. A schema-driven MCP server that stores memory as a graph of nodes and edges, generating add, update and delete tools for each node type and providing built-in tools for searching and editing the graph. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MemoryMesh is an MCP server that gives AI models a structured, long-term memory in the form of a knowledge graph. are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How many tools does one schema create?

Each schema creates three tools: an add_ tool, an update_ tool and a delete_ tool for its node type.

What happens if a schema file is invalid?

Invalid schema files are skipped and the reason is logged, while the remaining schemas still load.

Can several separate memories be run?

Yes, you can run several MemoryMesh entries with different folders, for example one per campaign or project.

上游原版 README

在 GitHub 查看同一版本原文

README.md · d32b137323c1 · 采集于 2026-11-13 09:36:25 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MemoryMesh

Release TypeScript License: MIT GitHub Stars

MemoryMesh is an MCP server that gives AI models a structured, long-term memory in the form of a knowledge graph. You describe the kinds of things you want to remember in small schema files (people, projects, characters, locations, books...), and MemoryMesh turns each one into tools the AI uses to add, update and delete that information, linking related items as it goes.

It works for anything you can describe as things and the connections between them: a text-based RPG world, the people and teams at your company, a personal CRM, or your reading notes.

Based on the Knowledge Graph Memory Server from the MCP servers repository.

MemoryMesh MCP server

MseeP.ai Security Assessment

How it works

The memory is a graph of nodes and edges:

  • A node is a thing: {"name": "Mara", "nodeType": "npc", "metadata": ["role: Blacksmith", "status: injured"]}
  • An edge is a connection between two nodes: {"from": "Mara", "to": "Riverton", "edgeType": "located_in"}. Edges can have an optional weight from 0 to 1 (strength or confidence; treated as 1 when not set).

A schema describes one type of node. For a schema named add_npc, MemoryMesh creates three tools:

  • add_npc creates an NPC. Fields marked as relationships also create edges to the nodes they name.
  • update_npc changes the fields you pass and keeps everything else. Passing metadata replaces the whole list.
  • delete_npc removes the NPC and its edges.

Every call is all-or-nothing: if anything is wrong (a missing required field, a link to a node that doesn't exist), nothing is saved, and the AI gets a clear error it can act on.

Schema format

Each schema is a JSON file ending in .schema.json. This is the npc example that ships with MemoryMesh:

{
  "name": "add_npc",
  "description": "Add a new character (NPC) to the knowledge graph",
  "properties": {
    "name": { "type": "string", "description": "The character's unique name", "required": true },
    "description": { "type": "string", "description": "Who the character is", "required": true },
    "status": { "type": "string", "description": "Current condition", "enum": ["alive", "injured", "dead", "missing"] },
    "traits": { "type": "array", "description": "Personality traits" },
    "currentLocation": {
      "type": "string",
      "description": "Where the character is now",
      "relationship": { "edgeType": "located_in", "description": "Where the character is now (must already exist)" }
    }
  },
  "additionalProperties": true
}
KeyMeaning
nameMust start with add_. The rest becomes the node type and tool suffix (npc → add_npc, update_npc, delete_npc).
descriptionDescription of the add_ tool, shown to the AI.
propertiesThe fields. Each has a type (string or array) and a description, plus optionally:
↳ requiredtrue if the AI must provide this field. Keep this to a minimum, or the AI will invent values it doesn't know.
↳ enumA list of allowed values.
↳ relationshipCreates an edge (edgeType) to each node named in this field. Those nodes must already exist.
additionalPropertiestrue (default) saves fields not listed above as extra metadata; false rejects them.

If a schema file is invalid, MemoryMesh skips it, logs the reason, and starts with the others.

The SchemaManager lets you create and edit schemas visually (guide).

SchemaManager

Example schema sets

MemoryMesh ships with two small examples, npc and location. Ready-made sets for different uses are shared in Discussions:

Feel free to share your own.

Built-in tools

These are always available, whatever schemas you use:

ToolPurpose
read_graphReturn the whole graph
search_nodesFind nodes by name, type or metadata, with their direct neighbours
open_nodesReturn specific nodes by name, with their direct neighbours
add_nodes, update_nodes, delete_nodesWork with nodes of any type
add_edges, update_edges, delete_edgesWork with edges
add_metadata, delete_metadataAdd or remove individual metadata entries

Installation

You need Node.js 18 or newer and an MCP client such as Claude Desktop.

  1. Download and build MemoryMesh:

    git clone https://github.com/CheMiguel23/MemoryMesh.git
    
    cd MemoryMesh
    
    npm install
    

    npm install also builds the project into dist/.

  2. Add MemoryMesh to Claude Desktop. Open Settings → Developer → Edit Config and add:

    {
      "mcpServers": {
        "memorymesh": {
          "command": "node",
          "args": ["/ABSOLUTE/PATH/TO/MemoryMesh/dist/index.js"]
        }
      }
    }
    

    On Windows, double every backslash: "C:\\Projects\\MemoryMesh\\dist\\index.js".

  3. Fully quit and restart Claude Desktop. MemoryMesh and its tools (add_npc, read_graph, ...) appear in the tools menu of the chat box.

Updating

git pull
npm install

Then restart your MCP client. Updating keeps your memory file and any schemas you edited.

Configuration

Environment variableWhat it setsDefault
MEMORYMESH_MEMORY_FILEPath of the memory filedist/data/memory.json
MEMORYMESH_SCHEMAS_DIRFolder containing .schema.json filesdist/data/schemas

Set them in your Claude Desktop config:

"memorymesh": {
  "command": "node",
  "args": ["/ABSOLUTE/PATH/TO/MemoryMesh/dist/index.js"],
  "env": {
    "MEMORYMESH_MEMORY_FILE": "/ABSOLUTE/PATH/TO/my-project/memory.json",
    "MEMORYMESH_SCHEMAS_DIR": "/ABSOLUTE/PATH/TO/my-project/schemas"
  }
}

Keeping your schemas and memory in a folder of your own keeps them separate from the MemoryMesh code. You can also run several MemoryMesh entries with different folders, for example one per campaign or project.

Docker: docker build -t memorymesh . then docker run -i --rm -v memorymesh-data:/data memorymesh. The memory file is /data/memory.json inside the container.

Viewing your memory

The memory file stores one JSON object per line. The MemoryViewer displays it as a searchable table with stats (guide): open it in Chrome or Edge, click Select Memory File, and pick your memory.json.

Tips

  • Tell the AI what the memory is for, for example in a Claude Project's instructions: "Use the memorymesh tools to record every person, team and project I mention, and check the graph before answering questions about them."
  • The AI can be hesitant to delete things. Ask explicitly when you want something removed.
  • When information conflicts, the latest update wins. To keep both versions, record the source or date in metadata ("source: tavern gossip", "as of: chapter 3"), or store competing claims as separate nodes.

Troubleshooting

  • MemoryMesh doesn't appear in Claude Desktop: check that the path in the config is absolute and points to dist/index.js (with doubled backslashes on Windows), and that npm install finished without errors.
  • Tools are missing: check that your schema files end in .schema.json and that their name starts with add_.
  • Check the log, where MemoryMesh reports which schemas it loaded and why any were skipped:
    • macOS: ~/Library/Logs/Claude/mcp-server-memorymesh.log
    • Windows: the logs folder inside %APPDATA%\Claude

Development

npm install     # also builds
npm test        # runs the test suite
npm run watch   # recompiles on change
FilePurpose
src/index.tsEntry point: loads schemas and starts the server on stdio
src/server.tsLists tools and routes each tool call to its handler
src/tools.tsDefinitions of the built-in tools
src/schemas.tsLoads schema files and implements the generated add_/update_/delete_ tools
src/graph.tsThe graph operations themselves, with input validation
src/store.tsReads and writes the memory file, one change at a time
src/config.tsPaths and version
src/types.tsShared types

Contributing

Contributions, feedback, ideas and schema sets are welcome. Open an issue, start a discussion, or send a pull request.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MemoryMesh is an MCP server that gives AI models a structured, long-term memory in the form of a knowledge graph. from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/memorymesh)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent