Github MCP Server

Enables programmatic interaction with the GitHub API for file operations, repository management, search, and more.

Local serverstdioTypeScript★ 9

What is the Github MCP Server?

Enables programmatic interaction with the GitHub API for file operations, repository management, search, and more.

What the server does

  • 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

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Inputs — - owner (string): Repository owner (username or organization)
  • Returns — File content and commit details
  • list_repository_webhooks — get_repository_webhook
  • create_repository_webhook — update_repository_webhook
  • delete_repository_webhook — get_repository_webhook_config
  • update_repository_webhook_config — ping_repository_webhook
  • list_repository_webhook_deliveries — get_repository_webhook_delivery
  • redeliver_repository_webhook_delivery — list_organization_webhooks
  • get_organization_webhook — create_organization_webhook
  • update_organization_webhook — delete_organization_webhook
  • get_organization_webhook_config — update_organization_webhook_config
  • ping_organization_webhook — list_organization_webhook_deliveries

Recorded tools

  • list_repository_webhooks — get_repository_webhook
  • create_repository_webhook — update_repository_webhook
  • delete_repository_webhook — get_repository_webhook_config
  • update_repository_webhook_config — ping_repository_webhook
  • list_repository_webhook_deliveries — get_repository_webhook_delivery
  • redeliver_repository_webhook_delivery — list_organization_webhooks
  • get_organization_webhook — create_organization_webhook
  • update_organization_webhook — delete_organization_webhook
  • get_organization_webhook_config — update_organization_webhook_config
  • ping_organization_webhook — list_organization_webhook_deliveries
  • get_organization_webhook_delivery — redeliver_organization_webhook_delivery
  • insecure_ssl — "1" disables certificate verification and is discouraged.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_repository_webhooksget_repository_webhook
create_repository_webhookupdate_repository_webhook
delete_repository_webhookget_repository_webhook_config
update_repository_webhook_configping_repository_webhook
list_repository_webhook_deliveriesget_repository_webhook_delivery
redeliver_repository_webhook_deliverylist_organization_webhooks
get_organization_webhookcreate_organization_webhook
update_organization_webhookdelete_organization_webhook
get_organization_webhook_configupdate_organization_webhook_config
ping_organization_webhooklist_organization_webhook_deliveries
get_organization_webhook_deliveryredeliver_organization_webhook_delivery
insecure_ssl"1" disables certificate verification and is discouraged.

How to install the Github MCP Server

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

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
GITHUB_PERSONAL_ACCESS_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • “Use Github to Inputs.”
  • “Use Github to Returns.”
  • “Use Github to list repository webhooks.”

Frequently asked questions

This tool allows you to programmatically interact with the GitHub API, enabling automated file operations, repository management, advanced search, issue/PR creation, and more. Streamline your development workflows and automate repetitive tasks.