Installation
Prerequisites
Section titled “Prerequisites”| Requirement | Minimum Version | Check Command | Notes |
|---|---|---|---|
| Go | 1.25.0+ | go version | Required for building from source |
| Git | 2.0+ | git --version | Optional — server works without Git (48 tools available) |
| GitHub Token | — | — | Personal Access Token with repo scope |
Installation Steps
Section titled “Installation Steps”-
Clone the repository
Terminal window git clone https://github.com/jotajotape/github-go-server-mcp.gitcd github-go-server-mcp -
Install Go dependencies
Terminal window go mod tidyThis downloads:
github.com/google/go-github/v81 v81.0.0— GitHub API clientgolang.org/x/oauth2 v0.34.0— OAuth2 authentication
-
Build the executable
Terminal window # Using the included build script.\compile.bat# Or manuallygo build -o github-mcp-server-v3.exe ./cmd/github-mcp-server/Terminal window # Build directlygo build -o github-mcp-server-v3 ./cmd/github-mcp-server/# Make executablechmod +x github-mcp-server-v3 -
Create your GitHub Personal Access Token
- Go to GitHub Settings → Personal Access Tokens
- Click “Generate new token (classic)”
- Give it a descriptive name like “Claude Desktop MCP Server”
- Select scopes:
- ✅
repo(required) — Full control of private repositories - ✅
delete_repo(optional) — Forgithub_delete_repositorytool - ✅
workflow(optional) — For re-running GitHub Actions workflows - ✅
security_events(optional) — For dismissing security alerts - ✅
admin:repo_hook(optional) — Enhanced webhook management (v3.0) - ✅
admin:org(optional) — Team management in organizations (v3.0)
- ✅
- Click “Generate token” and copy it immediately
-
Verify installation
Terminal window # Test the executable./github-mcp-server-v3 --help# Expected output:# GitHub MCP Server v3.0# Usage: github-mcp-server-v3 [options]# Options:# --profile <name> Use a specific profile# --safety-config <path> Path to safety configuration file
What’s Next?
Section titled “What’s Next?”After installing, you need to configure Claude Desktop to use the server:
Troubleshooting
Section titled “Troubleshooting”go: command not found
Section titled “go: command not found”Go is not installed or not in your PATH. Download from go.dev/dl and follow the installation instructions for your platform.
package github.com/google/go-github/v81: cannot find package
Section titled “package github.com/google/go-github/v81: cannot find package”Dependencies aren’t installed. Run go mod tidy in the project directory.
Build fails on macOS with “xcrun: error”
Section titled “Build fails on macOS with “xcrun: error””Git command-line tools aren’t installed. Two options:
- Install Xcode Command Line Tools:
xcode-select --install - Use Git-Free Mode: The server will work without Git (48 tools remain available, including all GitHub API and admin tools)
Permission denied when running executable
Section titled “Permission denied when running executable”On Linux/macOS, the file needs execute permissions:
chmod +x github-mcp-server-v3Advanced: Pre-built Binaries
Section titled “Advanced: Pre-built Binaries”If you don’t want to build from source, check the GitHub Releases page for pre-built binaries (if available).
Testing the Installation
Section titled “Testing the Installation”Run the test suite to verify everything works:
# Run all testsgo test ./...
# Run with verbose outputgo test ./... -v
# Test specific packagesgo test ./pkg/safety/ -v # Safety system testsgo test ./pkg/git/ -v # Git operations testsExpected: All 124 tests should pass in ~1.4 seconds.