
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A locally run MCP server that extends basic memory concepts with semantic search, document processing, and hybrid retrieval for intelligent memory management.
RAG-enabled memory MCP server with knowledge graph and vector search is cataloged as an MCP server attributed to ttommyth. A locally run MCP server that extends basic memory concepts with semantic search, document processing, and hybrid retrieval for intelligent memory management. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for RAG-enabled memory MCP server with knowledge graph and vector search are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
The server uses local SQLite storage and requires local file system access, with the database path configurable via MEMORY_DB_PATH.
Hybrid search combines vector similarity for semantic matching with graph traversal for conceptual relationships.
README.md · f9def9e9d714 · Fetched 2026-11-13 09:26:17 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
An advanced MCP server for RAG-enabled memory through a knowledge graph with vector search capabilities. This server extends the basic memory concepts with semantic search, document processing, and hybrid retrieval for more intelligent memory management.
Inspired by: Knowledge Graph Memory Server from the Model Context Protocol project.
Note: This server is designed to run locally alongside MCP clients (e.g., Claude Desktop, VS Code) and requires local file system access for database storage.
This server provides comprehensive memory management through the Model Context Protocol (MCP):
storeDocument: Store documents with metadata for processingchunkDocument: Create text chunks with configurable parametersembedChunks: Generate vector embeddings for semantic searchextractTerms: Extract potential entity terms from documentslinkEntitiesToDocument: Create explicit entity-document associationsdeleteDocuments: Remove documents and associated datalistDocuments: View all stored documents with metadatacreateEntities: Create new entities with observations and typescreateRelations: Establish relationships between entitiesaddObservations: Add contextual information to existing entitiesdeleteEntities: Remove entities and their relationshipsdeleteRelations: Remove specific relationshipsdeleteObservations: Remove specific observations from entitieshybridSearch: Advanced search combining vector similarity and graph traversalsearchNodes: Find entities by name, type, or observation contentopenNodes: Retrieve specific entities and their relationshipsreadGraph: Get complete knowledge graph structuregetKnowledgeGraphStats: Comprehensive statistics about the knowledge baseThis server is ideal for scenarios requiring intelligent memory and document understanding:
This section explains how to configure MCP clients to use the rag-memory-mcp server.
Add the following configuration to your claude_desktop_config.json (Claude Desktop) or mcp.json (Cursor):
{
"mcpServers": {
"rag-memory": {
"command": "npx",
"args": ["-y", "rag-memory-mcp"]
}
}
}
With specific version:
{
"mcpServers": {
"rag-memory": {
"command": "npx",
"args": ["-y", "rag-memory-mcp@1.0.0"]
}
}
}
With custom database path:
{
"mcpServers": {
"rag-memory": {
"command": "npx",
"args": ["-y", "rag-memory-mcp"],
"env": {
"MEMORY_DB_PATH": "/path/to/custom/memory.db"
}
}
}
}
Add the following configuration to your User Settings (JSON) file or .vscode/mcp.json:
{
"mcp": {
"servers": {
"rag-memory-mcp": {
"command": "npx",
"args": ["-y", "rag-memory-mcp"]
}
}
}
}
Entities are the primary nodes in the knowledge graph. Each entity has:
Example:
{
"name": "Machine Learning",
"entityType": "CONCEPT",
"observations": [
"Subset of artificial intelligence",
"Focuses on learning from data",
"Used in recommendation systems"
]
}
Relations define directed connections between entities, describing how they interact:
Example:
{
"from": "React",
"to": "JavaScript",
"relationType": "BUILT_WITH"
}
Observations are discrete pieces of information about entities:
Documents are processed through:
This enables hybrid search that combines:
MEMORY_DB_PATH: Path to the SQLite database file (default: memory.db in the server directory)This section is for developers looking to modify or contribute to the server.
package.json for version compatibilitygit clone https://github.com/ttommyth/rag-memory-mcp.git
cd rag-memory-mcp
npm install
npm run build
npm run watch # For development with auto-rebuild
npm run buildnpm run watchnpm run prepareHere's a typical workflow for building and querying a knowledge base:
// 1. Store a document
await storeDocument({
id: "ml_intro",
content: "Machine learning is a subset of AI...",
metadata: { type: "educational", topic: "ML" }
});
// 2. Process the document
await chunkDocument({ documentId: "ml_intro" });
await embedChunks({ documentId: "ml_intro" });
// 3. Extract and create entities
const terms = await extractTerms({ documentId: "ml_intro" });
await createEntities({
entities: [
{
name: "Machine Learning",
entityType: "CONCEPT",
observations: ["Subset of artificial intelligence", "Learns from data"]
}
]
});
// 4. Search with hybrid approach
const results = await hybridSearch({
query: "artificial intelligence applications",
limit: 10,
useGraph: true
});
For optimal memory utilization, consider using this system prompt:
You have access to a RAG-enabled memory system with knowledge graph capabilities. Follow these guidelines:
1. **Information Storage**:
- Store important documents using the document management tools
- Create entities for people, concepts, organizations, and technologies
- Build relationships between related concepts
2. **Information Retrieval**:
- Use hybrid search for comprehensive information retrieval
- Leverage both semantic similarity and graph relationships
- Search entities before creating duplicates
3. **Memory Maintenance**:
- Add observations to enrich entity context
- Link documents to relevant entities for better discoverability
- Use statistics to monitor knowledge base growth
4. **Processing Workflow**:
- Store → Chunk → Embed → Extract → Link
- Always process documents completely for best search results
Contributions are welcome! Please follow standard development practices and ensure all tests pass before submitting pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.
Built with: TypeScript, SQLite, sqlite-vec, Hugging Face Transformers, Model Context Protocol SDK
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for RAG-enabled memory MCP server with knowledge graph and vector search from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/rag-memory)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.