Expose GraphQL queries and mutations as MCP tools for AI agents via a lightweight proxy.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Gqai.
graphql → ai
gqai is a lightweight proxy that exposes GraphQL operations as
Model Context Protocol (MCP) tools for AI like
Claude, Cursor, and ChatGPT.
Define tools using regular GraphQL queries/mutations against your GraphQL backend, and gqai automatically
generates an MCP server for you.
🔌 Powered by your GraphQL backend
⚙️ Driven by .graphqlrc.yml + plain .graphql files
.graphqlrc.ymlThis file tells gqai where to find your GraphQL schema and operations.
Note: The schema parameter tells gqai where to execute the operations. This must be a live server rather than a static schema file
get_all_films.graphql:
mcp.json file:That's it! Your AI model can now call the get_all_films tool.
The graphql config
file is a YAML file that defines the GraphQL endpoint and the operations
you want to expose as tools. It should be named .graphqlrc.yml and placed in the root of your project.
The schema field specifies the GraphQL endpoint, and the documents field specifies the directory where your GraphQL operations are located.
In this example, the operations directory contains all the GraphQL operations you want to expose as tools.
Operations are defined in .graphql files, and gqai will automatically discover them.
You can also specify headers to be sent with each request to the GraphQL endpoint. This is useful for authentication or other custom headers.
You can reference environment variables in header values using the ${VARNAME} syntax. For example:
You can also provide a default value using the ${VARNAME:-default} syntax:
When gqai loads the config, it will substitute ${MY_AUTH_TOKEN} with the value of the MY_AUTH_TOKEN environment variable, or use default-token if the variable is not set. This allows you to keep secrets out of your config files.
If the environment variable is not set and no default is provided, the value will be left as-is.
You can use environment variables in any part of your .graphqlrc.yml config: schema URLs, document paths, include/exclude globs, and header values. Use ${VARNAME} or ${VARNAME:-default} syntax:
gqai will substitute these with the value of the environment variable, or use the default if not set. This keeps secrets and environment-specific paths out of your config files.
To use gqai with Claude Desktop, you need to add the following configuration to your mcp.json file:
This will execute the get_all_films tool and print the result.
Create a GraphQL operation that takes arguments, and these will be the tool inputs:
get_film_by_id.graphql:
Call the tool with arguments:
This will execute the get_film_by_id tool with the provided arguments.
gqai makes it easy to turn your GraphQL backend into a model-ready tool layer — no code, no extra infra. Just define your operations and let AI call them.
MIT — fork it, build on it, all the things.
Made with ❤️ and 🤖vibes by Stephen Spalding && <your-name-here>
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/fotoetienne-gqai)<a href="https://allmcps.com/mcp/fotoetienne-gqai"><img src="https://allmcps.com/api/badge/fotoetienne-gqai?style=directory" alt="Gqai on AllMCPs" /></a>