PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Serversrag-systemsdaniel-lightrag-mcp
返回「rag-systems」

daniel-lightrag-mcp

modelscope·@desimpkins/daniel-lightrag-mcp

rag-systems0下载LocalModelScope

简介

暂无描述。

MCP Server 详情

来自 ModelScope 索引

Daniel LightRAG MCP Server

A comprehensive MCP (Model Context Protocol) server that provides 100% functional integration with LightRAG API, offering 22 fully working tools across 4 categories for complete document management, querying, knowledge graph operations, and system management.

Status: 100% Functional

All 22 tools are working perfectly after comprehensive testing and optimization:

  • Document Management: 6/6 tools working (100%)
  • Query Operations: 2/2 tools working (100%)
  • Knowledge Graph: 6/6 tools working (100%)
  • System Management: 4/4 tools working (100%)
  • Health Check: 1/1 tools working (100%)

Features

  • Document Management: 6 tools for inserting, uploading, scanning, retrieving, and managing documents
  • Query Operations: 2 tools for text queries with regular and streaming responses
  • Knowledge Graph: 6 tools for accessing, checking, updating, and managing entities and relations
  • System Management: 4 tools for health checks, status monitoring, and cache management
  • Comprehensive Error Handling: Robust error handling with detailed error messages
  • Full API Coverage: Complete integration with LightRAG API 0.1.96+

Quick Start

  1. Install the server:

    pip install -e .
    
  2. Start LightRAG server (ensure it's running on http://localhost:9621)

  3. Configure your MCP client (e.g., Claude Desktop):

    {
      "mcpServers": {
        "daniel-lightrag": {
          "command": "python",
          "args": ["-m", "daniel_lightrag_mcp"]
        }
      }
    }
    
  4. Test the connection: Use the get_health tool to verify everything is working.

Installation

# Basic installation
pip install -e .

# With development dependencies
pip install -e ".[dev]"

Usage

Command Line

Start the MCP server:

daniel-lightrag-mcp

Environment Variables

Configure the server with environment variables:

export LIGHTRAG_BASE_URL="http://localhost:9621"
export LIGHTRAG_API_KEY="your-api-key"  # Optional
export LIGHTRAG_TIMEOUT="30"            # Optional
export LOG_LEVEL="INFO"                 # Optional

daniel-lightrag-mcp

Configuration

The server expects LightRAG to be running on http://localhost:9621 by default. Make sure your LightRAG server is started before running this MCP server.

MCP Client Configuration

Add to your MCP client (e.g., Claude Desktop):

{
  "mcpServers": {
    "daniel-lightrag": {
      "command": "python",
      "args": ["-m", "daniel_lightrag_mcp"],
      "env": {
        "LIGHTRAG_BASE_URL": "http://localhost:9621",
        "LIGHTRAG_API_KEY": "lightragsecretkey"
      }
    }
  }
}

For detailed configuration options, see MCP_CONFIGURATION_GUIDE.md.

Implementation Details

This server has undergone comprehensive testing and optimization to achieve 100% functionality. Key improvements include:

  • HTTP Client Fixes: Proper DELETE request handling with JSON bodies
  • Request Parameter Validation: All request models aligned with LightRAG API
  • Response Model Alignment: All response models match actual server responses
  • File Source Implementation: Critical fix preventing database corruption
  • Knowledge Graph Access: Optimized label parameters for full graph access

For complete technical details, see IMPLEMENTATION_GUIDE.md.

Available Tools (22 Total - All Working )

Document Management Tools (6 tools)

insert_text

Insert text content into LightRAG.

Parameters:

  • text (required): Text content to insert

Example:

{
  "text": "This is important information about machine learning algorithms and their applications in modern AI systems."
}

insert_texts

Insert multiple text documents into LightRAG.

Parameters:

  • texts (required): Array of text documents with optional title and metadata

Example:

{
  "texts": [
    {
      "title": "AI Overview",
      "content": "Artificial Intelligence is transforming industries...",
      "metadata": {"category": "technology", "author": "researcher"}
    },
    {
      "content": "Machine learning algorithms require large datasets..."
    }
  ]
}

upload_document

Upload a document file to LightRAG.

Parameters:

  • file_path (required): Path to the file to upload

Example:

{
  "file_path": "/path/to/document.pdf"
}

scan_documents

Scan for new documents in LightRAG.

Parameters: None

Example:

{}

get_documents

Retrieve all documents from LightRAG.

Parameters: None

Example:

{}

get_documents_paginated

Retrieve documents with pagination.

Parameters:

  • page (required): Page number (1-based)
  • page_size (required): Number of documents per page (1-100)

Example:

{
  "page": 1,
  "page_size": 20
}

delete_document

Delete a specific document by ID.

Parameters:

  • document_id (required): ID of the document to delete

Example:

{
  "document_id": "doc_12345"
}

clear_documents

Clear all documents from LightRAG.

Parameters: None

Example:

{}

Query Tools (2 tools)

query_text

Query LightRAG with text.

Parameters:

  • query (required): Query text
  • mode (optional): Query mode - "naive", "local", "global", or "hybrid" (default: "hybrid")
  • only_need_context (optional): Whether to only return context without generation (default: false)

Example:

{
  "query": "What are the main concepts in machine learning?",
  "mode": "hybrid",
  "only_need_context": false
}

query_text_stream

Stream query results from LightRAG.

Parameters:

  • query (required): Query text
  • mode (optional): Query mode - "naive", "local", "global", or "hybrid" (default: "hybrid")
  • only_need_context (optional): Whether to onl…

相关 MCP Servers(来自「rag-systems」)

context7

暂无描述。

@2511319/context7

BochaAI

暂无描述。

@BochaAI/bocha-search-mcp

Wireshark-MCP服务器

一种模型上下文协议服务器,它将Wireshark的网络分析能力与Claude等人工智能系统集成在一起,允许在无需手动复制的情况下直接分析网络数据包。

@sarthaksiddha/Wireshark-mcp

SearchAPI MCP服务器

通过SearchAPI.site将AI助手连接到外部数据源(如Google、Bing等),并通过模型上下文协议(MCP)实现对网络信息的安全和上下文访问。

@mrgoonie/searchapi-mcp-server

Sugatraj

暂无描述。

@Sugatraj/Cursor-Browser-Tools-MCP

ThreatFlux

暂无描述。

@ThreatFlux/playwright-fetch

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/desimpkins-daniel-lightrag-mcp/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

pip install -e .

基本信息

分类
rag-systems / knowledge-and-memory / documentation-access
运行方式
No
许可证
MIT License
详情文件
desimpkins-daniel-lightrag-mcp.md