TrueRAG MCP Server

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Integrations

  • Implements a Model Context Protocol server for accessing and querying a GraphQL API that provides policies data.

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}"

Claude DesktopなどのMCPクライアントに追加

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" ] }
-
security - not tested
F
license - not found
-
quality - not tested

モデル コンテキスト プロトコル (MCP) を使用して GraphQL API 経由で TrueRAG システムとのやり取りを可能にし、Python SDK と GQL ライブラリの統合によるポリシーへのアクセスを容易にします。

  1. Getting Started
    1. Clone the repository
    2. Make sure you have uv installed
    3. Define the environment variables
    4. Add to the MCP Client, such as Claude Desktop
ID: v6ajeefo2v