GraphQL 策略 API 的模型上下文协议 (MCP) 服务器
该存储库包含一个用于提供策略访问的 GraphQL API 的模型上下文协议 (MCP)服务器实现。
该服务器使用MCP 的 python SDK构建,并使用GQL库与 GraphQL API 交互。
入门
克隆存储库
确保你已经安装了uv
如果没有,您可以使用以下方式安装:
定义环境变量
该服务器已配置为与 TrueRag 系统之一的 GraphQL API 配合使用。创建 TrueRAG 环境后,请从环境变量中复制 API 密钥和端点。
在存储库的根目录中创建一个.env
文件并添加以下行:
添加到 MCP 客户端,例如 Claude Desktop
将以下行添加到 Claude 配置文件( ~/Library/Application Support/Claude/claude_desktop_config.json
):
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
使用模型上下文协议 (MCP) 通过 GraphQL API 实现与 TrueRAG 系统的交互,从而通过 Python SDK 和 GQL 库集成促进对策略的访问。
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that connects AI assistants to Bloom Growth's GraphQL API, enabling them to query data and execute operations against the Bloom Growth platform.Last updated -4Python
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.Last updated -7331MIT License
- -securityFlicense-qualityA Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.Last updated -9TypeScript
- -securityFlicense-qualityA Python-based implementation of the Model Context Protocol that enables communication between a model context management server and client through a request-response architecture.Last updated -Python