GitHub MCP Server

GitHub MCP Server

Model Context Protocol

4.8
13.5k+ downloads
Version 1.0.0
Updated 2024-03-20
~2MB

About

A comprehensive MCP Server that provides seamless integration with GitHub's API, offering a wide range of tools for repository management, code operations, and collaboration features.

Key Features: • Automatic Branch Creation & Git History Preservation • Comprehensive Error Handling • Batch Operations Support • Advanced Search Capabilities • Complete Pull Request Management • Issue Tracking Integration

Available Tools:

  1. File Operations • create_or_update_file: Create or update files with automatic branch creation • push_files: Push multiple files in a single commit • get_file_contents: Retrieve file or directory contents

  2. Repository Management • create_repository: Create new GitHub repositories • search_repositories: Search across GitHub repositories • list_commits: View repository commit history

  3. Pull Request Tools • create_pull_request_review: Create PR reviews with inline comments • merge_pull_request: Merge PRs with various strategies • update_pull_request_branch: Update PR branches • get_pull_request_files: List changed files in PRs • get_pull_request_status: Check PR status and checks

  4. Issue Management • create_issue: Create new issues • get_issue: Retrieve issue details • search_issues: Search issues and PRs

  5. Search Capabilities • search_code: Search code with language and path filters • search_users: Find users and organizations • search_repositories: Discover repositories

Installation:

  1. Configure in Claude Desktop: Add to your claude_desktop_config.json:

    {
      "mcpServers": {
        "github": {
          "command": "npx",
          "args": [
            "-y",
            "@modelcontextprotocol/server-github"
          ],
          "env": {
            "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
          }
        }
      }
    }
    
  2. Docker Installation:

    docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN mcp/github
    

Setup Requirements:

  1. Create a GitHub Personal Access Token: • Go to GitHub Settings > Developer settings > Personal access tokens • Create token with 'repo' scope for full repository access • For public repos only, use 'public_repo' scope

Search Query Examples: • Code: language:javascript path:src/ "import express" • Issues: is:issue is:open label:bug • Users: type:user location:London followers:>100

Requirements: • GitHub Account • Personal Access Token • Node.js (for NPX installation) • Docker (for container installation)

Screenshots

GitHub MCP Server screenshot 1
GitHub MCP Server screenshot 2

Information

Developer
Model Context Protocol
Category
Development
Size
~2MB
Version
1.0.0
Last Updated
2024-03-20
Requirements
GitHub Account, Personal Access Token, Node.js/Docker