KastienDevOp/GithubMCP
If you are the rightful owner of GithubMCP and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server that provides comprehensive GitHub API integration for AI assistants.
GitHub MCP Server
A Model Context Protocol (MCP) server that provides comprehensive GitHub API integration for AI assistants. This server enables full interaction with GitHub repositories, issues, pull requests, and more through MCP tools.
Features
Repository Management
list_repositories- List repositories for any GitHub userlist_my_repositories- List repositories for the authenticated user (including private)create_repository- Create a new repositoryget_repository- Get detailed information about a repositoryupdate_repository- Update repository settings (name, description, visibility)delete_repository- Delete a repository
Branch and Commit Management
list_branches- List branches in a repositorylist_commits- List commits in a repositorylist_repository_contents- List contents of a repository directoryget_repository_content- Get content of a file in a repository
Fork Management
list_forks- List forks of a repositorycreate_fork- Create a fork of a repository
Collaborator Management
list_collaborators- List collaborators of a repositoryadd_collaborator- Add a collaborator to a repositoryremove_collaborator- Remove a collaborator from a repository
Issue Tracking
list_issues- List issues in a repositorycreate_issue- Create a new issueupdate_issue- Update an issueclose_issue- Close an issuelist_issue_comments- List comments on an issuecreate_issue_comment- Create a comment on an issue
Pull Request Management
list_pull_requests- List pull requests in a repositorycreate_pull_request- Create a pull requestupdate_pull_request- Update a pull requestmerge_pull_request- Merge a pull requestlist_pull_request_reviews- List reviews on a pull requestcreate_pull_request_review- Create a review on a pull request
Release Management
list_releases- List releases in a repositorycreate_release- Create a release
Search and Discovery
search_repositories- Search for repositoriessearch_issues- Search for issues and pull requests
Project Management
list_labels- List labels in a repositorycreate_label- Create a label in a repositorylist_milestones- List milestones in a repositorycreate_milestone- Create a milestone in a repository
Webhooks and Automation
list_webhooks- List webhooks in a repositorycreate_webhook- Create a webhook in a repositorylist_workflows- List GitHub Actions workflows in a repositorylist_workflow_runs- List workflow runs for a repository
Social Features
star_repository- Star a repositoryunstar_repository- Unstar a repositorylist_notifications- List notifications for the authenticated usermark_notifications_read- Mark notifications as read
Repository Analytics
get_repository_languages- Get language breakdown for a repositoryget_repository_contributors- Get contributors for a repository
User and System Information
get_authenticated_user- Get information about the authenticated userget_rate_limit- Get current rate limit status
Setup
Prerequisites
- Node.js (v16 or higher)
- A GitHub Personal Access Token with appropriate permissions
Installation
- Clone this repository:
git clone https://github.com/KastienDevOp/GithubMCP.git
cd GithubMCP
- Install dependencies:
npm install
- Build the server:
npm run build
Configuration
Create a GitHub Personal Access Token:
- Go to GitHub Settings > Developer settings > Personal access tokens > Tokens (classic)
- Generate a new token with the following scopes:
repo(Full control of private repositories)public_repo(Access public repositories)read:org(Read org and team membership)user(Update all user data)
MCP Configuration
Add the server to your MCP settings. For Cline/VSCode, edit:
/home/kastien/.config/Windsurf/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
"mcpServers": {
"github": {
"command": "node",
"args": ["/path/to/GithubMCP/build/index.js"],
"env": {
"GITHUB_TOKEN": "your_github_token_here"
},
"disabled": false,
"autoApprove": []
}
}
}
Replace /path/to/GithubMCP with the actual path to your cloned repository.
Usage
Once configured, the GitHub MCP server will be available in your AI assistant. You can use commands like:
- "List my GitHub repositories"
- "Create a new repository called 'my-project'"
- "List issues in the KastienDevOp/my-repo repository"
- "Create an issue titled 'Bug fix needed' in KastienDevOp/my-repo"
Development
For development with auto-rebuild:
npm run watch
Debugging
Use the MCP Inspector for debugging:
npm run inspector
License
This project is open source. See the license file for details.