graphql-mcp

graphql-mcp

1

MCP GraphQL is a server designed for interfacing with GraphQL APIs using official client libraries. It offers functionalities for listing, invoking, and describing GraphQL operations, as well as setting custom headers for authentication.

MCP GraphQL

This project is a Model Context Protocol (MCP) server designed to interact with GraphQL APIs using official GraphQL client libraries.

🚀 Features

  • Invoke GraphQL Operations: Execute queries and mutations dynamically.
  • List Queries & Mutations: Retrieve all available queries and mutations in the GraphQL schema.
  • Describe Schema Entities: Obtain detailed information about GraphQL operations and types.
  • Set Custom Headers: Configure and manage authentication or request headers for API calls.

📋 Requirements

  • Go 1.23.0 or later
  • A running GraphQL API

⚙️ Setup

  1. Install the package via Go.
  2. Configure environment variables and MCP client settings to connect to your GraphQL API.

▶️ Usage

Run the MCP server using the command mcp-graphql.