GitHub GraphQL API MCPServer

wanzunz
GitHub
GraphQLGitHubAPI

Loading subscription status...

💡 Description

A tool based on the Model Control Protocol (MCP) for querying and utilizing the GitHub GraphQL API. This project provides a server that allows you to explore the GitHub GraphQL schema and execute GraphQL queries through MCP client tools.

📝 JSON Entries

{
  "mcpServers": [
    {
      "github_mcp": {
        "args": [
          "--directory",
          "<project path>",
          "run",
          "github_graphql_api_mcp_server.py"
        ],
        "command": "<your Python interpreter path>"
      }
    }
  ]
}

🛠️ Tools

print_type_fieldgraphql_schema_root_typegraphql_schema_typecall_github_graphql

Features

  • Precise data retrieval
  • Reduced token consumption
  • Exploratory querying capabilities

💬 Example Queries

  • Use the graphql_schema_root_type tool, parameter type_name='QUERY'
  • Use the print_type_field tool, parameters type_name='QUERY', type_fields_name='repository'
  • Use the graphql_schema_type tool, parameter type_name='Repository'
  • Use the call_github_graphql tool, parameter: graphql=''' query { viewer { login name } } '''