Model Context Protocol (MCP) Server for GraphQL Policies API
This repository contains a Model Context Protocol (MCP) server implementation for a GraphQL API that provides access to policies.
The server is built using the python SDK for MCP and uses the GQL library to interact with the GraphQL API.
Getting Started
Clone the repository
Make sure you have uv installed
If not, you can install it using:
Define the environment variables
The server is configured to work against a GraphQL API for one of the TrueRag systems. Once you created the TrueRAG environment, copy the API key and endpoint from the environment variables.
Create a .env
file in the root directory of the repository and add the following lines:
Add to the MCP Client, such as Claude Desktop
Add the following lines to the Claude configuration file (~/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
- -securityFlicense-qualityConnects a RAG application to open-webui using Model Context Protocol (MCP), enabling server-to-client communication for context retrieval and tool usage in remote environments through Server-Sent Events (SSE).Last updated -1
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.Last updated -3901MIT 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 -4
- -securityAlicense-qualityA server that integrates Retrieval-Augmented Generation (RAG) with the Model Control Protocol (MCP) to provide web search capabilities and document analysis for AI assistants.Last updated -3Apache 2.0