GraphQL Introspection MCP Server
A Node.js server that enables LLMs to inspect GraphQL schemas and retrieve information about queries, mutations, and types via MCP.
README
GraphQL Introspection MCP Server
A Node.js server implementing the Model Context Protocol (MCP) that provides GraphQL schema introspection capabilities. This server enables LLMs to inspect GraphQL schemas and retrieve information about available queries, mutations, and types.
Features
- Schema Introspection: Query GraphQL endpoints to retrieve complete schema information
- Query Discovery: List all available queries with descriptions and parameters
- Mutation Discovery: List all available mutations with descriptions and parameters
- Type Details: Get detailed information about specific GraphQL types including fields, enum values, and input fields
- Endpoint Required: Must specify a GraphQL endpoint when starting the server
API
Tools
-
introspect_schema
- Get full GraphQL schema information from the configured endpoint
- No input parameters required
- Returns basic schema information including query/mutation/subscription types and counts
-
get_graphql_gql_queries
- List all available queries with descriptions and parameters
- No input parameters required
- Returns formatted list of queries with their arguments and return types
-
get_graphql_gql_mutations
- List all available mutations with descriptions and parameters
- No input parameters required
- Returns formatted list of mutations with their arguments and return types
-
get_graphql_type_details
- Get detailed information about specific GraphQL types
- Input:
typeNames(array of strings): Names of the GraphQL types to inspect - Returns detailed type information including fields, enum values, and input fields
Usage
Important: A GraphQL endpoint is required when starting the server. The server will not start without one.
# Using --endpoint flag
npx mcp-graphql-introspection --endpoint https://api.example.com/graphql
# Using -e shorthand
npx mcp-graphql-introspection -e https://api.example.com/graphql
# Direct URL as first argument
npx mcp-graphql-introspection https://api.example.com/graphql
# Error - no endpoint provided
npx mcp-graphql-introspection
# Error: GraphQL endpoint is required. Please provide an endpoint using --endpoint flag or as a direct URL argument.
Claude code
# Must provide an endpoint
claude mcp add graphql-introspection npx mcp-graphql-introspection https://api.example.com/graphql
# Or with --endpoint flag
claude mcp add graphql-introspection npx mcp-graphql-introspection --endpoint https://api.example.com/graphql
Cursor
Click the button to install:
Or install manually:
Go to Cursor Settings -> MCP -> Add new MCP Server. Name to your liking, use command type with the command npx mcp-graphql-introspection. You can also verify config or add command like arguments via clicking Edit.
{
"mcpServers": {
"graphql-introspection": {
"command": "npx",
"args": ["mcp-graphql-introspection", "--endpoint", "https://api.example.com/graphql"]
}
}
}
Alternative with direct URL:
{
"mcpServers": {
"graphql-introspection": {
"command": "npx",
"args": ["mcp-graphql-introspection", "https://api.example.com/graphql"]
}
}
}
Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"graphql-introspection": {
"command": "npx",
"args": ["mcp-graphql-introspection", "--endpoint", "https://api.example.com/graphql"]
}
}
}
Alternative with direct URL:
{
"mcpServers": {
"graphql-introspection": {
"command": "npx",
"args": ["mcp-graphql-introspection", "https://api.example.com/graphql"]
}
}
}
VS Code
Add this to your VS Code settings:
{
"mcpServers": {
"graphql-introspection": {
"command": "npx",
"args": ["mcp-graphql-introspection", "--endpoint", "https://api.example.com/graphql"]
}
}
}
Alternative with direct URL:
{
"mcpServers": {
"graphql-introspection": {
"command": "npx",
"args": ["mcp-graphql-introspection", "https://api.example.com/graphql"]
}
}
}
Build
npm install
npm run build
License
This MCP server is licensed under the MIT License. This allows you to freely use, modify, and distribute the software.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。