mcp-graphql-tools
Provides tools to execute GraphQL queries and retrieve schema information from any GraphQL endpoint.
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., "@mcp-graphql-toolsquery the GitHub GraphQL API for my repositories"
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.
GraphQL MCP Tools
A Model Context Protocol (MCP) server implementation that provides GraphQL API interaction capabilities. This server enables AI assistants to interact with GraphQL APIs through a set of standardized tools.
Components
Tools
graphql_query
Execute GraphQL queries against any endpoint
Input:
query(string): The GraphQL query to executevariables(object, optional): Variables for the queryendpoint(string, optional): GraphQL endpoint URLheaders(object, optional): HTTP headers for the requesttimeout(number, optional): Request timeout in millisecondsallowMutations(boolean, optional): Whether to allow mutation operations
graphql_introspect
Retrieve and explore GraphQL schema information
Input:
endpoint(string, optional): GraphQL endpoint URLheaders(object, optional): HTTP headers for the requestincludeDeprecated(boolean, optional): Whether to include deprecated types/fields
Related MCP server: Text-to-GraphQL MCP Server
Usage with Claude Desktop
NPX
{
"mcpServers": {
"graphql": {
"command": "npx",
"args": [
"-y",
"mcp-graphql-tools",
"--endpoint=https://api.github.com/graphql",
"--headers={\"Authorization\":\"Bearer YOUR_GITHUB_TOKEN\"}",
"--timeout=30000",
"--maxComplexity=100"
]
}
}
}Configuration Options
The server accepts the following command-line arguments:
--endpoint (-e): Default GraphQL endpoint URL (default: http://localhost:4000/graphql)
--headers (-H): Default headers for all requests as JSON string
--timeout (-t): Default request timeout in milliseconds (default: 30000)
--maxComplexity (-m): Maximum allowed query complexity (default: 100)
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Available Tools
2 toolsgraphql_introspectC
Introspect a GraphQL schema from an endpoint with configurable headers
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | No | GraphQL endpoint URL (can be omitted to use default) | |
| headers | No | Additional headers to include in the request (will be merged with default headers) | |
| includeDeprecated | No | Whether to include deprecated fields |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so the description must convey behavioral traits. It does not disclose if introspection is read-only, whether default endpoint is used, error handling, or any side effects. Minimal context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence with no wasted words. However, it is overly brief and could benefit from more detail without sacrificing conciseness.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity (no output schema, 3 parameters), the description fails to explain return values, default behavior, or error conditions. It is insufficient for full agent understanding.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with each parameter description adequately defined. The description adds 'with configurable headers' which aligns with the headers parameter, but does not significantly enhance understanding beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool introspects a GraphQL schema from an endpoint, using specific verb and resource. However, it does not explicitly differentiate from sibling tool graphql_query, which likely serves a different purpose.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to use this tool versus alternatives. No mention of prerequisites, when-not-to-use, or comparison with sibling graphql_query.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
graphql_queryA
Execute GraphQL queries using either a specified endpoint or the default endpoint configured during installation
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | No | GraphQL endpoint URL (can be omitted to use default) | |
| query | Yes | GraphQL query to execute | |
| variables | No | Variables to use with the query (JSON object) | |
| headers | No | Additional headers to include in the request (will be merged with default headers) | |
| timeout | No | Request timeout in milliseconds |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, and the description does not disclose any behavioral traits such as side effects, authentication requirements, or rate limits. For a query execution tool, the description is too minimal to inform an agent about potential implications.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that efficiently conveys the core functionality without any unnecessary words. It is well-suited for quick understanding.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
While the description covers the main purpose, it lacks details about return format, error handling, or how this tool interacts with the sibling. For a tool with 5 parameters and no output schema, more context would be beneficial.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
All 5 parameters are documented in the input schema (100% coverage). The description adds extra context, such as the endpoint being optional and headers being merged with defaults, which goes beyond the schema descriptions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool executes GraphQL queries and offers flexibility between a specified endpoint or the default endpoint. This distinguishes it from the sibling tool graphql_introspect which explores schemas.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides some guidance on endpoint usage (can be omitted for default) but does not explicitly state when to use this tool versus graphql_introspect or other alternatives. No exclusions or prerequisites are mentioned.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
The two tools have clearly distinct purposes: introspection and query execution. No overlap or ambiguity.
Both tools follow a consistent verb_noun pattern with 'graphql_' prefix, making them predictable: graphql_introspect and graphql_query.
Two tools feel slightly thin for a GraphQL server, as core operations like mutations and subscriptions are missing, but introspection and querying are essential.
Significant gaps exist: no support for mutations, subscriptions, or endpoint management, which are fundamental to GraphQL interactions.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
The Grafbase MCP server sits in front of a GraphQL API and exposes an MCP protocol-compliant interface that allows AI agents and LLMs to explore and query GraphQL APIs using natural language. It provides tools to search schemas, introspect types and fields, and execute GraphQL queries while minimizing context bloat by returning only relevant schema subsets, with built-in support for authentication, authorization, and configurable access control.
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Connects AI assistants to CloudQuell multi-cloud and AI cost, savings, anomaly, and budget data.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Related MCP Servers
- AlicenseAqualityFmaintenancePowers AI agents with indexed blockchain data from The Graph, enabling them to fetch subgraph schemas and execute GraphQL queries against blockchain data.29MIT
- FlicenseAqualityDmaintenanceConverts natural language queries into valid GraphQL queries and executes them against GraphQL APIs. Includes schema introspection, query validation, execution with authentication, and query history tracking.525
- AlicenseAqualityDmaintenanceProvides comprehensive GraphQL introspection, filtering, and query/mutation execution with safety controls. Enables AI agents to explore and interact with GraphQL APIs through natural language.7131MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to interact with GraphQL APIs through schema introspection and query execution.1,3171MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/saewoohan/mcp-graphql-tools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server