mcp4gql

mcp4gql

3.3

If you are the rightful owner of mcp4gql and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

mcp4gql is a Node.js/TypeScript server implementing the Model Context Protocol (MCP) to facilitate interaction between MCP clients and a target GraphQL API.

mcp4gql is a server designed to bridge MCP clients, such as Cursor, with GraphQL APIs. It leverages the Model Context Protocol to enable seamless communication and operations on GraphQL endpoints. The server is built using Node.js and TypeScript, ensuring robust and efficient performance. It uses the `axios` library to handle HTTP requests to the GraphQL API, and it supports standard input/output communication with clients. The server provides tools for schema introspection and executing GraphQL operations, making it a versatile solution for developers looking to integrate GraphQL capabilities into their MCP client applications.

Features

  • MCP Server: Implements the MCP `Server` class from `@modelcontextprotocol/sdk`.
  • Stdio Transport: Communicates with clients via standard input/output.
  • GraphQL Client: Uses `axios` to send requests to the configured GraphQL endpoint.
  • Generic GraphQL Tools: Exposes tools like `introspectGraphQLSchema` and `executeGraphQLOperation` to MCP clients.

Tools

  1. introspectGraphQLSchema

    Fetches the target GraphQL API schema using introspection.

  2. executeGraphQLOperation

    Executes arbitrary GraphQL queries or mutations against the target API.