MCP cover image
See in Github
2025-04-14

Ein leichter, konfigurationsorientierter MCP-Server, der kuratierte GraphQL-Abfragen als modulare Tools enthüllt und absichtliche API-Interaktionen Ihrer Agenten ermöglicht.

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.

相关推荐

  • Aurity Ltd
  • Create and Publish Business Websites in seconds. AI will gather all the details about your website and generate link to your website.

  • John Rafferty
  • Text your favorite pet, after answering 10 questions about their everyday lives!

  • Convincible Ltd
  • You're in a stone cell – can you get out? A classic choose-your-adventure interactive fiction game, based on a meticulously-crafted playbook. With a medieval fantasy setting, infinite choices and outcomes, and dice!

  • Ian O'Connell
  • Provide players' names or enter Quickstart to start the game!

  • analogchat.com
  • Efficient Spotify assistant for personalized music data.

  • Matthieu Savioux
  • Evaluates language quality of texts, responds with a numerical score between 50-150.

  • seabiscuit.ai
  • Discover A More Robust Business: Craft tailored value proposition statements, develop a comprehensive business model canvas, conduct detailed PESTLE analysis, and gain strategic insights on enhancing business model elements like scalability, cost structure, and market competition strategies. (v1.18)

  • Carl Oscar Aaro
  • Structured recipes for food and desserts – ingredient lists and step-by-step recipe instructions from any input. Become surprised, try something new or breathe life into grandma's old recipe notebook.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llm 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Zusammenfassung der weltbesten LLM -Ressourcen.

  • n8n-io
  • Fair-Code-Workflow-Automatisierungsplattform mit nativen KI-Funktionen. Kombinieren Sie visuelles Gebäude mit benutzerdefiniertem Code, SelbstHost oder Cloud, 400+ Integrationen.

  • av
  • Führen Sie mühelos LLM -Backends, APIs, Frontends und Dienste mit einem Befehl aus.

  • langgenius
  • 1Panel-dev
  • 🔥 1Panel bietet eine intuitive Weboberfläche und einen MCP -Server, um Websites, Dateien, Container, Datenbanken und LLMs auf einem Linux -Server zu verwalten.

  • Azure
  • Dieses Repository dient zur Entwicklung des Azure MCP -Servers, wodurch Ihre Agenten die Leistung von Azure verleiht.

  • alibaba
  • metorial
  • Containerisierte Versionen von Hunderten von MCP -Servern 📡 🧠

  • caio-moliveira
  • Dieses Projekt wurde erstellt, um zu demonstrieren, wie wir uns mit verschiedenen Modellkontextprotokollen (MCPs) verbinden können.

  • rulego
  • ⛓️Rugele ist ein leichter, leistungsstarker, leistungsstarker, eingebetteter Komponenten-Orchestrierungsregel-Motor-Rahmen für GO.

  • Byaidu
  • PDF wissenschaftliche Papierübersetzung mit erhaltenen Formaten - 基于 ai 完整保留排版的 pdf 文档全文双语翻译 , 支持 支持 支持 支持 google/deeptl/ollama/openai 等服务 提供 cli/gui/mcp/docker/zotero

  • superiorlu
  • 🤖 Sammeln Sie praktische KI -Repos, Tools, Websites, Papiere und Tutorials auf KI. 实用的 ai 百宝箱 💎

    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!