GitHub MCP Server by cyanheads

GitHub MCP Server by cyanheads

github-mcp-server-cyanheads•bycyanheads

A deprecated Model Context Protocol server that bridges AI models and the GitHub REST API through tools for managing repositories, branches, issues, pull requests, files and releases.

License: Apache License 2.0•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides repository management tools to get, list and create GitHub repositories.
  • •Manages branches with list, create and delete operations, including protected branch filtering.
  • •Supports issue creation and listing with labels and state filtering, and pull request lifecycle operations including merge with selectable strategies.
  • •Handles repository file creation and updates plus release creation with draft and prerelease options.

BEST FOR

  • •LLM agents that need to perform GitHub operations such as managing issues and pull requests programmatically.
  • •Automating repository maintenance tasks like branching, file commits and release creation through a standardized MCP interface.

ABOUT GITHUB-MCP-SERVER-CYANHEADS

GitHub MCP Server by cyanheads is cataloged as an MCP server attributed to cyanheads. A deprecated Model Context Protocol server that bridges AI models and the GitHub REST API through tools for managing repositories, branches, issues, pull requests, files and releases. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Apache License 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for GitHub MCP Server by cyanheads are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does this server handle GitHub API rate limits?

Yes, the server includes built-in GitHub API rate limiting protection and configurable throttling settings.

Is this project still maintained?

The repository is marked deprecated and recommends using the official GitHub MCP server instead.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 1f1ba0c03d90 · 采集于 2026-11-13 10:22:26 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

🚨 This repository is deprecated. 🚨

Please use the official GitHub MCP server instead: https://github.com/github/github-mcp-server

🚨 This repository is deprecated. 🚨


GitHub MCP Server

TypeScript Model Context Protocol Version License Status GitHub

A Model Context Protocol (MCP) server that provides tools for interacting with the GitHub API. This server allows LLM agents manage GitHub repositories, issues, pull requests, branches, files, and releases through a standardized interface.

Table of Contents

Overview

github-mcp-server implements the Model Context Protocol (MCP), enabling standardized communication between LLMs and external systems through:

  • Clients: Claude Desktop, IDEs, and other MCP-compatible clients
  • Servers: Tools and resources for project management and collaboration
  • LLM Agents: AI models that leverage the ability to perform GitHub operations programmatically.

It acts as a bridge between AI models and the GitHub API, offering a set of well-defined tools that follow consistent patterns and handle authentication, validation, error handling, and rate limiting.

Key capabilities:

  • GitHub API Integration: Secure and seamless integration with GitHub's REST API
  • Comprehensive GitHub Features: Complete management of repos, branches, issues, PRs, and more
  • Atomic Feature Architecture: Well-organized modular code structure for maintainability
  • Input Validation: Robust validation with Zod schemas for all operations
  • Error Handling: Consistent error categorization and reporting
  • Rate Limiting: Built-in GitHub API rate limit handling
  • Performance Focus: Optimized operations and response formatting

Architecture & Components

Core system architecture:

Click to expand Mermaid diagram
flowchart TB
    subgraph API["API Layer"]
        direction LR
        MCP["MCP Protocol"]
        Val["Validation"]
        Rate["Rate Limiting"]

        MCP --> Val --> Rate
    end

    subgraph Features["Feature Modules"]
        direction LR
        Repo["Repository Management"]
        Branch["Branch Management"]
        Issue["Issue Management"]
        PR["Pull Request Management"]
        File["File Management"]
        Release["Release Management"]

        Repo <--> Branch
        Repo <--> Issue
        Repo <--> PR
        Repo <--> File
        Branch <--> PR
    end

    subgraph Services["Services Layer"]
        direction LR
        GitHub["GitHub Service"]
        Mapper["Response Mapper"]
        RateLimiter["Rate Limiter"]

        GitHub <--> RateLimiter
        GitHub <--> Mapper
    end

    Rate --> Repo
    Rate --> Branch
    Rate --> Issue
    Rate --> PR
    Rate --> File
    Rate --> Release

    Repo --> GitHub
    Branch --> GitHub
    Issue --> GitHub
    PR --> GitHub
    File --> GitHub
    Release --> GitHub

    classDef layer fill:#2d3748,stroke:#4299e1,stroke-width:3px,rx:5,color:#fff
    classDef component fill:#1a202c,stroke:#a0aec0,stroke-width:2px,rx:3,color:#fff
    classDef api fill:#3182ce,stroke:#90cdf4,stroke-width:2px,rx:3,color:#fff
    classDef features fill:#319795,stroke:#81e6d9,stroke-width:2px,rx:3,color:#fff
    classDef services fill:#2f855a,stroke:#9ae6b4,stroke-width:2px,rx:3,color:#fff

    class API,Features,Services layer
    class MCP,Val,Rate api
    class Repo,Branch,Issue,PR,File,Release features
    class GitHub,Mapper,RateLimiter services

Core Components:

  • MCP Protocol Layer: Handles communication with AI assistants
  • Validation Layer: Ensures data integrity through schema validation
  • GitHub Service: Core integration with GitHub REST API
  • Rate Limiter: Prevents API rate limit exhaustion
  • Feature Modules: Domain-specific GitHub operations
  • Error Handling: Comprehensive error handling and logging system

Features

Repository Management

  • Create, List, Get: Create new repositories, list user repositories, and get detailed repository information
  • Validation & Configuration: Validate repository settings and manage configuration options

Branch Management

  • Create, Delete, List: Complete branch lifecycle management with secure validation
  • Protected Branch Support: Filtering and operations for protected branches

Issue Management

  • Create & List: Create detailed issues with labels and list issues with filtering options
  • Status Tracking: Filter by issue state (open, closed, all)

Pull Request Management

  • Create, Update, Merge, List: Full pull request lifecycle management
  • Review & Comment Integration: Add reviews and comments to pull requests
  • Merge Options: Support for different merge strategies (merge, squash, rebase)

File Management

  • Create & Update Files: Add and modify repository content with commit messages
  • Base64 Encoding Support: Handle both text and binary file content

Release Management

  • Create Releases: Create tagged releases with customizable options
  • Draft & Prerelease Support: Support for draft and prerelease workflows

Installation

Prerequisites

  • Node.js (v16 or newer)
  • A GitHub personal access token with appropriate permissions

Setup

  1. Clone the repository:

    git clone https://github.com/cyanheads/github-mcp-server.git
    cd github-mcp-server
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file in the project root with your GitHub token:

    GITHUB_TOKEN=your_github_personal_access_token
    LOG_LEVEL=info
    SERVER_NAME=github-mcp-server
    
  4. Build the project:

    npm run build
    
  5. Start the server:

    node build/index.js
    

Configuration

The server can be configured through environment variables:

Environment VariableDescriptionDefault
GITHUB_TOKENGitHub personal access token (required)-
LOG_LEVELLogging level (debug, info, warn, error, fatal)info
SERVER_NAMEMCP server namegithub-mcp-server
SERVER_VERSIONMCP server version0.1.0
API_TIMEOUT_MSTimeout for API calls in milliseconds10000
RATE_LIMITING_ENABLEDWhether rate limiting is enabledtrue
RATE_LIMITING_MIN_REMAININGMinimum remaining requests before throttling100
RATE_LIMITING_RESET_BUFFER_MSTime buffer to add to rate limit reset time5000

MCP Client Settings

Add to your MCP client settings:

{
  "mcpServers": {
    "github": {
      "command": "node",
      "args": ["/path/to/github-mcp-server/build/index.js"],
      "env": {
        "GITHUB_TOKEN": "your_github_personal_access_token",
        "LOG_LEVEL": "info",
        "SERVER_NAME": "github-mcp-server"
      }
    }
  }
}

Project Structure

This project follows an atomic feature-oriented architecture pattern:

/src
  /configuration             // Application configuration
  /dependencyInjection       // Tool registry and DI container
  /features                  // Feature modules organized by domain
    /repositoryManagement
      /resources             // Read operations
      /modifications         // Write operations
    /branchManagement
    /issueManagement
    /pullRequestManagement
    /fileManagement
    /releaseManagement
  /services                  // External service integrations
    /githubAccess            // GitHub API client and utilities
  /types                     // Core type definitions
  /utilities                 // Helper functions and utilities

Each feature domain is split into:

  • Resources: Read operations that don't modify data
  • Modifications: Write operations that create, update, or delete data

Each operation is contained in its own directory with:

  • Operation implementation file
  • Type definitions file
  • Export index file

Tools

GitHub MCP Server provides a comprehensive suite of tools for interacting with GitHub:

Repository Management Tools

ToolDescription
get_repositoryGet detailed information about a specific repository
Parameters: owner, repo
list_repositoriesList repositories for the authenticated user
Parameters: type (optional), sort (optional)
create_repositoryCreate a new GitHub repository
Parameters: name, description (optional), private (optional)

Branch Management Tools

ToolDescription
list_branchesList branches in a repository
Parameters: owner, repo, protected (optional), per_page (optional)
create_branchCreate a new branch
Parameters: owner, repo, branch, sha
delete_branchDelete a branch
Parameters: owner, repo, branch

Issue Management Tools

ToolDescription
create_issueCreate a new issue in a repository
Parameters: owner, repo, title, body (optional), labels (optional)
list_issuesList issues in a repository
Parameters: owner, repo, state (optional), labels (optional)

Pull Request Management Tools

ToolDescription
create_pull_requestCreate a new pull request
Parameters: owner, repo, title, head, base, body (optional)
merge_pull_requestMerge a pull request
Parameters: owner, repo, pull_number, commit_title (optional), commit_message (optional), merge_method (optional)
update_pull_requestUpdate an existing pull request
Parameters: owner, repo, pull_number, title (optional), body (optional), state (optional), base (optional), maintainer_can_modify (optional)
list_pull_requestsList pull requests in a repository
Parameters: owner, repo, state (optional), head (optional), base (optional), sort (optional), direction (optional)

File Management Tools

ToolDescription
update_fileCreate or update a file in a repository
Parameters: owner, repo, path, message, content, sha (optional), branch (optional)

Release Management Tools

ToolDescription
create_releaseCreate a new release
Parameters: owner, repo, tag_name, name (optional), body (optional), draft (optional), prerelease (optional)

Development

Project Structure

The project follows strict naming conventions and directory structure:

  • File naming: action.entity.type.ts (e.g., create.repository.operation.ts)
  • Each module has a clearly defined purpose
  • Types are co-located with their implementation
  • All exports are centralized through index files

Scripts

  • npm run build - Build the project
  • npm run watch - Watch for changes and rebuild
  • npm run inspector - Run the MCP inspector tool
  • npm run clean - Clean build artifacts
  • npm run rebuild - Clean and rebuild the project
  • npm run tree - Generate a directory tree representation

Error Handling

The server implements a comprehensive error handling strategy:

  • Standardized Error Objects: Consistent error format with categorization
  • Input Validation: Pre-validation using Zod schemas
  • Rate Limiting Protection: Automatic handling of GitHub API rate limits
  • Error Categories:
    • Network errors (connectivity issues)
    • Authentication errors (token problems)
    • Validation errors (invalid input)
    • GitHub API errors (API-specific issues)
    • System errors (unexpected failures)
  • Detailed Logging: Structured logging for all operations and errors

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

Apache License 2.0


Built with the Model Context Protocol

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for GitHub MCP Server by cyanheads from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/github-mcp-server-cyanheads)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools