Back to Home
norandom icon

ragflow-claude-desktop-local-mcp

Verified Safe

by norandom

Overview

This server integrates RAGFlow's knowledge base and document management APIs with LLMs like Claude Desktop, providing enriched context and enhanced retrieval capabilities through a Model Context Protocol (MCP) interface.

Installation

Run Command
uv run ragflow-claude-mcp

Environment Variables

  • RAGFLOW_BASE_URL
  • RAGFLOW_API_KEY
  • CF_ACCESS_CLIENT_ID
  • CF_ACCESS_CLIENT_SECRET
  • DSPY_MODEL
  • OPENAI_API_KEY
  • OPENROUTER_API_KEY
  • OPENROUTER_SITE_URL
  • OPENROUTER_SITE_NAME

Security Notes

The server demonstrates good security practices by loading sensitive API keys (RAGFlow, OpenAI, OpenRouter, Cloudflare Zero Trust) from `config.json` or environment variables using `os.getenv`, preventing hardcoding. Input validation is extensively used in `validation.py` (e.g., `validate_query`, `validate_dataset_id`) to sanitize user inputs, mitigating common injection risks. Log redaction for sensitive data is implemented. HTTP requests use `aiohttp` with timeouts and robust error handling. The development workflow enforces commit signing via SSH, promoting code integrity. A minor point is that included shell scripts directly parse `config.json` for API keys, which exposes them within the script's environment, but this is a common pattern for local utility scripts.

Similar Servers

Stats

Interest Score28
Security Score9
Cost ClassMedium
Avg Tokens2500
Stars2
Forks0
Last Update2025-11-20

Tags

RAGLLM IntegrationDSPyKnowledge BaseMCP Server