MCP.so
Sign In

GitHub MCP Server

@rahul-roy-glean

About GitHub MCP Server

Github MCP Server to integrate with CI flows

Basic information

Category

Version Control

Runtime

node

Transports

stdio

Publisher

rahul-roy-glean

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "github-mcp-server-rahul-roy-glean": {
      "command": "docker",
      "args": [
        "build",
        "-t",
        "mcp/github",
        "-f",
        "src/github/Dockerfile",
        "."
      ]
    }
  }
}

Tools

50

`owner` (string): Repository owner (username or organization)

File content and commit details

`owner` (string): Repository owner

Updated branch reference

`query` (string): Search query

Repository search results

`name` (string): Repository name

Created repository details

`owner` (string): Repository owner

File/directory contents

`owner` (string): Repository owner

Created issue details

`owner` (string): Repository owner

Created pull request details

`owner` (string): Repository owner

Forked repository details

`owner` (string): Repository owner

Created branch reference

`owner` (string): Repository owner

List of commits

`owner` (string): Repository owner

Github Issue object & details

`owner` (string): Repository owner

Pull request details including diff and review status

`owner` (string): Repository owner

Array of pull request details

`owner` (string): Repository owner

Created review details

`owner` (string): Repository owner

Merge result details

`owner` (string): Repository owner

Array of changed files with patch and status details

`owner` (string): Repository owner

Combined status check results and individual check details

`owner` (string): Repository owner

Success message when branch is updated

`owner` (string): Repository owner

Array of pull request review comments with details like the comment text, author, and location in the diff

`owner` (string): Repository owner

Array of pull request reviews with details like the review state (APPROVED, CHANGES_REQUESTED, etc.), reviewer, and review body

`owner` (optional string): Repository owner. If not provided, uses GITHUB_OWNER environment variable.

List of workflow runs with detailed information

`run_id` (number): The ID of the workflow run

Detailed information about the workflow run including status, conclusion, timestamps, and repository context

`workflow_id` (string or number): The ID or filename of the workflow. If not provided, uses GITHUB_WORKFLOW_ID environment variable.

List of workflow runs for the specified workflow

`run_id` (number): The ID of the workflow run

A download URL for the logs archive that is valid for 1 minute

`url` (string): The URL to download the file from

`success` (boolean): Whether the operation was successful

Overview

What is GitHub MCP Server?

GitHub MCP Server is an MCP server that integrates with the GitHub API to enable file operations, repository management, search functionality, and more. It is built for developers and AI agents needing programmatic GitHub interaction.

How to use GitHub MCP Server?

The server exposes 28 tools such as create_or_update_file, push_files, search_repositories, and create_issue. To use it, set up the server with appropriate GitHub API credentials and invoke tools via an MCP client. Each tool has defined inputs and returns structured results.

Key features of GitHub MCP Server

  • Automatic branch creation when creating/updating files
  • Comprehensive error handling with clear messages
  • Git history preservation without force pushing
  • Batch operations for single and multi-file commits
  • Advanced search for code, issues/PRs, and users

Use cases of GitHub MCP Server

  • Automating repository creation and file management
  • Searching code across GitHub repositories
  • Managing issues and pull requests programmatically
  • Performing batch file updates and commits
  • Retrieving workflow run details for CI/CD monitoring

FAQ from GitHub MCP Server

How does automatic branch creation work?

When creating or updating files, branches are automatically created if they do not exist.

What search capabilities are available?

The server supports searching for code, issues/PRs, and users with advanced query syntax and pagination.

How can I perform batch operations?

Use the push_files tool to push multiple files in a single commit.

What are the limits on search results?

Search tools allow up to 100 results per page via the per_page parameter.

Does the server preserve Git history?

Yes, operations maintain proper Git history without force pushing.

Comments

More Version Control MCP servers