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

An MCP server that provides expiring memory storage and a ChromaDB-based RAG database with semantic search and real-time event updates.
Memory-enhanced MCP server with local RAG is cataloged as an MCP server attributed to jvanmelckebeke. An MCP server that provides expiring memory storage and a ChromaDB-based RAG database with semantic search and real-time event updates. 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 Memory-enhanced MCP server with local RAG 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.
Yes, memories can be stored with a configurable TTL and expire automatically, with background cleanup removing expired entries.
Yes, it supports API-based embeddings through an OpenAI-compatible endpoint and local embeddings using PyTorch and sentence-transformers.
No, Redis is an optional backend for distributed memory storage.
README.md · 9431d30c1b82 · Fetched 2026-11-13 13:02:55 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.
A memory-enhanced MCP (Model Context Protocol) server with local RAG (Retrieval-Augmented Generation) database and expiring memory capabilities.
Clone the repository:
git clone https://github.com/your-org/mcp-synaptic.git
cd mcp-synaptic
Install dependencies:
# For API-based embeddings (recommended - lightweight)
uv sync
# For local embeddings (includes PyTorch - heavy)
uv sync --extra local-embeddings
Initialize the project:
uv run mcp-synaptic init
Start the server:
uv run mcp-synaptic server
The server will start on http://localhost:8000 by default.
Build and run with Docker Compose:
docker-compose up --build
Or run individual container:
docker build -t mcp-synaptic .
docker run -p 8000:8000 mcp-synaptic
Create a .env file in the project root (use .env.example as template):
# Server Configuration
SERVER_HOST=localhost
SERVER_PORT=8000
DEBUG=false
LOG_LEVEL=INFO
# Database Configuration
SQLITE_DATABASE_PATH=./data/synaptic.db
CHROMADB_PERSIST_DIRECTORY=./data/chroma
# Memory Configuration
DEFAULT_MEMORY_TTL_SECONDS=3600
MAX_MEMORY_ENTRIES=10000
MEMORY_CLEANUP_INTERVAL_SECONDS=300
# RAG Configuration
EMBEDDING_MODEL=text-embedding-3-small
EMBEDDING_PROVIDER=api
EMBEDDING_API_BASE=http://localhost:4000
EMBEDDING_API_KEY=your-api-key-here
MAX_RAG_RESULTS=10
RAG_SIMILARITY_THRESHOLD=0.7
# Redis (Optional)
REDIS_URL=redis://localhost:6379/0
REDIS_ENABLED=false
API-based Embeddings (Recommended)
EMBEDDING_PROVIDER=api and configure EMBEDDING_API_BASELocal Embeddings
EMBEDDING_PROVIDER=local and install with --extra local-embeddingsimport asyncio
from mcp_synaptic import SynapticServer, Settings
async def main():
settings = Settings()
server = SynapticServer(settings)
# Add a memory with 1-hour expiration
await server.memory_manager.add(
key="user_preference",
data={"theme": "dark", "language": "en"},
ttl_seconds=3600
)
# Store a document in RAG database
await server.rag_database.add_document(
content="MCP Synaptic is a memory-enhanced server",
metadata={"source": "documentation", "version": "1.0"}
)
# Search for similar documents
results = await server.rag_database.search(
query="memory enhanced server",
limit=5
)
await server.start()
if __name__ == "__main__":
asyncio.run(main())
# Start server with custom configuration
uv run mcp-synaptic server --host 0.0.0.0 --port 9000 --debug
# Initialize new project
uv run mcp-synaptic init ./my-project
# Show version
uv run mcp-synaptic version
const eventSource = new EventSource('http://localhost:8000/events');
eventSource.onmessage = function(event) {
const data = JSON.parse(event.data);
console.log('Event:', data);
};
// Listen for memory expiration events
eventSource.addEventListener('memory_expired', function(event) {
const data = JSON.parse(event.data);
console.log('Memory expired:', data.key);
});
// Listen for RAG document updates
eventSource.addEventListener('document_added', function(event) {
const data = JSON.parse(event.data);
console.log('Document added:', data.id);
});
POST /memory - Add new memoryGET /memory/{key} - Retrieve memory by keyDELETE /memory/{key} - Delete memoryGET /memory - List all memoriesPOST /rag/documents - Add documentGET /rag/documents/{id} - Get document by IDPOST /rag/search - Search documentsDELETE /rag/documents/{id} - Delete documentGET /events - SSE endpoint for real-time updatesGET /ws - WebSocket endpoint (alternative)# Install development dependencies
uv sync --group dev
# Install pre-commit hooks
pre-commit install
# Run tests
uv run pytest
# Run type checking
uv run mypy mcp_synaptic
# Run linting
uv run ruff check mcp_synaptic
uv run black mcp_synaptic
# Run all checks
uv run pytest && uv run mypy mcp_synaptic && uv run ruff check mcp_synaptic
mcp-synaptic/
├── mcp_synaptic/ # Main package
│ ├── core/ # Core server functionality
│ ├── mcp/ # MCP protocol implementation
│ ├── sse/ # Server-Sent Events
│ ├── rag/ # RAG database
│ ├── memory/ # Memory management
│ ├── config/ # Configuration
│ └── utils/ # Utilities
├── tests/ # Test suite
│ ├── unit/ # Unit tests
│ └── integration/ # Integration tests
├── data/ # Data storage
├── docker/ # Docker configuration
└── docs/ # Documentation
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)# Run all tests
uv run pytest
# Run with coverage
uv run pytest --cov=mcp_synaptic --cov-report=html
# Run specific test file
uv run pytest tests/unit/test_memory.py
# Run integration tests only
uv run pytest tests/integration/
# Using Docker Compose
docker-compose -f docker-compose.prod.yml up -d
# Using systemd service
sudo systemctl enable mcp-synaptic
sudo systemctl start mcp-synaptic
GET /healthGET /metricsGET /adminThis project is licensed under the MIT License - see the LICENSE file for details.
MCP Synaptic - Bridging memories and knowledge for intelligent AI systems.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Memory-enhanced MCP server with local RAG from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-synaptic)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.