Groot DataKG MCP Server

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.

Category
访问服务器

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

  1. MCP Clients (Claude Desktop, Kiro IDE, etc.) connect via standard MCP protocol
  2. Memory operations are processed through the Memory Manager
  3. Semantic search uses AI embeddings for conceptual entity matching
  4. Graph queries are executed against Neptune (cloud) or FalkorDB (local/Redis)
  5. Results are returned through the MCP protocol to clients

Prerequisites

  1. Install uv from Astral or the GitHub README
  2. 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 (neptune or falkordb, default: neptune)
  • --mode: Server mode (read, write, or full, default: full)
    • read: Read-only access to the knowledge graph
    • write: Write-only access for creating and modifying data
    • full: 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)

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选