技能潮 SkillTide 提交收录
官方说明3 个来源MCP 服务3 天前
drestrepom/mcp_graphql

drestrepom/mcp_graphql

Interact with GraphQL APIs via MCP tools
在 GitHub 查看 ↗直链 · 无中转页
官方说明MCP GraphQL An MCP (Model Context Protocol) server that enables interaction with GraphQL APIs.
来源明细
收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-14 · 最近见到 2026-10-16 · 共见到 4 次 · 被 3 个来源列出
评分构成
综合分 303 · 3 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-10-14;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

MCP GraphQL

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

An MCP (Model Context Protocol) server that enables interaction with GraphQL APIs.
Description
MCP GraphQL is a tool that implements the Model Context Protocol (MCP) to provide a standardized interface for interacting with GraphQL APIs. It automatically exposes each GraphQL query as a separate MCP tool, allowing MCP-compatible clients to seamlessly communicate with GraphQL services.
Features
- Each GraphQL query is exposed as a distinct MCP tool
- Tool parameters automatically match the corresponding GraphQL query parameters
- JSON schema for tool inputs is dynamically generated from GraphQL query parameters
- No schema definition required - simply provide the API URL and credentials
- Currently supports GraphQL queries (mutations support planned for future releases)
- Configurable authentication (Bearer, Basic, custom headers)
- Automatic handling of complex GraphQL types
Requirements
- Python 3.11 or higher
Installation
Using uv (recommended)
When using uv no specific installation is needed. We will
use uvx to directly run *mcp-graphql*.
Using pip
Alternatively you can install mcp-graphql via pip:
Installation from source code
Usage
As a command line tool
Using uvx:
Using pip installation:
or
Available options
- --api-url: GraphQL API URL (required)
- --auth-token: Authentication token (optional, can also be set via MCP_AUTH_TOKEN environment variable)
- --auth-type: Authentication type, default is "Bearer" (optional)
- --auth-headers: Custom authentication headers in JSON format (optional)
- --queries-file: Path to a .gql file containing predefined GraphQL queries (optional)
- --queries: Predefined GraphQL queries passed directly as a string (optional)
- --max-depth: Maximum depth when auto-generating queries (default: 5)
Example with custom headers:
Example with predefined queries file:
Example passing queries directly as a string (use single quotes to avoid shell conflicts):
About automatic query generation
If neither --queries-file nor --queries is supplied, *mcp-graphql* will
automatically build a query by introspecting the GraphQL schema and selecting
**all** scalar fields up to a configurable depth. This is convenient for
quickly exploring an API, but it has two main drawbacks:
1. **Too much depth** – drilling deep into nested objects (especially lists)
can return a large amount of data and overflow the LLM context window.
2. **Lack of control** – you cannot precisely choose which fields are
included, so tokens may be wasted on irrelevant information.
The --max-depth option mitigates the first issue by limiting the recursion
depth (default = 5). Even so, the best practice is to **define the exact
queries you need** through --queries-file or --queries. In doing so:
* You control exactly which fields are returned and avoid unnecessary lists.
* Every named operation in your file/string is automatically exposed as an MCP
*tool* with no manual boilerplate.
Example using --max-depth to limit the auto-generated query to depth 2:
来源
awesome · https://github.com/drestrepom/mcp_graphql
按领域浏览
MCP 服务
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引