GitHub MCP Server

Official
Developer Tools
stdio
Featured

Connect your AI agent to GitHub to manage repositories, create and review pull requests, search code, manage issues and labels, and automate workflows. The official GitHub MCP server provides read and write access to the GitHub API through a standardized MCP interface.

Quick Install

$ npx -y @modelcontextprotocol/server-github

Environment Variables

VariableDescriptionRequired
GITHUB_PERSONAL_ACCESS_TOKENGitHub Personal Access Token with repo scopeYes

Configuration by Client

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

Need a different client? Use the Config Generator for Windsurf, Cline, Antigravity, and more.

Available Tools (7)

create_or_update_filesearch_repositoriescreate_issuecreate_pull_requestget_file_contentslist_commitspush_files