Memorymesh
M

Memorymesh

MemoryMesh is a knowledge graph server designed for AI models, focusing on text RPGs and interactive narratives, helping AI maintain structured memory across conversations.
3.5 points
13.3K

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

๐Ÿš€ Memory Mesh

MemoryMesh is an MCP server for managing knowledge graph data in the Claude desktop environment. It enables AI to perform reasoning through structured data and provides an in-memory data storage system.

๐Ÿš€ Quick Start

Installation

  1. Clone the repository:

    git clone https://github.com/CheMiguel23/memorymesh.git
    cd memorymesh
    
  2. Install dependencies:

    npm install
    
  3. Compile the project:

    npm run build
    

    This command compiles the TypeScript code into JavaScript and stores it in the dist directory. It also copies the example schema and data files to this directory.

  4. Configure the Claude desktop environment:

    • Open your configuration file:

      • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
      • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Add the following content to the mcpServers section:

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

      Replace /ABSOLUTE/PATH/TO/YOUR/PROJECT/ with the actual path of your project.

Verify the Installation

  1. Launch the Claude desktop.
  2. Open a new chat window.
  3. Check the MCP plugin icon in the top - right corner. If you see the icon, the configuration is correct.
  4. Click the icon and view the list of connected servers. You should see "memorymesh".

โœจ Features

  • Pluggable Knowledge Representation: Define entities and relationships through JSON Schema.
  • Persistent Storage: Data is saved in files to prevent data loss due to power outages or restarts.
  • AI Programmable Interface: Provide custom tools for Claude to interact with the knowledge graph.

๐Ÿ’ป Usage Examples

Basic Usage

// Create a user using the add_user tool
{
  "tool": "add_user",
  "args": {
    "username": "john_doe",
    "email": "john@example.com",
    "age": 30,
    "hobbies": ["reading", "music"]
  }
}

Advanced Usage

// Query a user using the query_user tool
{
  "tool": "query_user",
  "args": {
    "username": "john_doe"
  },
  "result": {
    "found": true,
    "user": {
      "username": "john_doe",
      "email": "john@example.com",
      "age": 30,
      "hobbies": ["reading", "music"]
    }
  }
}

๐Ÿ“š Documentation

Dependencies

  • express: Used to create an HTTP server.
  • yargs: Command - line argument parsing.
  • uuid: Generate unique identifiers.

Install via npm

npm install memorymesh --save

Directory Structure

memorymesh/
โ”œโ”€โ”€ dist/                 # Compiled output directory
โ”‚   โ”œโ”€โ”€ index.js         # Entry file
โ”‚   โ””โ”€โ”€ data/            # Data storage directory
โ”œโ”€โ”€ schemas/              # Schema files defining entities and relationships
โ””โ”€โ”€ src/                  # Source code directory
    โ”œโ”€โ”€ server.ts        # Server implementation
    โ””โ”€โ”€ tools/           # Custom tools

Tutorial

Create a New Entity Type

  1. Create a new JSON Schema file in the schemas directory.
  2. Define the attributes and relationships of the entity.
  3. Use AI tools for data operations.

๐Ÿค Contribution

Any contributions, feedback, or ideas are welcome to further advance this project or inspire new explorations.

Alternatives

A
Airweave
Airweave is an open - source context retrieval layer for AI agents and RAG systems. It connects and synchronizes data from various applications, tools, and databases, and provides relevant, real - time, multi - source contextual information to AI agents through a unified search interface.
Python
15.1K
5 points
V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
9.4K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
10.0K
4.5 points
H
Haiku.rag
Haiku RAG is an intelligent retrieval - augmented generation system built on LanceDB, Pydantic AI, and Docling. It supports hybrid search, re - ranking, Q&A agents, multi - agent research processes, and provides local - first document processing and MCP server integration.
Python
16.9K
5 points
C
Cipher
Cipher is an open-source memory layer framework designed for programming AI agents. It integrates with various IDEs and AI coding assistants through the MCP protocol, providing core functions such as automatic memory generation, team memory sharing, and dual-system memory management.
TypeScript
0
5 points
A
Apple Notes MCP
A server that provides local Apple Notes database access for the Claude desktop client, supporting reading and searching of note content.
Python
15.5K
4.3 points
M
MCP Server Weread
The WeRead MCP Server is a lightweight service that bridges WeRead data and AI clients, enabling in - depth interaction between reading notes and AI.
TypeScript
16.7K
4 points
M
MCP Obsidian
This project is an MCP server used to interact with the Obsidian note application through the Local REST API plugin of Obsidian. It provides various tools to operate and manage files in Obsidian, including listing files, retrieving file content, searching, modifying content, and deleting files.
Python
24.2K
5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
39.0K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
81.2K
4.3 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
27.2K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
24.8K
4.5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
69.4K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
37.3K
5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
24.9K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
56.2K
4.8 points