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