github-mcp-server

kich555/github-mcp-server

3.1

If you are the rightful owner of github-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

MCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.

The GitHub MCP Server is designed to facilitate seamless interactions with the GitHub API, providing a robust platform for managing repositories, files, and other GitHub resources. It supports a wide range of operations such as creating and updating files, managing branches, and handling pull requests and issues. The server is equipped with advanced search capabilities, allowing users to search for code, repositories, issues, and users efficiently. With features like automatic branch creation and comprehensive error handling, the server ensures smooth and error-free operations. It also supports batch operations, enabling users to perform multiple file operations in a single commit, thus enhancing productivity. The server maintains proper Git history, ensuring that all changes are tracked without the need for force pushing. This makes it an ideal tool for developers and teams looking to streamline their GitHub workflows.

Features

  • Automatic Branch Creation: When creating/updating files or pushing changes, branches are automatically created if they don't exist.
  • Comprehensive Error Handling: Clear error messages for common issues.
  • Git History Preservation: Operations maintain proper Git history without force pushing.
  • Batch Operations: Support for both single-file and multi-file operations.
  • Advanced Search: Support for searching code, issues/PRs, and users.

Usages

usage with claude desktop docker

{
  "mcpServers": {
    "github": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GITHUB_PERSONAL_ACCESS_TOKEN",
        "mcp/github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
      }
    }
  }
}

usage with claude desktop npx

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