Implements a Model Context Protocol server for accessing and querying a GraphQL API that provides policies data.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TrueRAG MCP Servershow me all policies related to data privacy"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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):