MCP Memory Enhanced
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 Enhanced remember that Alice works at Acme and reports to Bob"
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 Enhanced
An enhanced fork of the official MCP Memory Server with SQLite backend support for improved performance and scalability. Now at v1.0.0 - Production Ready! π
π Features
Dual Storage Backend: Choose between JSON (original) and SQLite storage
Performance Optimized: SQLite backend for faster entity creation and searches
Production-Ready Docker Support: Multi-stage builds, health checks, and UnRAID compatibility
Backward Compatible: 100% compatible with the original MCP protocol
Migration Tools: Seamlessly migrate from JSON to SQLite storage
Comprehensive Benchmarking: Built-in performance validation and monitoring
Related MCP server: memdb
π Performance Comparison
<<<<<<< HEAD Based on benchmarks with 10,000 entities:
Operation | JSON Backend | SQLite Backend | Improvement |
Entity Creation | 678ms | 145ms | 4.7x faster |
Search (5 queries) | 90ms | 67ms | 1.3x faster |
Memory Usage | 11.3MB | 11.3MB | Similar |
Storage Size | 3.9MB | 9.6MB | JSON more compact |
Note: Performance varies based on hardware and dataset characteristics. SQLite excels at indexed searches and concurrent access, while JSON provides simpler deployment and smaller file sizes for this dataset size.
Based on comprehensive benchmarks with datasets from 10K to 500K entities (validated 2025-08-08):
Operation | JSON Backend | SQLite Backend | Improvement |
Entity Creation (100K) | 60.86s | 1.95s | 31x faster |
Entity Creation (500K) | 979.38s | 8.24s | 119x faster |
Search (10K dataset) | 312.91ms/search | 13.41ms/search | 23x faster |
Memory Usage | ~400MB (100K) | ~20MB (100K) | 92% less |
Storage Size* | TBD | TBD | ~30% smaller |
*Storage size validation pending; preliminary tests show 30-40% reduction
Note: Performance improvements scale with dataset size. Larger datasets show more dramatic improvements, with 500K entities showing 119x faster creation and consistent 90%+ memory reduction. Benchmarks run on standard hardware with Node.js v22.
dev/v1.0.2
π³ Quick Start with Docker
docker run -d \
--name mcp-memory-enhanced \
-p 6970:6970 \
-v /path/to/data:/data \
-e STORAGE_TYPE=sqlite \
ghcr.io/jamesprial/mcp-memory-enhanced:latestπ¦ Installation
From npm (via GitHub)
# Latest version
npm install github:JamesPrial/mcp-memory-enhanced
# Specific version
npm install github:JamesPrial/mcp-memory-enhanced#v1.0.0From Source
git clone https://github.com/JamesPrial/mcp-memory-enhanced.git
cd mcp-memory-enhanced
npm install
npm run buildUsing Docker Compose
docker-compose up -dπ§ Configuration
Environment Variables
Variable | Default | Description |
|
| Storage backend: |
| OS temp dir | Directory for data files |
|
| SQLite database filename |
|
| Health check server port (Docker only) |
|
| Logging level |
MCP Configuration
Add to your MCP client settings:
{
"mcpServers": {
"memory": {
"command": "node",
"args": ["/path/to/mcp-memory-enhanced/dist/index.js"],
"env": {
"STORAGE_TYPE": "sqlite",
"STORAGE_PATH": "/path/to/data"
}
}
}
}π Migration from JSON to SQLite
# Using the migration tool
npm run migrate /path/to/knowledge-graph.jsonlOr with Docker:
docker run --rm \
-v /path/to/json-data:/source \
-v /path/to/sqlite-data:/data \
ghcr.io/jamesprial/mcp-memory-enhanced:latest \
node dist/migrate.js /source/knowledge-graph.jsonlπ₯ Health Check (Docker only)
The Docker container provides a health endpoint at http://localhost:6970/health:
{
"status": "healthy",
"timestamp": "2025-08-05T12:00:00.000Z",
"storage": {
"type": "sqlite",
"stats": {
"entityCount": 1000,
"relationCount": 500,
"observationCount": 2000,
"storageSize": 1048576
}
}
}π UnRAID Deployment
Download the UnRAID template
In UnRAID web UI: Docker β Add Container β Template
Select the template file and configure as needed
π οΈ Development
Running Tests
npm testBuilding Docker Image
docker build -f Dockerfile.standalone -t mcp-memory-enhanced .Running Locally
STORAGE_TYPE=sqlite npm startπ Architecture
The Enhanced MCP Memory Server uses a clean storage abstraction layer:
βββββββββββββββββββ
β MCP Client β
ββββββββββ¬βββββββββ
β stdio
ββββββββββΌβββββββββ
β MCP Server β
β (index.ts) β
ββββββββββ¬βββββββββ
β
ββββββββββΌβββββββββ
β KnowledgeGraph β
β Manager β
ββββββββββ¬βββββββββ
β
ββββββββββΌβββββββββ
β IStorageBackend β
ββββββββββ¬βββββββββ
β
ββββββ΄βββββ
β β
βββββΌββββ ββββΌβββββ
β JSON β βSQLite β
βββββββββ βββββββββπ€ Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch (
git checkout -b feat/amazing-feature)Commit your changes (
git commit -m 'feat: add amazing feature')Push to the branch (
git push origin feat/amazing-feature)Open a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
Original MCP Memory Server by Anthropic
Built with the MCP TypeScript SDK
Powered by better-sqlite3
π Status
Phase 1: β Core Implementation (Complete)
Phase 2: β Docker Support (Complete)
Phase 3: β CI/CD Pipeline (Complete)
Phase 4: π Production Hardening (Next)
π€ Enhanced for production use with β€οΈ by @JamesPrial
Available Tools
10 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).
get_statsB
Get statistics about the knowledge graph storage
Inputs: no named parameters.
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 10 tools
Each tool targets a distinct resource and action: entity creation, relation creation, observation addition/deletion, graph reading, node search/opening, stats, and deletion. The closest overlap is read_graph vs open_nodes vs search_nodes, but their descriptions clearly distinguish whole-graph reading, name-based lookup, and query-based search.
All tool names use consistent snake_case verb_noun patterns such as create_entities, delete_relations, read_graph, search_nodes, and get_stats. There are no mixed conventions or vague standalone verbs.
Ten tools is well-scoped for a knowledge-graph memory server. Each tool corresponds to a meaningful operation without excessive granularity.
The surface covers creating, reading, searching, opening, and deleting entities, relations, and observations, plus stats. Minor gaps exist around updating entity fields or relation properties directly, but these can be worked around by delete-and-recreate or observation updates.
Maintenance
Related MCP Connectors
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Hosted agent memory: store, search, and recall facts across sessions from any MCP client.
Hosted memory for AI agents over MCP. One memory shared by all your agents.
Personal knowledge graph as an AI memory layer over MCP - read, save, and link your memories.
Related MCP Servers
- AlicenseCqualityDmaintenanceProvides persistent memory and knowledge graph capabilities for AI assistants using local SQLite storage. Enables creating, searching, and managing entities, relationships, and observations with vector search support across conversations.721 npm15MIT
- AlicenseAqualityDmaintenanceA SQLite-backed MCP memory server providing persistent memory storage with full-text search and knowledge graph capabilities for AI assistants.1221 npmMIT
- AlicenseNot gradedqualityCmaintenanceA knowledge-graph-based persistent memory server for the Model Context Protocol, storing entities, observations, and relations in SQLite with semantic vector search and temporal versioning.MIT
- AlicenseAqualityDmaintenancePersistent knowledge graph MCP server with SQLite backend. Enables graph traversal, fuzzy search, temporal queries, and timestamps for entity management.12MIT