github_graphql_api_mcp

github_graphql_api_mcp

2

This project provides an MCP server for interacting with the GitHub GraphQL API, enabling efficient and precise data queries. It supports exploratory functions such as contribution trend analysis and dependency health assessment.

GitHub GraphQL API MCP

A tool based on Model Control Protocol (MCP) for querying and using the GitHub GraphQL API. It provides a server for exploring the GitHub GraphQL schema and executing GraphQL queries through MCP client tools.

Why Use GitHub GraphQL API

  • Precise data retrieval
  • Reduced token consumption
  • Single request for related data
  • Self-documenting
  • Strong type system

Application Scenarios

Basic Functions

  • Repository basic information query
  • Issue data retrieval
  • User profile access
  • Pull request status view
  • Project dependency query

Exploratory Advanced Functions

  • Repository contribution trend analysis
  • Issue management and classification
  • Code review pattern analysis
  • Contributor network visualization
  • Dependency health assessment

Features

  • Query GitHub GraphQL schema root types
  • Get detailed documentation
  • Execute GitHub GraphQL API queries
  • Bilingual support

Prerequisites

  • Python 3.10 or higher
  • GitHub personal access token
  • Poetry for dependency management

Usage

  • Start the server and connect via an MCP client
  • Configure in Claude Desktop for easy startup

Available Tools

  • Query root type documentation
  • Query fields of specific types
  • Execute GraphQL queries

Notes

  • Ensure GitHub token has appropriate permissions
  • Queries must comply with GitHub API usage limits