Overview
mcp-graphql is a Model Context Protocol server that enables Large Language Models (LLMs) to interact with GraphQL APIs, providing schema introspection and query execution capabilities.
To use mcp-graphql, run the command with the appropriate GraphQL endpoint. It will automatically introspect your queries. You can customize it with command line arguments for headers, enabling mutations, and specifying a local schema file.
- Introspection of GraphQL schemas - Execution of GraphQL queries - Support for custom headers and mutation operations - Ability to use local schema files
- Integrating LLMs with existing GraphQL APIs.
- Automating data retrieval from GraphQL endpoints.
- Testing and developing GraphQL queries in a controlled environment.
Add to your AI client
Use these steps to connect mcp-graphql in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-graphql-blurrah": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-graphql-blurrah"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-graphql-blurrah": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-graphql-blurrah"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-graphql-blurrah": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-graphql-blurrah"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-graphql-blurrah": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-graphql-blurrah"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-graphql-blurrah": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-graphql-blurrah"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-graphql-blurrah": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-graphql-blurrah"
]
}
}
}FAQ
Can mcp-graphql handle all GraphQL APIs?
Yes! It can interact with any GraphQL API as long as the endpoint is provided.
Is mcp-graphql secure to use?
Yes, mutations are disabled by default to prevent unauthorized data modifications.
How can I install mcp-graphql?
You can install it via Smithery or manually using the provided command.