JUHE API Marketplace
FabrWill avatar
MCP Server

GraphQL MCP Server

A Model Context Protocol server for executing GraphQL queries, allowing AI models to interact with GraphQL APIs through introspection and query execution.

0
GitHub Stars
8/23/2025
Last Updated
MCP Server Configuration
1{
2 "name": "gql-mcp-server",
3 "command": "npx",
4 "args": [
5 "mcp-graphql"
6 ],
7 "env": {
8 "ENDPOINT": "https://localhost",
9 "HEADERS": "{\"x-api-key\":\"apikey\"}"
10 }
11}
JSON11 lines

README Documentation

Graphql MCP Server

An model context protocol adapted to running and list graphql queries

Environment VariableDescriptionDefault
ENDPOINTGraphQL endpoint URLhttp://localhost:4000/graphql
HEADERSJSON string containing headers for requests{}
ALLOW_MUTATIONSEnable mutation operations (disabled by default)false

Resources

  • schema: exposes the GraphQL Schema to easy use by the IA

Available Tools

  1. introspect: This tool retrieves the GraphQL schema. used to index or get a new funciton by the LLM

  2. query: Execute GraphQL queries.

Installation

Installing Manually

start with installing the dependencies

npm i

after run the build of the package

npm run build

It can be manually installed to cursor:

{
  "mcpServers": {
    "gql-mcp-server": {
      "command": "npx",
      "args": ["mcp-graphql"],
      "env": {
          "ENDPOINT": "https://localhost",
          "HEADERS": "{\"x-api-key\":\"apikey\"}"
      }
    }
  }
}

You can also test the mpc using the MPC inspector

npx -y @modelcontextprotocol/inspector node dist/index.js inspect

Quick Install

Quick Actions

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source