GitHub MCP Server
@s2005
Standalone MCP server for GitHub API
Overview
What is GitHub MCP Server?
A Model Context Protocol server that provides direct access to the GitHub API, enabling file operations, repository management, search functionality, and more. It is designed for developers using MCP clients to automate GitHub workflows.
How to use GitHub MCP Server?
—
Key features of GitHub MCP Server
- Automatic branch creation when creating or updating files
- Comprehensive error handling with clear error messages
- Preserves Git history without force pushing
- Supports both single-file and multi-file operations
- Advanced search for code, issues/PRs, and users
Use cases of GitHub MCP Server
- Automate file creation and updates in repositories
- Manage issues and pull requests programmatically
- Search across code, issues, and users from an AI assistant
- Fork and create repositories without manual interaction
- Review and merge pull requests through natural language commands
FAQ from GitHub MCP Server
What tools does GitHub MCP Server provide?
It offers over 25 tools covering file operations (create, update, push, get contents), repository management (create, fork, branch), issue/PR handling (create, update, list, comment, review, merge), and advanced search (code, issues, users).
Does it support batch operations?
Yes, the push_files tool allows pushing multiple files in a single commit, supporting batch operations.
Can I search for code, issues, and users?
Yes, dedicated search tools (search_code, search_issues, search_users) support GitHub’s search syntax with filters like language, repository, labels, and account type.
How is branch creation handled?
When creating or updating files or pushing changes, branches are automatically created if they do not already exist.
What is the limit on search results?
The per_page parameter for search tools has a maximum value of 100, and pagination is supported via the page parameter.