M

mcp-graphql让 AI 助手连接上你的 GraphQL 网络服务,仅需设置网站地址、添加安全码,并决定 AI 是否可以修改数据即可。这是安全查询的强力工具。

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

mcp-graphql 是一个 Model Context Protocol 服务器,使大型语言模型 (LLMs) 能够与 GraphQL API 进行交互。它提供了 schema introspection 和 query execution 能力,使得模型能够动态发现并使用 GraphQL API。该服务器可配置使用环境变量如 ENDPOINT、HEADERS、ALLOW_MUTATIONS、NAME 和 SCHEMA。它支持基本的使用方式(与本地 GraphQL 服务器进行交互)、自定义 HTTP 头标签(headers)、 mutation 操作以及使用本地.Schema 文件或一个主机在 URL 中托管的 schema 文件。该服务器将 GraphQL 序列化作为资源暴露并提供工具以对序列化进行 introspection 并执行 GraphQL 查询。

主要功能

  • Schema introspection
  • Query execution
  • 自定义 header 支持
  • Mutation 操作(可选)
  • 本地 Schema 文件或 Schema 文件托管在 URL 中的支持

价格

模型
Free
评分
暂无评价

使用场景

维打 LLM 为 GraphQL API

mcp-graphql使得LLMs能够与GraphQLAPI进行交互,使其能够动态发现并使用GraphQLAPI。

谂产充 GraphQL API 目录为 LLM

mcp-graphql提供了一种安全的方式来暴露GraphQLAPI给LLMs,支持自定义header等安全措施

优点 & 缺点

优点

  • 使 LLMs 能够动态与 GraphQL API 进行交互
  • 提供 Schema introspection 和 query execution 能力
  • 支持自定义 header 和 mutation 操作
  • 支持使用本地 Schema 文件或 Schema 文件托管在 URL 中的支持

缺点

  • 默认情况下,Mutations 被禁用,作为安全措施
  • 在生产环境启用 Mutations 前需慎重考虑

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

What tools are provided by the server?

The server provides two main tools: introspect schema and query graphql. The introspect schema tool retrieves the GraphQL schema, and the query graphql tool executes GraphQL queries against the endpoint.

Asked by Fernando Rojas · Apr 4, 2026

How do I configure the server?

The server can be configured with environment variables such as ENDPOINT, HEADERS, ALLOW_MUTATIONS, NAME, and SCHEMA. You can set these variables to customize the server's behavior.

Asked by Femi Adebayo · Mar 28, 2026

Can I enable mutation operations?

Yes, mutation operations are supported, but they are disabled by default as a security measure. You can enable them by setting the ALLOW_MUTATIONS environment variable to true.

Asked by Kwabena Asante · Feb 27, 2026

What is mcp-graphql?

mcp-graphql is a Model Context Protocol server that enables large language models to interact with GraphQL APIs. It provides schema introspection and query execution capabilities.

Asked by Malik Rasheed · Feb 1, 2026

提问

服务配缩器 的替代品