GraphQL SchemaSAFE
GraphQL Schema Model Context Protocol Server
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://smithery.ai/server/@hannesj/mcp-graphql-schema) A Model Context Protocol (MCP) server that exposes GraphQL schema information to Large Language Models (LLMs) like Claude. This server allows an LLM to explore and understand GraphQL schemas through a set of specialized tools.
Features
- Load any GraphQL schema file specified via command line argument
- Explore query, mutation, and subscription fields
- Look up detailed type definitions
- Search for types and fields using pattern matching
- Get simplified field information including types and arguments
- Filter out internal GraphQL types for cleaner results
Usage
Command Line
Run the MCP server with a specific schema file:
# Use the default schema.graphqls in current directory npx -y mcp-graphql-schema # Use a specific schema file (relative path) npx -y mcp-graphql-schema ../schema.shopify.2025-01.graphqls # Use a specific schema file (absolute path) npx -y mcp-graphql-schema /absolute/path/to/schema.graphqls # Show help npx -y mcp-graphql-schema --help
Installing via Smithery
To install GraphQL Schema for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @hannesj/mcp-graphql-schema --client claude
Claude Desktop Integration
To use this MCP server with Claude Desktop, edit your claude_desktop_config.json configuration file:
{
"mcpServers": {
"GraphQL Schema": {
"command": "npx",
"args": ["-y", "mcp-graphql-schema", "/ABSOLUTE/PATH/TO/schema.graphqls"]
}
}
}Location of the configuration file:
- macOS/Linux:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
$env:AppData\Claude\claude_desktop_config.json
Claude Code Integration
To use this MCP server with Claude Code CLI, follow these
7c19bb47b913OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add mcp-graphql-schema -- npx -y [email protected]
{
"mcpServers": {
"mcp-graphql-schema": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (10)
10 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get-mutation-field | read | Gets a single GraphQL mutation field definition in GraphQL Schema Definition Language. |
get-query-field | read | Gets a single GraphQL query field definition in GraphQL Schema Definition Language. |
get-subscription-field | read | Gets a single GraphQL subscription field definition in GraphQL Schema Definition Language. |
get-type | read | Gets a single GraphQL type from the schema in the GraphQL Schema Definition Language |
get-type-fields | read | Gets a simplified list of fields for a specific GraphQL type |
list-mutation-fields | read | Lists all of the available root-level fields for a GraphQL mutation. |
list-query-fields | read | Lists all of the available root-level fields for a GraphQL query. |
list-subscription-fields | read | Lists all of the available root-level fields for a GraphQL subscription. |
list-types | read | Lists all of the types defined in the GraphQL schema. |
search-schema | read | Search for types or fields in the schema by name pattern |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
@modelcontextprotocol/sdk, graphql, zod
Gates applied: no_behavioural_pass.
7c19bb47b913full audit observations/trust-audit/mcp-server/hannesj__graphql-schema.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 7c19bb47b913 | SAFE | B | 89 | first audit |
Questions
What is the GraphQL Schema MCP server?
GraphQL Schema Model Context Protocol Server
What tools does GraphQL Schema expose?
10 in total: 10 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is GraphQL Schema safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does GraphQL Schema need?
No credential environment variables were found in its source, so it appears to need none.
How does GraphQL Schema run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as mcp-graphql-schema at 0.0.2.
How current is this page?
The grade is for one exact copy of the source (7c19bb47b913), read on 2026-10-08. The repository is watched and re-audited when it changes.