The GitHub MCP Server is a powerful tool for interacting with the GitHub API, enabling file operations, repository management, search functionality, and more. This server is designed to integrate seamlessly with tools like Claude Desktop, providing a robust interface for GitHub operations.
create_or_update_fileCreate or update a single file in a repository.
push_filesPush multiple files in a single commit.
search_repositoriesSearch for GitHub repositories.
create_repositoryCreate a new GitHub repository.
get_file_contentsGet contents of a file or directory.
create_issueCreate a new issue.
create_pull_requestCreate a new pull request.
fork_repositoryFork a repository.
create_branchCreate a new branch.
list_issuesList and filter repository issues.
update_issueUpdate an existing issue.
add_issue_commentAdd a comment to an issue.
search_codeSearch for code across GitHub repositories.
search_issuesSearch for issues and pull requests.
search_usersSearch for GitHub users.
list_commitsGet commits of a branch in a repository.
get_issueGet the contents of an issue within a repository.
get_pull_requestGet details of a specific pull request.
list_pull_requestsList and filter repository pull requests.
create_pull_request_reviewCreate a review on a pull request.
merge_pull_requestMerge a pull request.
get_pull_request_filesGet the list of files changed in a pull request.
get_pull_request_statusGet the combined status of all status checks for a pull request.
update_pull_request_branchUpdate a pull request branch with the latest changes from the base branch.
get_pull_request_commentsGet the review comments on a pull request.
get_pull_request_reviewsGet the reviews on a pull request.
language:javascript: Search by programming language.repo:owner/name: Search in specific repository.path:app/src: Search in specific path.extension:js: Search by file extension.is:issue or is:pr: Filter by type.is:open or is:closed: Filter by state.label:bug: Search by label.author:username: Search by author.type:user or type:org: Filter by account type.followers:>1000: Filter by followers.location:London: Search by location.repo scope.Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"github": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "mcp/github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
Docker build:
docker build -t mcp/github -f src/github/Dockerfile .
This MCP server is licensed under the MIT License. For more details, please see the LICENSE file in the project repository.