MCP Memory Server
Enables deployment as an npm package that can be installed and executed using npm commands
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Memory Server store that Alice is a software engineer at Acme Corp"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: Lspace MCP Server
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 buildUsage
# Run the memory server
npx mcp-server-memoryDevelopment
npm run watchThis 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.jsUsing npm binary
After building, you can use the npm binary name:
npx mcp-server-memoryBackground 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.jsThis will:
Start a proxy server (typically on
127.0.0.1:6277)Launch the web-based inspector interface (typically at
http://127.0.0.1:6274)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
Make changes to
src/index.tsRun
npm run buildto rebuildStart the Inspector:
npx @modelcontextprotocol/inspector node dist/index.jsTest your changes in the web interface
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
Available Tools
9 toolsadd_observationsB
Add new observations to existing entities in the knowledge graph
Inputs: observations (required).
create_entitiesB
Create multiple new entities in the knowledge graph
Inputs: entities (required).
create_relationsB
Create multiple new relations between entities in the knowledge graph. Relations should be in active voice
Inputs: relations (required).
delete_entitiesA
Delete multiple entities and their associated relations from the knowledge graph
Inputs: entityNames (required).
delete_observationsB
Delete specific observations from entities in the knowledge graph
Inputs: deletions (required).
delete_relationsA
Delete multiple relations from the knowledge graph
Inputs: relations (required).
open_nodesC
Open specific nodes in the knowledge graph by their names
Inputs: names (required).
read_graphB
Read the entire knowledge graph
Inputs: no named parameters.
search_nodesC
Search for nodes in the knowledge graph based on a query
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools have distinct purposes focused on specific operations in the knowledge graph (e.g., create_entities vs. delete_entities, add_observations vs. delete_observations). However, 'open_nodes' and 'search_nodes' could potentially overlap in function—both involve accessing nodes, though 'open_nodes' seems to target specific nodes by name while 'search_nodes' uses queries, which might cause some confusion for an agent.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., add_observations, create_entities, delete_relations). The verbs are clear and descriptive, and there are no deviations in naming conventions across the set, making it predictable and easy to understand.
With 9 tools, this server is well-scoped for managing a knowledge graph, covering key operations like creation, deletion, reading, and searching. The count is appropriate for the domain, providing a comprehensive set without being overwhelming or too sparse.
The tool set offers strong coverage for knowledge graph management, including CRUD operations for entities, relations, and observations, plus utilities for reading and searching. A minor gap is the lack of update tools (e.g., update_entities or update_relations), which might require workarounds, but core workflows are well-supported.
Related MCP Connectors
Persistent memory for AI agents to retain, retrieve, and recall conversation context through MCP.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Persistent, portable memory for AI assistants — your private memory graph, from any MCP client.
An MCP memory server. One memory your agents share — across models, devices and apps.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides AI agents with persistent memory capabilities through Mem0, allowing them to store, retrieve, and semantically search memories.687MIT

Lspace MCP Serverofficial
AlicenseAqualityDmaintenanceAn open-source server implementing the Model Context Protocol (MCP) that enables capturing insights from AI sessions and transforming them into persistent, searchable knowledge accessible across tools.79Business Source 1.1- AlicenseBqualityCmaintenanceA Model Context Protocol server that provides persistent memory capabilities for AI systems, enabling true continuity of consciousness across conversations through episodic, semantic, procedural, and strategic memory types.246MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides AI assistants with persistent semantic memory and knowledge graph capabilities using PostgreSQL and vector embeddings. It enables cross-session storage, hybrid search, and complex relationship tracking for enhanced contextual awareness.1MIT