modelcontextprotocol/server-github logo

modelcontextprotocol/server-github

Free

官方参考实现,集成 GitHub API,管理仓库、文件、PR 和 Issues。

FreeFree tier
Type
Open Source

About modelcontextprotocol/server-github

The GitHub MCP Server is an open-source server that integrates the GitHub API through the Model Context Protocol (MCP), enabling file operations, repository management, search functionality, and more. It supports automatic branch creation, comprehensive error handling, git history preservation, batch operations (both single and multi-file), and advanced search across code, issues/PRs, and users. Available tools include create_or_update_file, push_files, search_repositories, create_repository, get_file_contents, create_issue, and create_pull_request. Note: This repository has been archived; development continues at github/github-mcp-server.

Key Features

Automatic branch creation when creating/updating files or pushing changes
Comprehensive error handling with clear error messages
Git history preservation without force pushing
Batch operations for single-file and multi-file commits
Advanced search for code, issues/PRs, and users
Tools for files, repos, issues, pull requests, and search

Pros & Cons

Pros
  • Open source and free to use
  • Automatic branch creation simplifies workflows
  • Comprehensive error handling improves reliability
  • Preserves git history without force pushing
  • Supports batch operations for efficiency
  • Advanced search capabilities across code, issues, and users
Cons
  • This repository is archived; active development moved to github/github-mcp-server
  • Requires a GitHub personal access token for authentication
  • Limited to the set of tools defined (files, repos, issues, PRs, search)

Best For

Manage GitHub repositories programmatically via MCP clientsAutomate file creation, updating, and batch commitsCreate and manage issues and pull requests from AI assistantsSearch GitHub repositories, code, and usersIntegrate GitHub workflows with MCP-enabled tools

FAQ

What tools does the GitHub MCP Server provide?
It provides tools for file operations (create_or_update_file, push_files, get_file_contents), repository management (search_repositories, create_repository), issues (create_issue), and pull requests (create_pull_request).
Is the GitHub MCP Server still maintained?
This specific repository (modelcontextprotocol/servers-archived) has been archived. Development has moved to the new repository at github/github-mcp-server.