Graph Memory RAG MCP Server
About
A Model Context Protocol (MCP) server implementation for graph-based memory storage with RAG capabilities
Details
- Author
- lecharles
- Downloads
- 314
- Categories
- Knowledge Base
Jump to
- In-memory graph database storage
- Entity creation and management
- Relationship creation between entities
- Query capabilities for entities and relationships
- Delete operations with cascading relationship cleanup
- MCP-compliant interface
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Graph Memory RAG MCP ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install dependencies with npm install and start the server with node app.js. The server exposes tools for creating entities and relationships, querying entities and relationships by type, and deleting entities with cascading relationship cleanup.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"graph memory rag mcp server": {
"graph-memory-rag-mcp-server": {
"command": "node",
"args": [
"app.js"
]
}
}
}
}
McpServers
{
"graph-memory-rag-mcp-server": {
"command": "node",
"args": [
"app.js"
]
}
}
Graph Memory RAG MCP Server
A Model Context Protocol (MCP) server implementation that provides graph-based memory storage capabilities. This server allows AI agents to store and retrieve information in a graph structure, making it ideal for maintaining context and relationships between different pieces of information.
Features
- In-memory graph database storage
- Entity creation and management
- Relationship creation between entities
- Query capabilities for both entities and relationships
- Delete operations with cascading relationship cleanup
- MCP-compliant interface
Installation
npm install
Dependencies
- @modelcontextprotocol/sdk: ^1.0.3
- zod: ^3.22.4
Usage
Start the server:
node app.js
API Tools
Create Entity
Creates a new entity in the graph database. - Parameters: - name: string - entityType: string - observations: string[]Create Relationship
Creates a relationship between two existing entities. - Parameters: - fromEntityName: string - toEntityName: string - relationType: stringQuery Entities
Retrieves entities by type. - Parameters: - entityType: stringQuery Relationships
Retrieves relationships by type. - Parameters: - relationType: stringDelete Entity
Deletes an entity and its associated relationships. - Parameters: - name: stringImplementation Details
The server uses an in-memory graph database with two main components:
1. Entities Map: Stores entity objects with their properties
2. Relationships Map: Stores relationship objects connecting entities
Each entity contains:
- id: Unique identifier
- name: Entity name
- type: Entity type
- observations: Array of strings containing information about the entity
Each relationship contains:
- id: Unique identifier
- fromId: Source entity ID
- toId: Target entity ID
- type: Relationship type
Contributing
Feel free to open issues or submit pull requests for improvements.
License
MIT
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.


