1. Conduid
  2. Commerce
  3. blurrah/mcp-graphql
MCP server · Commerce

blurrah/mcp-graphql

Model Context Protocol server for GraphQL

Unclaimed MIT data
74Good

Scored yesterday · breakdown

About blurrah/mcp-graphql

blurrah/mcp-graphql is an MCP server published by blurrah in the Commerce category: model Context Protocol server for GraphQL.

The repository has 408 stars and 62 forks, with the last commit 10 days ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

Claude Code
claude mcp add graphql -- npx -y @cubicecho/graphql-mcp
npx
npx -y @cubicecho/graphql-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (2)

introspect-schemaIntrospect the GraphQL schema, use this tool before doing a query to get the schema information if you do not have it available as a resource already.

Parameters not published.

query-graphqlQuery a GraphQL endpoint with the given query and variables

Parameters not published.

Ask AI

✦

Ask AI about blurrah/mcp-graphql

Powered by Claude · Grounded in docs

I know everything about blurrah/mcp-graphql. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v2.0.4v2.0.4 · 27 May 2025fix: add ignorable input boolean for introspect schema Another workaround for clients that send undefined as an argument when inputArguments is an empty object Also added two debug clients to fool around with this a bit Full Changelog:…
v2.0.3v2.0.3 · 27 May 2025fix: update all dependencies This should hopefully fix the issue where undefined is not allowed as input for a tool call without input arguments. Full Changelog: https://github.com/blurrah/mcp-graphql/compare/v2.0.2...v2.0.3
v2.0.2v2.0.2 · 26 May 2025fix: clients sending undefined to introspect breaks tool This forces an input that doesn't break by just adding an optional argument that doesn't do anything. Fixes #24 Full Changelog:…
v2.0.1v2.0.1 · 22 Apr 2025chore: add better error returns have a feeling that thrown errors do not properly return responses to the model that uses it Full Changelog: https://github.com/blurrah/mcp-graphql/compare/v2.0.0...v2.0.1
v2.0.0v2.0.0 · 18 Apr 2025release: bump package.json to 2.0.0 What's Changed chore: remove per query endpoints and headers by @blurrah in https://github.com/blurrah/mcp-graphql/pull/17 Full Changelog: https://github.com/blurrah/mcp-graphql/compare/v1.0.1...v2.0.0

README

mcp-graphql

smithery badge

A Model Context Protocol server that enables LLMs to interact with GraphQL APIs. This implementation provides schema introspection and query execution capabilities, allowing models to discover and use GraphQL APIs dynamically.

Usage

Run mcp-graphql with the correct endpoint, it will automatically try to introspect your queries.

Environment Variables (Breaking change in 1.0.0)

Note: As of version 1.0.0, command line arguments have been replaced with environment variables.

Environment Variable Description Default
ENDPOINT GraphQL endpoint URL http://localhost:4000/graphql
HEADERS JSON string containing headers for requests {}
ALLOW_MUTATIONS Enable mutation operations (disabled by default) false
NAME Name of the MCP server mcp-graphql
SCHEMA Path to a local GraphQL schema file or URL (optional) -

Examples

# Basic usage with a local GraphQL server
ENDPOINT=http://localhost:3000/graphql npx mcp-graphql

# Using with custom headers
ENDPOINT=https://api.example.com/graphql HEADERS='{"Authorization":"Bearer token123"}' npx mcp-graphql

# Enable mutation operations
ENDPOINT=http://localhost:3000/graphql ALLOW_MUTATIONS=true npx mcp-graphql

# Using a local schema file instead of introspection
ENDPOINT=http://localhost:3000/graphql SCHEMA=./schema.graphql npx mcp-graphql

# Using a schema file hosted at a URL
ENDPOINT=http://localhost:3000/graphql SCHEMA=https://example.com/schema.graphql npx mcp-graphql

Resources

  • graphql-schema: The server exposes the GraphQL schema as a resource that clients can access. This is either the local schema file, a schema file hosted at a URL, or based on an introspection query.

Available Tools

The server provides two main tools:

  1. introspect-schema: This tool retrieves the GraphQL schema. Use this first if you don't have access to the schema as a resource. This uses either the local schema file, a schema file hosted at a URL, or an introspection query.

  2. query-graphql: Execute GraphQL queries against the endpoint. By default, mutations are disabled unless ALLOW_MUTATIONS is set to true.

Installation

Installing via Smithery

To install GraphQL MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install mcp-graphql --client claude

Installing Manually

It can be manually installed to Claude:

{
    "mcpServers": {
        "mcp-graphql": {
            "command": "npx",
            "args": ["mcp-graphql"],
            "env": {
                "ENDPOINT": "http://localhost:3000/graphql"
            }
        }
    }
}

Security Considerations

Mutations are disabled by default as a security measure to prevent an LLM from modifying your database or service data. Consider carefully before enabling mutations in production environments.

Customize for your own server

This is a very generic implementation where it allows for complete introspection and for your users to do whatever (including mutations). If you need a more specific implementation I'd suggest to just create your own MCP and lock down tool calling for clients to only input specific query fields and/or variables. You can use this as a reference.

README fetched from the repository yesterday. The original is authoritative.

Questions

About blurrah/mcp-graphql

How do I install blurrah/mcp-graphql?

Run claude mcp add graphql -- npx -y @cubicecho/graphql-mcp, then add the server to your MCP client's configuration.

Is blurrah/mcp-graphql safe to use with an AI agent?

Its trust score is 74 out of 100 (good). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is blurrah/mcp-graphql still maintained?

Yes — the last commit was 10 days ago. The repository has 408 stars and 62 forks and 15 open issues.