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
An MCP server for Bitbucket that provides pull request context to LLMs for automated code reviews.
A server for GitHub project management with advanced resource management, capacity planning, and workload optimization capabilities.
Integrates with GitHub, allowing LLMs to interact with repositories, issues, and pull requests via the GitHub API.
Manage GitHub Projects V2 using the GitHub GraphQL API.
Interact with GitHub repositories, including issues, pull requests, commits, releases, and actions.
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.
Interact with the GitHub API for file operations, repository management, and search.
Gitee API integration, repository, issue, and pull request management, and more.
Integrate with the GitHub Enterprise API to access repositories, issues, pull requests, and workflows.
Integrates with GitHub APIs for advanced automation and interaction, supporting both remote and local deployments.