GitHub MCP
open sourcestdioFull GitHub API access for agents: repos, issues, PRs, files, and search
Updated 2026-03-10
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-githubRuntime: node
Tools (14)
create_or_update_fileCreate or update a single file in a repository
search_repositoriesSearch for GitHub repositories
create_repositoryCreate a new GitHub repository
get_file_contentsGet the contents of a file or directory from a repository
push_filesPush multiple files to a repository in a single commit
create_issueCreate a new issue in a repository
create_pull_requestCreate a new pull request
fork_repositoryFork a repository to your account or an organization
create_branchCreate a new branch in a repository
list_commitsGet list of commits of a branch in a repository
search_codeSearch for code across GitHub repositories
search_issuesSearch for issues and pull requests across GitHub repositories
get_issueGet details of a specific issue in a repository
merge_pull_requestMerge a pull request
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.