GitHub MCP Server logo

GitHub MCP Server

by MissionSquad

This MCP Server provides access to the GitHub API, enabling file operations, repository management, and search functionality. It allows users to interact with GitHub repositories programmatically through a standardized interface.

View on GitHub

Last updated: N/A

What is GitHub MCP Server?

The GitHub MCP Server is a server that exposes the GitHub API through the Model Context Protocol (MCP), allowing applications to interact with GitHub repositories, issues, pull requests, and users programmatically.

How to use GitHub MCP Server?

To use the server, you need a GitHub Personal Access Token (PAT) with the appropriate permissions. Configure the server using Docker or NPX, providing the PAT as an environment variable. Then, use the available tools (create_or_update_file, push_files, search_repositories, etc.) by sending requests to the server with the required inputs.

Key features of GitHub MCP Server

  • Automatic Branch Creation

  • Comprehensive Error Handling

  • Git History Preservation

  • Batch Operations

  • Advanced Search

Use cases of GitHub MCP Server

  • Automated file creation and updates in repositories

  • Batch pushing of multiple files to a repository

  • Searching for repositories, code, issues, and users

  • Creating and managing GitHub issues and pull requests

  • Forking repositories and creating new branches

FAQ from GitHub MCP Server

How do I create a GitHub Personal Access Token (PAT)?

Go to GitHub Settings > Developer settings > Personal access tokens and create a new token with the necessary scopes (e.g., 'repo' for full control of private repositories or 'public_repo' for public repositories).

What permissions are required for the PAT?

The required permissions depend on the operations you want to perform. For full access to private repositories, use the 'repo' scope. For public repositories, the 'public_repo' scope is sufficient.

How do I configure the server with Docker?

Use the provided Docker configuration in claude_desktop_config.json. Ensure you replace <YOUR_TOKEN> with your actual GitHub Personal Access Token.

How do I configure the server with NPX?

Use the provided NPX configuration in claude_desktop_config.json. Ensure you replace <YOUR_TOKEN> with your actual GitHub Personal Access Token.

What search syntax can I use?

You can use GitHub's search syntax for code, issues, and users. Refer to GitHub's searching documentation for detailed information on available search operators and filters.