GitHub MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GITHUB_PERSONAL_ACCESS_TOKENYesYour GitHub Personal Access Token with appropriate permissions.

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
create_or_update_fileCreate or update a single file in a GitHub repository
search_repositoriesSearch for GitHub repositories
create_repositoryCreate a new GitHub repository in your account
get_file_contentsGet the contents of a file or directory from a GitHub repository
push_filesPush multiple files to a GitHub repository in a single commit
create_issueCreate a new issue in a GitHub repository
create_pull_requestCreate a new pull request in a GitHub repository
fork_repositoryFork a GitHub repository to your account or specified organization
create_branchCreate a new branch in a GitHub repository
list_commitsGet list of commits of a branch in a GitHub repository
list_issuesList issues in a GitHub repository with filtering options
update_issueUpdate an existing issue in a GitHub repository
add_issue_commentAdd a comment to an existing issue
search_codeSearch for code across GitHub repositories
search_issuesSearch for issues and pull requests across GitHub repositories
search_usersSearch for users on GitHub
get_issueGet details of a specific issue in a GitHub repository.