Graph Memory RAG MCP Server logo

Graph Memory RAG MCP Server

by lecharles

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.

View on GitHub

Last updated: N/A

What is Graph Memory RAG MCP Server?

This is a Model Context Protocol (MCP) server that uses an in-memory graph database to store and manage information for AI agents. It allows agents to create entities, define relationships between them, and query the graph to retrieve relevant information.

How to use Graph Memory RAG MCP Server?

First, install the dependencies using npm install. Then, start the server with node app.js. The server provides an MCP-compliant interface with API endpoints to create entities, create relationships, query entities, query relationships, and delete entities.

Key features of Graph Memory RAG MCP Server

  • In-memory graph database storage

  • Entity creation and management

  • Relationship creation between entities

  • Query capabilities for both entities and relationships

Use cases of Graph Memory RAG MCP Server

  • Maintaining context in AI conversations

  • Knowledge graph creation for AI agents

  • Storing and retrieving information for RAG applications

  • Building AI agents with memory capabilities

FAQ from Graph Memory RAG MCP Server

What is an MCP server?

MCP stands for Model Context Protocol. It's a protocol for managing context in AI models.

What is an in-memory graph database?

It's a graph database that stores data in the computer's RAM, allowing for fast access and manipulation.

How do I create an entity?

Use the Create Entity API endpoint with the required parameters (name, entityType, observations).

How do I create a relationship?

Use the Create Relationship API endpoint with the required parameters (fromEntityName, toEntityName, relationType).

What dependencies are required?

The server requires @modelcontextprotocol/sdk and zod.