Claude GitHub MCP Server logo

Claude GitHub MCP Server

by sidgupt12

A GitHub MCP Server for Claude Desktop that allows Claude to interact with GitHub repositories. It provides functionalities to manage pull requests, repositories, and more.

View on GitHub

Last updated: N/A

Claude GitHub MCP Server

A GitHub MCP Server for Claude Desktop that gives Claude the ability to interact with GitHub repository.

<details> <summary>Here's the JSON to copy</summary>
{
  "mcpServers": {
    "github-pr": {
      "command": "claude-github-mcp", 
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "your_github_token_here"
      }
    }
  }
}

</details>
Quick install
npm install -g claude-github-mcp

Features

  • List and view pull requests from any GitHub repository
  • Get detailed information about specific PRs
  • Comment on pull requests
  • Request reviewers for PRs
  • Merge pull requests
  • Summarize PR changes with diff highlighting
  • Close/reject PRs with optional comments
  • Create new repository
  • Delete existing repository

Usage

  • "Show me open PRs for microsoft/vscode"
  • "Get details for PR #123 in owner/repo"
  • "Summarize the changes in PR #456 for owner/repo"
  • "Comment 'LGTM! Approving this change.' on PR #789 in owner/repo"
  • "Request alice and bob as reviewers for PR #42 in owner/repo"
  • "Merge PR #101 in owner/repo"
  • "Close PR #202 in owner/repo with reason 'This approach won't work'"
  • "Create a repo named test with files xyz and content 'test file'"
  • "Delete this repo 'repo link'"

Available Commands

  • list-prs: Lists pull requests for a repository
  • discuss-pr: Gets details about a specific PR
  • summarize-pr: Summarizes changes in a PR with diffs
  • comment-on-pr: Posts a comment on a PR
  • request-reviewers: Requests reviewers for a PR
  • merge-pr: Merges a PR
  • close-pr: Closes/rejects a PR
  • create-repository: Creates a new repository
  • delete-repository: Deletes an existing repository

Requirements

  • Node.js 16+
  • A GitHub account with an appropriate personal access token
  • Claude Desktop

Enjoy!!