Manage GitHub repositories using a personal access token via CLI or environment variables.
A Model Context Protocol (MCP) server that provides comprehensive GitHub repository operations through a simple CLI interface.
# Run directly with npx (no installation needed)
npx @ildunari/github-mcp-server --github-token YOUR_GITHUB_TOKEN
# Or use environment variable
export GITHUB_TOKEN=your_token_here
npx @ildunari/github-mcp-server --github-token $GITHUB_TOKEN
npm install -g @ildunari/github-mcp-server
@ildunari/github-mcp-server --github-token YOUR_GITHUB_TOKEN
Go to GitHub Settings → Developer settings → Personal access tokens
Generate a new token (classic) with these scopes:
repo
(for private repositories)public_repo
(for public repositories)read:user
(for user information)Use the token with the CLI:
npx @ildunari/github-mcp-server --github-token ghp_your_token_here
github_repo_info
- Get repository informationgithub_list_contents
- List directory contentsgithub_get_file_content
- Get file contentgithub_get_readme
- Get repository READMEgithub_search_code
- Search code in repositorygithub_list_issues
- List repository issuesgithub_get_issue
- Get specific issue detailsgithub_list_pulls
- List pull requestsgithub_get_pull
- Get specific pull request detailsgithub_list_branches
- List repository branchesgithub_user_info
- Get user informationOptions:
-t, --github-token GitHub access token for API requests [required]
-r, --rate-limit Rate limit delay in ms between requests [default: 100]
-h, --help Show help
# Start the MCP server
npx @ildunari/github-mcp-server --github-token YOUR_TOKEN
# The server will run on stdio and accept MCP requests
# Slower rate limiting (500ms between requests)
npx @ildunari/github-mcp-server --github-token YOUR_TOKEN --rate-limit 500
For use with Claude Desktop or other MCP clients:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["@ildunari/github-mcp-server", "--github-token", "YOUR_GITHUB_TOKEN"]
}
}
}
All tools support two detail levels:
summary
(default) - Condensed informationdetailed
- Full API responseExample tool call:
{
"name": "github_repo_info",
"arguments": {
"repo_url": "https://github.com/microsoft/vscode",
"detail_level": "summary"
}
}
The server includes comprehensive error handling for:
MIT License
ildunari
A CLI for interacting with GitKraken APIs. Includes an MCP server via `gk mcp` that not only wraps GitKraken APIs, but also Jira, GitHub, GitLab, and more.
Manage GitHub issues as a Kanban board using the gh CLI.
Packs repository contents into a single file for AI consumption.
AI-powered GitHub project management with complete requirements traceability.
Integrate with the GitHub Enterprise API to access repositories, issues, pull requests, and workflows.
Manage GitHub Projects V2 using the GitHub GraphQL API.
Interact with the GitHub API for file operations, repository management, and search.
Make git commits on behalf of AI to track AI contributions in your codebase.
A server for Perforce (P4) version control operations, wrapping P4 commands for easier and more reliable use.
Interact with GitHub repositories, issues, pull requests, and more. Requires a GitHub personal access token.