toan-trieu-ts/mcp-github
3.1
If you are the rightful owner of mcp-github and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The Model Context Protocol (MCP) server facilitates seamless integration and communication between development environments and external services, enhancing productivity and collaboration.
How to run
1. Build the Docker image:
docker build -t custom-github-mcp-server .
2. Get your GitHub Personal Access Token (PAT) with the necessary scopes.
- Go to your GitHub account settings.
- Navigate to
Developer settings>Personal access tokens>Tokens (classic). - Click on "Generate new token" and select the scopes you need.
- Copy the generated token.
- Note:
- Please ensure that you keep your token secure and do not expose it in public repositories or logs.
- Set the expiration date according to your security needs.
3. Add the server to your favorite IDE MCP configuration:
- For example in VSCode, add the following to your
mcp.json:
{
"servers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"custom-github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
},
"type": "stdio"
}
},
"inputs": [
{
"type": "promptString",
"id": "github_token",
"description": "GitHub Personal Access Token",
"password": true
}
]
}