Model Context Protocol server for GraphQL
Overview
What is mcp-graphql?
mcp-graphql is a Model Context Protocol server that enables Large Language Models (LLMs) to interact with GraphQL APIs, providing schema introspection and query execution capabilities.
How to use mcp-graphql?
To use mcp-graphql, run the command with the appropriate GraphQL endpoint. It will automatically introspect your queries. You can customize it with command line arguments for headers, enabling mutations, and specifying a local schema file.
Key features of mcp-graphql?
- Introspection of GraphQL schemas
- Execution of GraphQL queries
- Support for custom headers and mutation operations
- Ability to use local schema files
Use cases of mcp-graphql?
- Integrating LLMs with existing GraphQL APIs.
- Automating data retrieval from GraphQL endpoints.
- Testing and developing GraphQL queries in a controlled environment.
FAQ from mcp-graphql?
- Can mcp-graphql handle all GraphQL APIs?
Yes! It can interact with any GraphQL API as long as the endpoint is provided.
- Is mcp-graphql secure to use?
Yes, mutations are disabled by default to prevent unauthorized data modifications.
- How can I install mcp-graphql?
You can install it via Smithery or manually using the provided command.