GitHub MCP Server logo

GitHub MCP Server

by modelcontextprotocol

MCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more. This server allows you to interact with GitHub programmatically through a set of tools.

View on GitHub

Last updated: N/A

What is GitHub MCP Server?

The GitHub MCP Server is a tool that provides an interface for interacting with the GitHub API. It allows users to perform various actions such as creating/updating files, managing repositories, searching for code/issues/users, and more, all through a set of defined tools.

How to use GitHub MCP Server?

To use the server, you need to configure it with a GitHub Personal Access Token. You can then use the provided tools by sending requests with the required inputs. The README provides examples for using the server with Claude Desktop via Docker or NPX. Each tool has specific input parameters and returns data as described in the documentation.

Key features of GitHub MCP Server

  • Automatic Branch Creation

  • Comprehensive Error Handling

  • Git History Preservation

  • Batch Operations

  • Advanced Search

  • Comprehensive set of tools for interacting with GitHub API

Use cases of GitHub MCP Server

  • Automated repository management

  • Programmatic file creation and updates

  • Integrating GitHub search into applications

  • Automating issue and pull request workflows

  • Building tools that interact with GitHub repositories

FAQ from GitHub MCP Server

How do I authenticate with the GitHub API?

You need to create a GitHub Personal Access Token with the appropriate permissions (repo or public_repo) and configure the server with this token.

What permissions are required for the Personal Access Token?

The repo scope is required for full control of private repositories. If working only with public repositories, the public_repo scope is sufficient.

How do I use this server with Claude Desktop?

You can configure the server in your claude_desktop_config.json file using either Docker or NPX, as shown in the README examples.

What kind of search queries are supported?

The server supports GitHub's code, issues/PRs, and users search syntax. See the 'Search Query Syntax' section in the README for examples and links to GitHub's documentation.

Where can I find more information about GitHub's search syntax?

See GitHub's searching documentation for detailed search syntax.