Back to Home
demeyerthom icon

graphql-mcp-server

by demeyerthom

Overview

This server exposes GraphQL operations as callable tools for the Model Context Protocol (MCP), allowing AI agents or other systems to interact with a GraphQL endpoint.

Installation

Run Command
go build -o graphql-mcp-server . && ./graphql-mcp-server

Security Notes

The `BuildGenericOperationTool` (enabled by `generic_operation.enabled` in config) directly executes arbitrary GraphQL operation strings provided via the `operation` parameter of the `mcp.CallToolRequest` using `GraphqlClient.ExecRaw`. This constitutes a significant security risk, as it allows for GraphQL injection, enabling any client capable of calling this tool to execute arbitrary queries or mutations on the backend GraphQL schema endpoint. There are no apparent sanitization or validation steps for this input. Without strict control over the callers of this tool, it could be exploited for data exfiltration, unauthorized mutations, or denial-of-service against the GraphQL endpoint.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassLow
Avg Tokens1
Stars0
Forks0
Last Update2025-12-06

Tags

GraphQLMCPServerGoTooling