MCP.so
登录

GraphQL MCP Server

@ctkadvisors

基本信息

分类

其他

许可证

View license

传输方式

stdio

作者

ctkadvisors

关于 GraphQL MCP Server

MCP server for dynamic graphql

GraphQL MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "graphql-mcp": {
      "command": "node",
      "args": [
        "dist/graphql-mcp-server.js"
      ]
    }
  }
}

GraphQL MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is GraphQL MCP Server?

A strongly-typed TypeScript Model Context Protocol (MCP) server that provides seamless access to any GraphQL API through Claude AI.

How to use GraphQL MCP Server?

Install via npm (npm install -g graphql-mcp and run graphql-mcp-server) or clone the repository, install dependencies, build with TypeScript, and run. Integrate with Claude Desktop by adding the server to the MCP configuration file with environment variables such as GRAPHQL_API_ENDPOINT, GRAPHQL_API_KEY, ENABLE_MUTATIONS, WHITELISTED_QUERIES, and WHITELISTED_MUTATIONS.

Key features of GraphQL MCP Server

  • Strongly typed with TypeScript for code quality and type safety
  • Dynamic integration with any GraphQL API via automatic tool generation
  • Schema introspection that discovers all GraphQL operations as tools
  • Full mutation support with proper handling and optional whitelisting
  • Query and mutation whitelisting for controlled access
  • Proper handling of complex GraphQL types, input objects, and variables
  • MCP standard compliant for seamless Claude Desktop integration
  • Smart query generation with efficient field selection

Use cases of GraphQL MCP Server

  • Querying data from any GraphQL API through natural language in Claude Desktop
  • Performing GraphQL mutations (e.g., creating users, updating profiles) with proper parameter handling
  • Exposing only specific GraphQL operations to Claude for security or performance reasons
  • Enabling or disabling mutations globally to control write access to backend systems

常见问题

1

What GraphQL APIs can I connect to?

Any GraphQL API endpoint is supported; the server defaults to the Countries API if no endpoint is specified.

2

Do I need a runtime or dependencies beyond Node.js?

Yes, Node.js 18 or later and TypeScript 5.x or later are required. Claude Desktop with MCP support is needed for integration.

3

How do I control which operations are exposed to Claude?

You can whitelist queries and mutations using the `WHITELISTED_QUERIES` and `WHITELISTED_MUTATIONS` environment variables, and enable/disable all mutations via `ENABLE_MUTATIONS`.

4

How is authentication handled?

Authentication is optional; you can provide an API key via the `GRAPHQL_API_KEY` environment variable.

5

What transport does the server use?

The server communicates via standard input/output (stdio) as configured for Claude Desktop MCP servers.

评论

其他 分类下的更多 MCP 服务器