MCP Memory Server

MCP Memory Server

A Model Context Protocol server that provides knowledge graph-based persistent memory for LLMs, allowing them to store, retrieve, and reason about information across multiple conversations and sessions.

Category
Visit Server

Tools

create_entities

Create multiple new entities in the knowledge graph

create_relations

Create multiple new relations between entities in the knowledge graph. Relations should be in active voice

add_observations

Add new observations to existing entities in the knowledge graph

delete_entities

Delete multiple entities and their associated relations from the knowledge graph

delete_observations

Delete specific observations from entities in the knowledge graph

delete_relations

Delete multiple relations from the knowledge graph

read_graph

Read the entire knowledge graph

search_nodes

Search for nodes in the knowledge graph based on a query

open_nodes

Open specific nodes in the knowledge graph by their names

README

MCP Memory Server

A Model Context Protocol (MCP) server implementation that provides persistent memory capabilities for Large Language Models.

Overview

This repository contains a reference implementation of the Model Context Protocol Memory Server. The server implements a knowledge graph-based persistent memory system that enables LLMs to store, retrieve, and reason about information across conversations and sessions.

Features

  • Knowledge Graph Storage: Persistent graph-based information storage
  • Entity Management: Create and manage entities and their relationships
  • Semantic Search: Find relevant information using semantic similarity
  • Cross-session Memory: Maintain context across different conversations
  • Memory Operations: Full CRUD operations for memory management

Installation

npm install
npm run build

Usage

# Run the memory server
npx mcp-server-memory

Development

npm run watch

This will start the server in development mode with automatic rebuilding on file changes.

Running the Server

Direct Execution

For development and testing, you can run the server directly:

# Build first (if not already built)
npm run build

# Run the server
node dist/index.js

Using npm binary

After building, you can use the npm binary name:

npx mcp-server-memory

Background Process

The server runs continuously and communicates via stdio (standard input/output), which is the standard for MCP servers.

Testing with MCP Inspector

The MCP Inspector is an excellent tool for testing and debugging your memory server during development:

Start the Inspector

npx @modelcontextprotocol/inspector node dist/index.js

This will:

  1. Start a proxy server (typically on 127.0.0.1:6277)
  2. Launch the web-based inspector interface (typically at http://127.0.0.1:6274)
  3. Provide a session token for authentication

Using the Inspector

The Inspector provides several tabs for testing your server:

  • Resources tab: View and test memory resources
  • Tools tab: Test memory management tools (create, update, delete entities)
  • Prompts tab: Test any prompt templates
  • Notifications pane: Monitor server logs and messages

Development Workflow

  1. Make changes to src/index.ts
  2. Run npm run build to rebuild
  3. Start the Inspector: npx @modelcontextprotocol/inspector node dist/index.js
  4. Test your changes in the web interface
  5. Check the notifications pane for any errors

Integration with MCP Clients

To use this server with MCP clients (like Claude Desktop), add it to your client configuration:

{
  "mcpServers": {
    "memory": {
      "command": "node",
      "args": ["/path/to/your/mcp-memory-server/dist/index.js"]
    }
  }
}

Or if published to npm:

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["@modelcontextprotocol/server-memory"]
    }
  }
}

Model Context Protocol

The Model Context Protocol (MCP) is an open standard that enables seamless integration between AI applications and external data sources and tools. Learn more at modelcontextprotocol.io.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured