- Home
- MCP servers
- GitHub
GitHub
- typescript
0
GitHub Stars
typescript
Language
4 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"augustolamim-_mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_TOKEN",
"github-mcp"
],
"env": {
"GITHUB_TOKEN": "YOUR_GITHUB_TOKEN"
}
}
}
}You can run and use the GitHub MCP Server to manage GitHub repositories through a single personal access token. It runs as a Model Context Protocol (MCP) server, enabling Codex or compatible MCP clients to create repositories, manage files, create branches, and identify the authenticated user, all through MCP endpoints. This server is designed to be Docker-friendly and integrates with a token-based workflow to perform repository operations programmatically.
How to use
You connect to the GitHub MCP Server using an MCP client that speaks the MCP protocol over stdio. The server expects a GitHub personal access token with at least the repo scope, provided via the GITHUB_TOKEN environment variable. Once connected, you can perform a sequence of operations such as creating repositories, upserting files on branches, creating branches, and identifying the authenticated identity.
How to install
Prerequisites you need before installation are a supported runtime environment and the ability to run containers.
Local development setup with Node and TypeScript tooling.
If you are running locally without Docker, install the Node-based development workflow.
If you prefer containerized execution, use Docker to build and run the server.
npm install
npm run dev
docker build -t github-mcp .
docker run -i --rm -e GITHUB_TOKEN=... github-mcp
Wiring up to Codex (MCP client)
To connect Codex to the GitHub MCP Server, configure Codex to start the server via MCP over stdio. Use the following configuration snippet to launch the server in a Docker container and expose the required environment variable.
{
"mcpServers": {
"github-mcp": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "GITHUB_TOKEN", "github-mcp"]
}
}
}
Alternative configuration (TOML)
[mcp_servers.github-mcp]
command = "docker"
args = ["run", "-i", "--rm", "--env-file", "pathToEnv", "github-mcp"]
Available tools
create_repository
Create a repository under the authenticated user or a specified organization.
upsert_file
Create or update files on a branch with a commit message.
create_branch
Create a new branch from any ref, defaulting to main when no ref is specified.
whoami
Return the identity associated with the provided PAT.