@cloud9-labs/mcp-github
Provides tools for interacting with GitHub's API, enabling management of repositories, issues, pull requests, branches, file contents, search, and commit history.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@cloud9-labs/mcp-github Show me my recent pull requests"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@cloud9-labs/mcp-github
MCP (Model Context Protocol) server for GitHub API integration. This server provides comprehensive tools for interacting with GitHub repositories, issues, pull requests, branches, and code search through a unified interface.
Features
Repository Management: List, get, and create repositories
Issue Tracking: List, get, create, and update GitHub issues
Pull Requests: List, get, and create pull requests
Branch Management: List and manage repository branches
File Content: Retrieve file contents from repositories
Search: Search repositories and code across GitHub
Commit History: Access commit information and history
Related MCP server: GitHub MCP Agent Server
Installation
Prerequisites
Node.js 18.0 or higher
A GitHub Personal Access Token
Setup Instructions
Create a GitHub Personal Access Token:
Click "Generate new token" (choose "Tokens (classic)")
Grant the following scopes:
repo- Full control of private repositoriesread:user- Read user profile data
Copy the generated token (you won't be able to see it again!)
Configure Claude Desktop:
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@cloud9-labs/mcp-github"],
"env": {
"GITHUB_TOKEN": "your-personal-access-token-here"
}
}
}
}Config file locations:
macOS/Linux:
~/.config/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop to load the new MCP server.
Tools
Tool | Description | Parameters |
| List repositories for the authenticated user |
|
| Get details of a specific repository |
|
| Create a new repository for the authenticated user |
|
| List issues for a repository |
|
| Get details of a specific issue |
|
| Create a new issue in a repository |
|
| Update an existing issue |
|
| List pull requests for a repository |
|
| Get details of a specific pull request |
|
| Create a new pull request |
|
| List branches in a repository |
|
| Get the contents of a file in a repository |
|
| Search for repositories on GitHub |
|
| Search for code across GitHub repositories |
|
| List commits in a repository |
|
Usage Examples
List Your Repositories
User: "Show me my GitHub repositories"
Claude will use: github_list_repos with pagination parameters
Response: A formatted list of your repositories with key informationSearch for Repositories
User: "Find popular Python repositories related to AI"
Claude will use: github_search_repos with query and sort parameters
Response: A curated list of matching repositoriesCreate an Issue
User: "Create a new issue in my-project repository titled 'Bug: Login failure'"
Claude will use: github_create_issue with owner, repo, title, and body
Response: Confirmation with the new issue details including issue numberGet Pull Request Details
User: "Show me the details of pull request #42 in owner/repo"
Claude will use: github_get_pull_request
Response: Complete PR information including status, reviews, and commitsView File Contents
User: "Show me the contents of package.json from owner/repo"
Claude will use: github_get_file_content with path parameter
Response: File contents with optional base64 decodingEnvironment Variables
Variable | Required | Description |
| Yes | GitHub Personal Access Token for API authentication |
Authentication
The server uses GitHub's REST API v3 with personal access token authentication. Make sure your token has the appropriate scopes:
repo- For repository access and managementread:user- For reading user profile information
Security Note: Never commit your GITHUB_TOKEN to version control. Use environment variables or configuration files that are in .gitignore.
Development
Build from Source
git clone https://github.com/cloud9-labs/mcp-github.git
cd mcp-github
# Install dependencies and build
npm run buildWatch Mode (for development)
npm run devThis will continuously compile TypeScript as you make changes.
Error Handling
The server provides detailed error messages for:
Authentication failures (invalid or expired token)
Rate limiting (GitHub API rate limits)
Resource not found (non-existent repositories, issues, etc.)
Validation errors (invalid parameters)
Network errors (connectivity issues)
All errors are returned in a structured format with the isError flag set to true.
GitHub API Rate Limits
Authenticated requests: 5,000 requests per hour
Search API: 30 requests per minute
GraphQL API: 5,000 points per hour
Monitor your rate limit usage to avoid hitting these limits during intensive operations.
Troubleshooting
"Error: Invalid GITHUB_TOKEN"
Verify your token is correctly set in the environment
Ensure the token hasn't expired in GitHub settings
Check that the token has the required scopes (
repo,read:user)
"Error: Repository not found"
Verify the repository name and owner are correct
Ensure your token has access to private repositories (if applicable)
Check repository visibility settings
"Error: Rate limit exceeded"
Wait for the rate limit to reset (usually 1 hour)
Reduce the frequency of requests
Use pagination with
per_pageandpageparameters efficiently
MCP Server Not Loading
Verify the MCP server is correctly configured in
claude_desktop_config.jsonCheck that your
GITHUB_TOKENenvironment variable is setRestart Claude Desktop after making configuration changes
Check the Claude logs for detailed error messages
API Reference
For detailed GitHub API documentation, visit:
Support
For issues, questions, or contributions:
GitHub Issues: cloud9-labs/mcp-github/issues
GitHub Discussions: cloud9-labs/mcp-github/discussions
License
MIT
Changelog
Version 0.1.0
Initial release with 15 core tools:
Repository management (list, get, create)
Issue management (list, get, create, update)
Pull request management (list, get, create)
Branch operations (list)
File content retrieval
Repository and code search
Commit history access
Available Tools
15 toolsgithub_create_issueB
Create a new issue in a repository
Inputs: repo (required), owner (required), title (required), body, +2 more.
github_create_pull_requestB
Create a new pull request
Inputs: base (required), head (required), repo (required), owner (required), +3 more.
github_create_repoB
Create a new repository for the authenticated user
Inputs: name (required), private, auto_init, description.
github_get_file_contentC
Get the contents of a file in a repository
Inputs: path (required), repo (required), owner (required), ref.
github_get_issueB
Get details of a specific issue
Inputs: repo (required), owner (required), issue_number (required).
github_get_pull_requestB
Get details of a specific pull request
Inputs: repo (required), owner (required), pull_number (required).
github_get_repoC
Get details of a specific repository
Inputs: repo (required), owner (required).
github_list_branchesB
List branches in a repository
Inputs: repo (required), owner (required), page, per_page.
github_list_commitsB
List commits in a repository
Inputs: repo (required), owner (required), sha, page, +3 more.
github_list_issuesB
List issues for a repository
Inputs: repo (required), owner (required), page, state, +2 more.
github_list_pull_requestsB
List pull requests for a repository
Inputs: repo (required), owner (required), base, head, +3 more.
github_list_reposC
List repositories for the authenticated user
Inputs: page, sort, type, per_page.
github_search_codeC
Search for code across GitHub repositories
Inputs: query (required), page, sort, order, +1 more.
github_search_reposC
Search for repositories on GitHub
Inputs: query (required), page, sort, order, +1 more.
github_update_issueC
Update an existing issue
Inputs: repo (required), owner (required), issue_number (required), body, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a distinct resource and action (e.g., list_commits vs. create_issue), and even similar tools like list_repos vs. search_repos are clearly differentiated by scope. There is no overlap or ambiguity among the tool purposes.
All tool names follow a uniform pattern: 'github_' prefix followed by a verb_noun structure (e.g., github_create_repo, github_list_pull_requests). The naming is perfectly consistent and predictable.
With 15 tools, the server covers the primary GitHub resources (repos, issues, PRs, commits, branches, files, search) without being bloated. Each tool serves a clear purpose in the GitHub domain, making the count well-scoped.
The surface covers core CRUD for issues (create/get/update/list) and read operations for repos, PRs, commits, branches, and file content. Minor gaps exist (e.g., no PR update/merge, no file write, no commit detail), but these are not fatal and can be worked around via other tools.
Maintenance
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
GitHub MCP — wraps the GitHub public REST API (no auth required for public endpoints)
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Create, deploy, and operate MCP servers directly from your GitHub repositories.
Related MCP Servers
- -licenseNot gradedqualityBmaintenanceMCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.127,455 npm91,952MIT
- AlicenseBqualityCmaintenanceMCP server that exposes GitHub operations as tools for AI agents, enabling code search, issue management, and PR review.1236 PyPIMIT
- AlicenseNot gradedqualityNot gradedmaintenanceMCP server for the GitHub API, enabling file operations, repository management, search functionality, issues, pull requests, and more.295 npmMIT
- FlicenseAqualityDmaintenanceMCP server that wraps GitHub REST API to allow AI agents to search repositories, get repository details, list issues, and read READMEs.4-