Skip to main content
Glama
Ad-Veritas

TrueRAG MCP Server

by Ad-Veritas

GraphQL 策略 API 的模型上下文协议 (MCP) 服务器

该存储库包含一个用于提供策略访问的 GraphQL API 的模型上下文协议 (MCP)服务器实现。

该服务器使用MCP 的 python SDK构建,并使用GQL库与 GraphQL API 交互。

入门

克隆存储库

git clone https://github.com/Ad-Veritas/mcp-server-trueRAG.git
cd mcp-server-trueRAG

确保你已经安装了uv

uv --version

如果没有,您可以使用以下方式安装:

# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh

# On Windows.
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

定义环境变量

该服务器已配置为与 TrueRag 系统之一的 GraphQL API 配合使用。创建 TrueRAG 环境后,请从环境变量中复制 API 密钥和端点。

在存储库的根目录中创建一个.env文件并添加以下行:

GRAPHQL_API_KEY = "{your_api_key}"
GRAPHQL_ENDPOINT = "{your_graphql_endpoint}"

添加到 MCP 客户端,例如 Claude Desktop

将以下行添加到 Claude 配置文件( ~/Library/Application Support/Claude/claude_desktop_config.json ):

    "shipping-policies": {
      "command": "uv",
      "args": [
        "--directory",
        "{path_to_mcp_server}/mcp-server-trueRAG",
        "run",
        "fastmcp",
        "run",
        "server.py"
      ]
    }

Related MCP Connectors

  • The Grafbase MCP server sits in front of a GraphQL API and exposes an MCP protocol-compliant interface that allows AI agents and LLMs to explore and query GraphQL APIs using natural language. It provides tools to search schemas, introspect types and fields, and execute GraphQL queries while minimizing context bloat by returning only relevant schema subsets, with built-in support for authentication, authorization, and configurable access control.

  • Connect MCP clients to 2,000+ AI models without managing provider API keys.

  • The CustomGPT.ai MCP server is a fully managed, RAG-powered endpoint that connects large language models with private knowledge bases and external data sources. It provides tools for retrieval-augmented generation queries (send_message), data ingestion (upload_file), and source listing, enabling AI agents to query private documents like PDFs with high accuracy and real-time citations.

  • Generate a typed SDK, CLI, and MCP server from any OpenAPI or GraphQL spec, and keep them current.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.
    1,006 npm
    3
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A bridge that exposes any GraphQL API as tools consumable by Large Language Models via the Model Context Protocol (MCP), automatically discovering and translating API capabilities with zero maintenance required.
    116 npm
    2
    GPL 3.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    This application connects GraphQL APIs with the Model Context Protocol (MCP). It allows you to integrate your GraphQL services with MCP-compatible AI systems effortlessly.
    2 npm
    1
    ISC