GraphQL MCP Server
Graphql MCP Server
An model context protocol adapted to running and list graphql queries
Environment Variable | Description | Default |
| GraphQL endpoint URL |
|
| JSON string containing headers for requests |
|
| Enable mutation operations (disabled by default) |
|
Resources
schema: exposes the GraphQL Schema to easy use by the IA
Available Tools
introspect: This tool retrieves the GraphQL schema. used to index or get a new funciton by the LLM
query: Execute GraphQL queries.
Installation
Installing Manually
start with installing the dependencies
npm iafter run the build of the package
npm run buildIt 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 inspectLatest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/FabrWill/gql-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server