GitHub MCP Server
Official
Developer Tools
stdio
FeaturedConnect 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-githubEnvironment Variables
| Variable | Description | Required |
|---|---|---|
| GITHUB_PERSONAL_ACCESS_TOKEN | GitHub Personal Access Token with repo scope | Yes |
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