GraphQL MCP Server

mcp-graphql

MCP server for interfacing with GraphQL servers.

mcp-graphql

Model Context Protocol server for working with GraphQL servers. It's a simple implementation using an introspection query to read the schema and one tool to query your server.

Usage

Run mcp-graphql with the correct endpoint; it will automatically try to introspect your queries. You can optionally add a JSON string containing headers if needed.

Smithery/Zed extensions will be available in the near future.

Customize for your own server

This is a very generic implementation that allows for complete introspection and for your users to do whatever (including mutations). If you need a more specific implementation, consider creating your own MCP and restricting tool calls to only allow specific query fields and/or variables. You can use this as a reference.

Installation

Server Statistics

LicenseMIT
LocalNo
Published12/22/2024