GitHub MCP

open sourcestdio

Full GitHub API access for agents: repos, issues, PRs, files, and search

Updated 2026-03-10

API IntegrationFree· Open source. Requires a GitHub personal access token.GitHubDocs

Official MCP server for the GitHub API. Gives agents comprehensive access to GitHub: create and manage repositories, read and write files, open and merge pull requests, manage issues, search code, and interact with GitHub Actions. The most complete GitHub integration available for AI agents.

Install

GITHUB_PERSONAL_ACCESS_TOKEN=your-token npx -y @modelcontextprotocol/server-github

Runtime: node

Tools (14)

create_or_update_file

Create or update a single file in a repository

ownerrepopathcontentmessagebranchsha
search_repositories

Search for GitHub repositories

querypageperPage
create_repository

Create a new GitHub repository

namedescriptionprivateautoInit
get_file_contents

Get the contents of a file or directory from a repository

ownerrepopathbranch
push_files

Push multiple files to a repository in a single commit

ownerrepobranchfilesmessage
create_issue

Create a new issue in a repository

ownerrepotitlebodyassigneeslabelsmilestone
create_pull_request

Create a new pull request

ownerrepotitlebodyheadbasedraft
fork_repository

Fork a repository to your account or an organization

ownerrepoorganization
create_branch

Create a new branch in a repository

ownerrepobranchfrom_branch
list_commits

Get list of commits of a branch in a repository

ownerreposhapathpageperPage
search_code

Search for code across GitHub repositories

querypageperPage
search_issues

Search for issues and pull requests across GitHub repositories

querypageperPage
get_issue

Get details of a specific issue in a repository

ownerrepoissue_number
merge_pull_request

Merge a pull request

ownerrepopull_numbermerge_method

Use Cases

  • ·Build agents that automate code review and PR workflows
  • ·Enable agents to manage issues and project boards
  • ·Create agents that search code across your entire GitHub org
  • ·Automate release and deployment workflows via GitHub Actions

Key Points

  • Maintained by GitHub directly, not a community fork
  • Covers repos, files, issues, PRs, search, and GitHub Actions
  • Requires a GitHub PAT with appropriate scopes
  • The de-facto standard for GitHub automation via MCP

Do-Nothing Score

Find out how close you are to Ghost CEO.

Take the quiz

Machine-Readable

This MCP is available as structured JSON via the API.

GET /api/v1/mcps/github