GraphQL 架构模型上下文协议服务器 logo

GraphQL 架构模型上下文协议服务器

Community
hannesj

GraphQL Schema Model Context Protocol Server

Publisherhannesj
Repositorymcp-graphql-schema
LanguageJavaScript
Forks
10
Stars
46
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    GraphQL 架构模型上下文协议服务器 exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    46 stars and 10 forks from the linked repository.

GraphQL Schema Model Context Protocol Server

smithery badge 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:

bash
# 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:

bash
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:

json
{
  "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 steps:

  1. Add the GraphQL Schema MCP server to Claude Code

    bash
    # Basic syntax
    claude mcp add graphql-schema npx -y mcp-graphql-schema
    
    # Example with specific schema
    claude mcp add shopify-graphql-schema npx -y mcp-graphql-schema  ~/Projects/work/schema.shopify.2025-01.graphqls
  2. Verify the MCP server is registered

    bash
    # List all configured servers
    claude mcp list
    
    # Get details for your GraphQL schema server
    claude mcp get graphql-schema
  3. Remove the server if needed

    bash
    claude mcp remove graphql-schema
  4. Use the tool in Claude Code

    Once configured, you can invoke the tool in your Claude Code session by asking questions about the GraphQL schema.

Tips:

  • Use the -s or --scope flag with project (default) or global to specify where the configuration is stored
  • Add multiple MCP servers for different schemas with different names (e.g., main API schema, Shopify schema)

MCP Tools

The server provides the following tools for LLMs to interact with GraphQL schemas:

  • list-query-fields: Lists all available root-level fields for GraphQL queries
  • get-query-field: Gets detailed definition for a specific query field in SDL format
  • list-mutation-fields: Lists all available root-level fields for GraphQL mutations
  • get-mutation-field: Gets detailed definition for a specific mutation field in SDL format
  • list-subscription-fields: Lists all available root-level fields for GraphQL subscriptions (if present in schema)
  • get-subscription-field: Gets detailed definition for a specific subscription field (if present in schema)
  • list-types: Lists all types defined in the GraphQL schema (excluding internal types)
  • get-type: Gets detailed definition for a specific GraphQL type in SDL format
  • get-type-fields: Gets a simplified list of fields with their types for a specific GraphQL object type
  • search-schema: Searches for types or fields in the schema by name pattern (case-insensitive regex)

Examples

Example queries to try:

What query fields are available in this GraphQL schema?
Show me the details of the "user" query field.
What mutation operations can I perform in this schema?
List all types defined in this schema.
Show me the definition of the "Product" type.
List all fields of the "Order" type.
Search for types and fields related to "customer".

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "hannesj-mcp-graphql-schema": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-graphql-schema"
      ]
    }
  }
}

Use GraphQL 架构模型上下文协议服务器 MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once GraphQL 架构模型上下文协议服务器 is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add GraphQL 架构模型上下文协议服务器 as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the GraphQL 架构模型上下文协议服务器 MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "hannesj-mcp-graphql-schema": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-graphql-schema"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the GraphQL 架构模型上下文协议服务器 MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the GraphQL 架构模型上下文协议服务器 MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use GraphQL 架构模型上下文协议服务器 to help me with this task?
GraphQL 架构模型上下文协议服务器
Sure. I read it.
Here is what I found using GraphQL 架构模型上下文协议服务器.

Frequently asked questions

What is the GraphQL 架构模型上下文协议服务器 MCP server used for?

GraphQL 架构模型上下文协议服务器 is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use GraphQL 架构模型上下文协议服务器 MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use GraphQL 架构模型上下文协议服务器 with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use GraphQL 架构模型上下文协议服务器 MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With GraphQL 架构模型上下文协议服务器 connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect GraphQL 架构模型上下文协议服务器 MCP to TypingMind?

GraphQL 架构模型上下文协议服务器 runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does GraphQL 架构模型上下文协议服务器 MCP provide in TypingMind?

GraphQL 架构模型上下文协议服务器 exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use GraphQL 架构模型上下文协议服务器 MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If GraphQL 架构模型上下文协议服务器 requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇