mcp-github-server

s2005/mcp-github-server

3.1

If you are the rightful owner of mcp-github-server 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.

MCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.

The GitHub MCP Server is a standalone implementation extracted from the modelcontextprotocol/servers project. It provides a comprehensive interface for interacting with the GitHub API, allowing users to perform a wide range of operations such as file management, repository creation, issue tracking, and advanced search functionalities. The server is designed to facilitate seamless integration with GitHub, offering features like automatic branch creation, comprehensive error handling, and batch operations. It supports both single-file and multi-file operations, ensuring that Git history is preserved without the need for force pushing. Additionally, the server includes advanced search capabilities, enabling users to search for code, issues, pull requests, and users across GitHub repositories. The server is highly configurable and can be used with various platforms, including Docker and NPX, making it a versatile tool for developers and organizations looking to streamline their GitHub workflows.

Features

  • Automatic Branch Creation: When creating/updating files or pushing changes, branches are automatically created if they don't exist.
  • Comprehensive Error Handling: Clear error messages for common issues.
  • Git History Preservation: Operations maintain proper Git history without force pushing.
  • Batch Operations: Support for both single-file and multi-file operations.
  • Advanced Search: Support for searching code, issues/PRs, and users.

Tools

  1. create_or_update_file

    Create or update a single file

  2. push_files

    Push multiple files

  3. search_repositories

    Search for GitHub repository

  4. create_repository

    Create a new repository

  5. get_file_contents

    Get file/directory content

  6. create_issue

    Create a new question

  7. create_pull_request

    Create a new PR

  8. fork_repository

    Forked warehouse

  9. create_branch

    Create a new branch

  10. list_issues

    List and filter questions

  11. update_issue

    Update question

  12. add_issue_comment

    Add a question comment

  13. search_code

    Search for code

  14. search_issues

    Search questions and PR

  15. search_users

    Search for users

  16. list_commits

    Get branch commit

  17. get_issue

    Get the question content

  18. get_pull_request

    Get PR details

  19. list_pull_requests

    List and filter PR

  20. create_pull_request_review

    Create PR review

  21. merge_pull_request

    Merge PR

  22. get_pull_request_files

    Get PR Change File

  23. get_pull_request_status

    Get PR status check

  24. update_pull_request_branch

    Update PR branch

  25. get_pull_request_comments

    Get PR Reviews

  26. get_pull_request_reviews

    Get PR Review