Cover image
Try Now
2025-04-14

Un serveur MCP léger et axé sur la configuration qui expose les requêtes GraphQL organisées comme outils modulaires, permettant des interactions API intentionnelles de vos agents.

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

GitHub release License Work In Progress

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 to true (case-insensitive), enables detailed debug logging to stderr, including the obtained token and the full HTTP request/response for GraphQL calls. Defaults to false.

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 the Authorization 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.

相关推荐

  • av
  • Exécutez sans effort LLM Backends, API, Frontends et Services avec une seule commande.

  • 1Panel-dev
  • 🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.

  • rulego
  • ⛓️RULEGO est un cadre de moteur de règle d'orchestration des composants de nouvelle génération légère, intégrée, intégrée et de nouvelle génération pour GO.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.

  • Onelevenvy
  • Flock est une plate-forme à faible code de workflow pour construire rapidement des chatbots, un chiffon et coordonner des équipes multi-agents, alimentée par Langgraph, Langchain, Fastapi et NextJs. (Flock 是一个基于 Workflow 工作流的低代码平台 , 用于快速构建聊天机器人、 Rag 、 Agent 和 和 , 采用 采用 采用 采用 Langgraph 、 Langchain 、 Fastapi 和 ,))

  • Byaidu
  • PDF Traduction de papier scientifique avec formats conservés - 基于 AI 完整保留排版的 PDF 文档全文双语翻译 , 支持 Google / Deepl / Olllama / Openai 等服务 , 提供 CLI / GUI / MCP / DOCKER / ZOTERO

  • n8n-io
  • Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.

  • hkr04
  • SDK C ++ MCP (Protocole de contexte modèle léger)

  • sigoden
  • Créez facilement des outils et des agents LLM à l'aide de fonctions Plain Bash / JavaScript / Python.

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 QQ / 微信 (企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Dify 、 Claude 、 GEMINI 、 XAI 、 PPIO 、 OLLAMA 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 ChatGlm 、 Sillytraven 、 MCP 等 LLM 的机器人 / Agent | Plateforme de bots de messagerie instantanée basés sur LLM, prend en charge Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack

  • modelscope
  • Commencez à construire des applications multi-agents LLM, plus facilement.

    Reviews

    2.3 (6)
    Avatar
    user_V5viXkZr
    2025-04-24

    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!

    Avatar
    user_5nCu5dJX
    2025-04-24

    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!

    Avatar
    user_r0F8x8SR
    2025-04-24

    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!

    Avatar
    user_qtAVhhD1
    2025-04-24

    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.

    Avatar
    user_NUxu1a8m
    2025-04-24

    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!

    Avatar
    user_CI2AQjee
    2025-04-24

    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!