gqai logo

gqai将任意 GraphQL 端点转换为一套 MCP 工具

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

概览

gqai 是一个轻量级代理,它将 GraphQL 操作暴露为面向 AI 模型(如 Claude、Cursor 和 ChatGPT)的 Model Context Protocol(MCP)工具。它允许用户通过对其 GraphQL 后端的普通查询和变更来定义工具,并自动生成 MCP 服务器。该工具使用 .graphqlrc.yml 文件和普通的 .graphql 文件进行配置,并支持诸如与 OpenAI 函数调用兼容的工具元数据以及 MCP 等功能。

主要功能

  • 使用 GraphQL 操作定义工具
  • 自动从 .graphqlrc.yml 中发现操作
  • 工具元数据兼容 OpenAI 函数调用 / MCP
  • 在配置中支持 headers 和环境变量

价格

模型
Free
评分
暂无评价

使用场景

将 GraphQL 工具暴露给 AI 模型

使用 gqai 将 GraphQL 操作暴露为面向 Claude、Cursor 和 ChatGPT 等 AI 模型的 MCP 工具。

简化 AI 与 GraphQL 的集成

gqai 简化了将 GraphQL 后端与 AI 模型集成的过程,从而更容易开发 AI 驱动的应用程序。

优点 & 缺点

优点

  • 与 GraphQL 后端的集成简便
  • 自动生成 MCP 服务器
  • 支持 OpenAI 函数调用和 MCP

缺点

  • 需要 GraphQL 后端才能工作
  • 对于高级用例,配置可能较为复杂

评测

登录以留下评测。

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

问答

What is the typical setup process to expose a GraphQL query as an MCP tool?

Create a .graphqlrc.yml pointing to your schema URL and the directory of .graphql files, add the desired query or mutation in a .graphql file, then reference gqai in your mcp.json with the command "gqai" and args "run config .graphqlrc.yml"; the MCP server is generated automatically.

Asked by Vasyl Kovalenko · May 29, 2026

Can the tools generated by gqai be used with OpenAI function calling?

Yes, gqai produces tool metadata that is compatible with OpenAI function calling as well as the Model Context Protocol (MCP), allowing AI models like Claude, Cursor, and ChatGPT to invoke them.

Asked by Margaret Whitfield · May 8, 2026

How do I configure authentication headers for my GraphQL endpoint in gqai?

In the .graphqlrc.yml file you can add a headers section where you specify static values or reference environment variables using the {VARNAME} syntax, e.g., Authorization: Bearer {MY_AUTH_TOKEN}.

Asked by Boris Yankov · Mar 22, 2026

What kind of backend does gqai require to work?

gqai requires a live GraphQL endpoint as its backend; it cannot operate with a static schema file and must be able to execute the defined queries and mutations.

Asked by Grace Okafor · Mar 6, 2026

提问

服务配缩器 的替代品