MemoryMesh logo

MemoryMesh

by CheMiguel23

Configurable MCP memory server that stores nodes, relationships, and metadata in a local knowledge graph.

Install MemoryMesh

Run the project’s own setup commands, in order.

Setup steps from the project

CheMiguel23/MemoryMesh installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/CheMiguel23/MemoryMesh.git
    
  2. 2. Install
    npm install
    
  3. 3. Install
    docker build -t memorymesh .
    
  4. 4. Start the server
    docker run -i --rm -v memorymesh-data:/data memorymesh
    
  5. 5. Install
    npm install     # also builds
    

Overview

CheMiguel23/MemoryMesh gives AI clients structured, persistent memory backed by a local JSON knowledge graph. JSON schema files define node types and generate add, update, and delete tools, while built-in tools search and manage the graph directly. Use it for RPG worlds, story characters, personal CRM data, organization records, or research notes that need linked entities. It runs as a Node.js stdio server and supports custom memory and schema locations.

Use cases

  • Build linked RPG worlds with characters, places, and events
  • Track people, teams, projects, and organizational relationships
  • Maintain a personal CRM with contacts and follow-ups
  • Organize research sources, authors, concepts, and notes
  • Persist structured story-generation details across sessions

Key features

  • Store nodes, edges, metadata, and relationship weights
  • Generate CRUD tools from JSON schemas
  • Search nodes with direct-neighbor context
  • Validate changes transactionally before saving
  • Configure separate memory and schema directories
  • Manage generic nodes and edges with built-in tools

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

34/34 checks healthy over the last 117d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars355Stargazers on the source repository.
Last commit21d agoMost recent push to the default branch.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How MemoryMesh works

What CheMiguel23/MemoryMesh does

CheMiguel23/MemoryMesh exposes a long-term knowledge graph to AI models through the Model Context Protocol. The graph stores nodes such as people, characters, projects, locations, books, or companies, along with edges that describe how those nodes relate. Metadata can hold additional attributes, while relationships preserve links such as a character being located in a place.

The server is suited to structured memory rather than free-form conversation history. Example applications include text-based RPG campaigns, story-generation data, people and organization records, personal CRM information, and research or reading notes.

How it works

MemoryMesh represents each node with a name, node type, and optional metadata. An edge connects two named nodes and has an edge type; it may also include a weight between 0 and 1 for strength or confidence. Graph data is stored in a JSON file, with one JSON object per line.

Schemas are JSON files ending in .schema.json. A schema whose name begins with add_ defines the node type and causes MemoryMesh to create matching add_, update_, and delete_ tools. Schema properties can be required, restricted to an enum, or marked as relationships. Relationship properties create edges to existing nodes. Invalid schema files are skipped with a logged reason, and potentially confusing configurations such as reused relationship edge types produce warnings.

Operations are transactional: validation errors, missing required fields, or references to nonexistent nodes prevent the change from being saved. Updating a node changes only supplied fields, although an empty array clears a field and replacing metadata replaces the complete metadata list.

Setup and configuration

MemoryMesh requires Node.js 22 or newer. Clone the repository, run npm install, and start the generated dist/index.js through an MCP client's stdio configuration. Claude Desktop can be configured with a node command and the absolute path to that file, followed by a full client restart.

MEMORYMESH_MEMORY_FILE selects the memory file and defaults to .memorymesh/memory.json in the user's home directory. MEMORYMESH_SCHEMAS_DIR selects the schema directory and defaults to dist/data/schemas. Separate directories allow different projects or campaigns to use independent memories and schemas. Docker is also supported, with the container memory file at /data/memory.json when using the documented volume setup.

Tools and capabilities

Built-in graph tools include:

  • read_graph to return the complete graph.
  • search_nodes to find nodes matching every word in a query and include direct neighbors.
  • open_nodes to inspect named nodes and their direct neighbors.
  • add_nodes, update_nodes, and delete_nodes for generic node operations. Renaming through update_nodes updates connected edges and linked-node metadata that refers to the old name.
  • add_edges, update_edges, and delete_edges for relationship management.
  • add_metadata and delete_metadata for individual metadata entries.

Schema-generated tools provide typed operations for custom node categories. The included examples cover NPCs and locations, while additional schema sets cover organizations, personal CRM records, research notes, and RPG storytelling.

Limitations and notes

Relationship targets must already exist before a relationship field can create an edge. Each relationship field should use its own edge type because updating that field replaces all outgoing edges of that type. Setting additionalProperties to false rejects fields absent from the schema; the default behavior preserves extra fields as metadata.

Multiple MCP clients can share one memory file because writes briefly lock the file. Existing files in the older dist/data/memory.json location remain usable but should be moved to .memorymesh/memory.json before removing the build directory.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MemoryMesh

CheMiguel23/MemoryMesh is an MCP server that connects AI models to a local JSON knowledge graph and provides tools for adding, updating, deleting, searching, and opening nodes, along with managing edges and metadata. Custom schemas also generate typed tools for domain-specific entities such as NPCs, locations, contacts, or projects.

Clone the repository, run `npm install`, and configure your MCP client to launch `dist/index.js` with Node.js 22 or newer. In Claude Desktop, add a server entry using the `node` command and the file's absolute path, then fully restart the client.

MemoryMesh stores memory in `.memorymesh/memory.json` in the user's home directory by default. Set `MEMORYMESH_MEMORY_FILE` to use another path, such as a project-specific JSON file. The file contains one JSON object per line.

Create a `.schema.json` file whose schema name starts with `add_`, then place it in the configured schemas directory. MemoryMesh uses its properties and relationship definitions to generate corresponding add, update, and delete tools for that node type.

Yes. MemoryMesh uses the standard MCP stdio transport, so it can be configured in MCP clients that support local stdio servers, including Cursor. Provide the command and absolute path to `dist/index.js` in the client's server configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMemoryMesh AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/chemiguel23-memorymesh?style=directory)](https://allmcps.com/mcp/chemiguel23-memorymesh)
HTML Embed
<a href="https://allmcps.com/mcp/chemiguel23-memorymesh"><img src="https://allmcps.com/api/badge/chemiguel23-memorymesh?style=directory" alt="MemoryMesh on AllMCPs" /></a>