blurrah/mcp-graphql
Free允许 AI 查询 GraphQL 服务器。
About blurrah/mcp-graphql
mcp-graphql is a Model Context Protocol (MCP) server that enables LLMs to interact with GraphQL APIs. It provides schema introspection and query execution capabilities, allowing models to dynamically discover and use GraphQL APIs. The server exposes the GraphQL schema as a resource and offers two main tools: introspect-schema (to retrieve the schema) and query-graphql (to execute queries). Mutations are disabled by default for security, but can be enabled via the ALLOW_MUTATIONS environment variable. Configuration is done via environment variables (ENDPOINT, HEADERS, ALLOW_MUTATIONS, NAME, SCHEMA) rather than command-line arguments as of version 1.0.0. The server can use either remote introspection or a local/URL-based schema file.
Key Features
Pros & Cons
- Open source and free to use
- Simple setup with environment variables
- Schema introspection allows dynamic API discovery without prior knowledge
- Includes built-in security measure (mutations disabled by default)
- Supports both remote introspection and local schema files
- Limited to GraphQL APIs only
- Mutation support requires explicit opt-in, which may be inconvenient for some use cases
- Configuration changed to environment variables in version 1.0.0, which may break existing setups