
McP-Graphql-Forge
轻巧,配置驱动的MCP服务器,将策划的GraphQl查询作为模块化工具,从而实现了代理的故意API交互。
3 years
Works with Finder
0
Github Watches
0
Github Forks
0
Github Stars
mcp-graphql-forge
A lightweight, configuration-driven MCP server that exposes curated GraphQL queries as modular tools, enabling intentional API interactions from your agents.
Purpose
mcp-graphql-forge
lets you turn any GraphQL endpoint into an MCP server whose tools are defined in YAML files that specify the GraphQL queries and their parameters. This allows you to create a modular, secure, and minimal server that can be easily extended without modifying the application code.
Configuration
The server is configured using environment variables and YAML files.
Environment Variables
-
FORGE_CONFIG
: Specifies the path to the folder containing the YAML configuration files (forge.yaml
and tool definitions). Defaults to the current directory (.
) if not set. -
FORGE_DEBUG
: If set totrue
(case-insensitive), enables detailed debug logging tostderr
, including the obtained token and the full HTTP request/response for GraphQL calls. Defaults tofalse
.
forge.yaml
The configuration folder uses a special configuration file forge.yaml
that specifies the common configuration attributes.
The following attributes can be specified in the file:
-
name
: The name of the MCP server -
version
: The version of the MCP server -
url
: The URL of the GraphQL endpoint -
token_command
: The command to use to request the Bearer token for theAuthorization
header (optional)
An example configuration would look like:
name: "ExampleServer"
version: "0.1.0"
url: "https://api.github.com/graphql"
token_command: "gh auth token"
Tool Configuration
All other YAML files located in the folder are treated as configuration files. Each YAML file defines a tool for the MCP server.
The following attributes can be specified in the file:
-
name
: The name of the MCP tool -
description
: The description of the MCP tool -
query
: The GraphQL query to execute -
inputs
: The list of inputs defined by the MCP tool and passed into the GraphQL query as variables-
name
: The name of the input -
type
: The parameter type; can be 'string' or 'number' -
description
: The description of the parameter for the MCP tool to use -
required
: Boolean value specifying if the attribute is required
-
An example configuration would look like:
name: "getUser"
description: "Fetch basic information about a user by `login`, including their name, URL, and location."
query: |
query ($login: String!) {
user(login: $login) {
id
name
url
location
}
}
inputs:
- name: "login"
type: "string"
description: "The user `login` that uniquely identifies their account."
required: true
Limitations
- Each instance of
mcp-graphql-forge
can only be used with a single GraphQL server at a single URL. - All requests use the same Authorization header in the form of a Bearer token.
- The GraphQL queries are all exposed as Tools and not as Resources, even if they are not mutations. This is because not all MCP clients currently support Resources.
相关推荐
Flock是一个基于工作流程的低音平台,可快速构建聊天机器人,抹布和协调多代理团队,由Langgraph,Langchain,Langchain,Fastapi和Nextjs提供支持。(羊群工作流工作流的低代码平台,rag rag rag 用于快速构建聊天机器人、 rag temant Agent fastem temantfaster和muti-agent agagent应用
😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack
Reviews

user_V5viXkZr
As a dedicated MCP user, I highly recommend the mcp-graphql-forge by UnitVectorY-Labs. This tool has significantly streamlined my workflow with its robust GraphQL capabilities, making data querying efficient and intuitive. The product's seamless integration and user-friendly interface are commendable. A must-have for anyone looking to optimize their MCP applications!

user_5nCu5dJX
As a loyal MCP user, I was thoroughly impressed with UnitVectorY-Labs' mcp-graphql-forge. This powerful tool streamlines the development of GraphQL APIs, making them more efficient and easier to manage. The setup is straightforward, and the detailed documentation ensures that even complex integration processes are smooth. It’s obvious this tool was designed with developers in mind and stands out for its reliability and functionality. Highly recommended!

user_r0F8x8SR
I've been using mcp-graphql-forge by UnitVectorY-Labs and it's been a game-changer for my GraphQL projects. Its seamless integration and powerful features have accelerated my development workflow. The product is intuitive and well-documented, making it easy to get started. Highly recommend for anyone looking to enhance their GraphQL experience!

user_qtAVhhD1
mcp-graphql-forge by UnitVectorY-Labs is a game-changer for developers. The seamless integration of GraphQL with excellent documentation and support makes it a must-have tool. Its reliability and efficiency in simplifying complex queries are unmatched. Highly recommend it to anyone looking for robust GraphQL solutions.

user_NUxu1a8m
As an avid user of mcp-graphql-forge, I highly recommend it for any GraphQL project. Created by UnitVectorY-Labs, this tool is incredibly user-friendly and efficient. It helps streamline development and management of GraphQL schemas seamlessly. The intuitive interface and robust functionality make it a must-have for developers. Bravo to the team for such an innovative product!

user_CI2AQjee
As an avid user of the mcp-graphql-forge by UnitVectorY-Labs, I must say it has significantly streamlined my workflow. The intuitive design and robust capabilities make it an indispensable tool for handling complex data queries. This product is a game-changer for anyone heavily invested in GraphQL development. Highly recommend it!