G

Github MCP Server Drm

The GitHub MCP Server is a server that provides a GitHub API interface, supporting file operations, repository management, search functions, etc. It has features such as automatic branch creation, error handling, and Git history maintenance.
2 points
16

What is the GitHub MCP Server?

The GitHub MCP Server is a powerful tool that allows you to manage and operate GitHub repositories through a simple interface. You can create files, push code, search for code or users, and manage pull requests and issues.

How to use the GitHub MCP Server?

Simply install and configure your personal access token, then use the provided API to perform the required operations. For example, you can easily create new files or update existing ones.

Applicable scenarios

Suitable for scenarios where developers need to interact with GitHub repositories frequently, such as automation scripts and CI/CD pipeline integration.

Main features

Automatic branch creationWhen creating or updating a file, if the specified branch does not exist, it will be automatically created.
Comprehensive error handlingProvides clear and easy-to-understand error messages to help quickly resolve issues.
Preserve Git historyAll operations will preserve the correct Git history to avoid force pushing.
Support for batch operationsSupports both single-file and multi-file one-time commits.
Advanced search functionSupports comprehensive search for code, issues/PRs, and users.

Advantages and limitations

Advantages
Easy to use without in - depth knowledge of Git command - line.
Supports code search in multiple languages.
Flexible permission control to ensure security.
Limitations
Requires a valid GitHub personal access token.
Some advanced functions may be limited by the rate limit of the GitHub API.

How to use

Get a GitHub personal access token
Go to the GitHub settings page to generate a personal access token with appropriate permissions.
Configure environment variables
Add the generated token to your environment variables.
Run the MCP server
Start the MCP server using Docker or NPX.

Usage examples

Create a new fileCreate a new README file in the specified repository.
Search for Python codeSearch for repositories on GitHub that contain Python code.

Frequently Asked Questions

How can I generate a GitHub personal access token?
Can I push multiple files in batches?

Related resources

GitHub official documentation
GitHub official documentation, providing more detailed API information.
GitHub MCP Server GitHub repository
Source code and more related information of the GitHub MCP Server.
Installation
Copy the following command to your Client for configuration
{
  "mcpServers": {
    "github": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GITHUB_PERSONAL_ACCESS_TOKEN",
        "mcp/github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
      }
    }
  }
}

{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.
Featured MCP Services
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
141
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
86
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
1.7K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
830
4.3 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
6.7K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
567
5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
754
4.8 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
284
4.5 points
AIbase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIbase