GitHub MCP Server
@s2005
关于 GitHub MCP Server
Standalone MCP server for GitHub API
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-github-server-s2005": {
"command": "docker",
"args": [
"build",
"-t",
"mcp/github",
"-f",
"Dockerfile",
"."
]
}
}
}工具
40`owner` (string): Repository owner (username or organization)
File content and commit details
`owner` (string): Repository owner
Updated branch reference
`query` (string): Search query
Repository search results
`name` (string): Repository name
Created repository details
`owner` (string): Repository owner
File/directory contents
`owner` (string): Repository owner
Created issue details
`owner` (string): Repository owner
Created pull request details
`owner` (string): Repository owner
Forked repository details
`owner` (string): Repository owner
Created branch reference
`owner` (string): Repository owner
List of commits
`owner` (string): Repository owner
Github Issue object & details
`owner` (string): Repository owner
Pull request details including diff and review status
`owner` (string): Repository owner
Array of pull request details
`owner` (string): Repository owner
Created review details
`owner` (string): Repository owner
Merge result details
`owner` (string): Repository owner
Array of changed files with patch and status details
`owner` (string): Repository owner
Combined status check results and individual check details
`owner` (string): Repository owner
Success message when branch is updated
`owner` (string): Repository owner
Array of pull request review comments with details like the comment text, author, and location in the diff
`owner` (string): Repository owner
Array of pull request reviews with details like the review state (APPROVED, CHANGES_REQUESTED, etc.), reviewer, and review body
概览
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.
版本控制 分类下的更多 MCP 服务器
MCP Atlassian
soopersetMCP server for Atlassian tools (Confluence, Jira)
Bitbucket MCP
MatanYeminiBitbucket MCP - A Model Context Protocol (MCP) server for integrating with Bitbucket Cloud and Server APIs
GitHub Stars MCP Server
ccbikaiA Cloudflare-powered MCP (Model Context Protocol) Server that allows you to search and query your GitHub starred repositories using natural language.
🚀 GitLab MR MCP
kopfrechnerInteract seamlessly with GitLab repositories to manage merge requests and issues. Fetch details, add comments, and streamline your code review process with ease.
Linear MCP Server
jerhadfA server that integrates Linear's project management system with the Model Context Protocol (MCP) to allow LLMs to interact with Linear.
评论