MCP.so
登录

GitHub MCP Server

@jomejia23

基本信息

分类

版本控制

传输方式

stdio

作者

jomejia23

关于 GitHub MCP Server

using git_hub_mcp_server

GitHub MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "github_mcp_server": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/server-github"
      ]
    }
  }
}

GitHub MCP Server 工具

26

Create or update a single file in a GitHub repository

Search for GitHub repositories

Create a new GitHub repository in your account

Get the contents of a file or directory from a GitHub repository

Push multiple files to a GitHub repository in a single commit

Create a new issue in a GitHub repository

Create a new pull request in a GitHub repository

Fork a GitHub repository to your account or specified organization

Create a new branch in a GitHub repository

Get list of commits of a branch in a GitHub repository

List issues in a GitHub repository with filtering options

Update an existing issue in a GitHub repository

Add a comment to an existing issue

Search for code across GitHub repositories

Search for issues and pull requests across GitHub repositories

Search for users on GitHub

Get details of a specific issue in a GitHub repository.

Get details of a specific pull request

List and filter repository pull requests

Create a review on a pull request

Merge a pull request

Get the list of files changed in a pull request

Get the combined status of all status checks for a pull request

Update a pull request branch with the latest changes from the base branch

Get the review comments on a pull request

Get the reviews on a pull request

概览

What is GitHub MCP Server?

The GitHub MCP Server provides a standardized way to interact with GitHub's API using the Model Context Protocol (MCP), enabling automated interactions between AI models and GitHub repositories.

How to use GitHub MCP Server?

Install the package (npm install @modelcontextprotocol/server-github), set your GitHub Personal Access Token as the environment variable GITHUB_PERSONAL_ACCESS_TOKEN, then start the server with npx @modelcontextprotocol/server-github. Configuration can be done through the claude_desktop_config.json file.

Key features of GitHub MCP Server

  • GitHub API Integration
  • Authentication using Personal Access Tokens
  • Repository Management
  • Issue and Pull Request Handling
  • File Operations
  • Branch Management

Use cases of GitHub MCP Server

  • Automate issue tracking and triage across repositories.
  • Manage pull request reviews and merges programmatically.
  • Perform file read/write operations on repository files.
  • Create, list, and switch branches via AI models.

常见问题

1

How do I install the GitHub MCP Server?

Install the npm package: `npm install @modelcontextprotocol/server-github`.

2

How do I configure authentication?

Set your GitHub Personal Access Token as the environment variable `GITHUB_PERSONAL_ACCESS_TOKEN`.

3

How do I start the GitHub MCP Server?

Run the command `npx @modelcontextprotocol/server-github`.

4

Where can I configure the server settings?

The server can be configured through the `claude_desktop_config.json` file, which should include the necessary GitHub authentication tokens and server settings.

评论

版本控制 分类下的更多 MCP 服务器