Groot DataKG MCP Server
MCP server for enabling data extraction and context retrieval for agents, storing information in a knowledge graph using Amazon Neptune or FalkorDB.
README
Groot DataKG MCP Server - A Data Librarian's Desk
Model Context Protocol (MCP) server for enabling data extraction and context retrival for agents, stored in a knowledge graph using Amazon Neptune or FalkorDB. This is an experimental data modeller tool enabling semantic search to assit Agent to be a data librarian.
Architecture Overview
graph TB
subgraph "MCP Clients"
A[Claude Desktop]
B[Kiro IDE]
C[Other Agent Clients]
end
subgraph "Graph Memory MCP Server"
D[MCP Protocol Handler]
E[Memory Manager]
F[Vector Search Engine]
G[Query Engine]
H[Entity/Relation Manager]
end
subgraph "Backend Databases"
I[Amazon Neptune<br/>Cloud Scale]
J[FalkorDB<br/>Redis-based]
end
subgraph "Core Features"
K[Semantic Search<br/>AI Embeddings]
L[Knowledge Graph<br/>Entities & Relations]
M[Persistent Memory<br/>Agent Context]
N[Graph Traversal<br/>Complex Queries]
end
A -.->|MCP Protocol| D
B -.->|MCP Protocol| D
C -.->|MCP Protocol| D
D --> E
E --> F
E --> G
E --> H
F --> K
G --> L
H --> M
G --> N
E -->|OpenCypher/Gremlin| I
E -->|OpenCypher| J
style D fill:#e1f5fe
style E fill:#f3e5f5
style I fill:#fff3e0
style J fill:#e8f5e8
Key Components
- MCP Protocol Handler: Manages communication with MCP clients using standard protocol
- Memory Manager: Core orchestration layer handling memory operations and backend selection
- Vector Search Engine: AI-powered semantic search using sentence transformers (384-dim embeddings)
- Query Engine: Executes OpenCypher and Gremlin queries against graph databases
- Entity/Relation Manager: Handles CRUD operations for graph entities and relationships
Data Flow
- MCP Clients (Claude Desktop, Kiro IDE, etc.) connect via standard MCP protocol
- Memory operations are processed through the Memory Manager
- Semantic search uses AI embeddings for conceptual entity matching
- Graph queries are executed against Neptune (cloud) or FalkorDB (local/Redis)
- Results are returned through the MCP protocol to clients
Prerequisites
- Install
uvfrom Astral or the GitHub README - Install Python using
uv python install 3.12
Installation
Local Development
# Clone the repository
git clone <repository-url>
cd ws-memory-mcp-server
# Install dependencies
uv sync
# Run with Neptune backend (full access mode)
uv run ws-memory-mcp-server --backend neptune --endpoint "neptune-db://your-cluster-endpoint"
# Run with FalkorDB backend (full access mode)
uv run ws-memory-mcp-server --backend falkordb --falkor-host localhost --falkor-port 6379
# Run in read-only mode
uv run ws-memory-mcp-server --backend falkordb --falkor-host localhost --falkor-port 6379 --mode read
# Run with SSE transport and custom logging
uv run ws-memory-mcp-server --backend falkordb --falkor-host localhost --falkor-port 6379 --sse --log-level DEBUG --log-file ./logs/mcp-server.log
MCP Client Configuration
Below are examples of how to configure your MCP client for different backends:
Neptune Backend
{
"mcpServers": {
"Neptune Memory": {
"command": "uvx",
"args": [
"ws-memory-mcp-server",
"--backend", "neptune",
"--endpoint", "neptune-db://your-cluster-endpoint"
],
"env": {
"FASTMCP_LOG_LEVEL": "INFO"
}
}
}
}
FalkorDB Backend
{
"mcpServers": {
"FalkorDB Memory": {
"command": "uvx",
"args": [
"ws-memory-mcp-server",
"--backend", "falkordb",
"--falkor-host", "localhost",
"--falkor-port", "6379",
"--graph-name", "memory"
],
"env": {
"FASTMCP_LOG_LEVEL": "INFO"
}
}
}
}
Backend Configuration
Neptune
When specifying the Neptune Endpoint the following formats are expected:
For Neptune Database:
neptune-db://<Cluster Endpoint>
For Neptune Analytics:
neptune-graph://<graph identifier>
FalkorDB
FalkorDB can be run locally using Docker:
# Run FalkorDB instance
docker run --rm -p 6379:6379 falkordb/falkordb
Or use FalkorDB Cloud for a managed instance.
Features
The MCP Server provides an agentic memory capability stored as a knowledge graph with support for:
- Multiple Backends: Choose between Amazon Neptune (cloud-scale) or FalkorDB (lightweight, Redis-based)
- Persistent Memory: Store agent memories as entities and relationships
- Knowledge Graph: Leverage graph database capabilities for complex relationship modeling
- MCP Integration: Standard MCP server interface for seamless integration with MCP clients
- Search & Query: Full-text search and graph traversal capabilities
- Observation Tracking: Store and manage observations about entities over time
Command Line Options
Common Options
--backend: Database backend (neptuneorfalkordb, default:neptune)--mode: Server mode (read,write, orfull, default:full)read: Read-only access to the knowledge graphwrite: Write-only access for creating and modifying datafull: Complete access with all read and write operations
--sse: Enable SSE transport--port: Server port (default: 8888)--log-level: Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL, default: INFO)--log-file: Path to log file for persistent logging
Neptune-Specific Options
--endpoint: Neptune endpoint (required for Neptune)--use-https: Use HTTPS for Neptune connection (default: True)--no-https: Disable HTTPS for Neptune connection
FalkorDB-Specific Options
--falkor-host: FalkorDB host (default: localhost)--falkor-port: FalkorDB port (default: 6379)--falkor-password: FalkorDB password--falkor-ssl: Use SSL for FalkorDB connection--graph-name: Graph name for FalkorDB (default: memory)
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.