About GitHub MCP Server
GitHub MCP Server connects AI models to GitHub through the GitHub API. It supports repository, issue, pull request, file, and branch operations with Personal Access Token authentication.
Key features
- 01GitHub API access
- 02Personal Access Token authentication
- 03Repository management
- 04Issue and pull request handling
- 05File and branch operations
Use cases
- 01Reviewing and managing GitHub repositories
- 02Handling issues and pull requests
- 03Working with repository files and branches
MCP support
Exposes GitHub API operations to MCP clients, including repository, issue, pull request, file, and branch management.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
26Saved tool list · updated 3w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| owner | string | Yes | Repository owner (username or organization) |
| repo | string | Yes | Repository name |
| path | string | Yes | Path where to create/update the file |
| content | string | Yes | Content of the file |
| message | string | Yes | Commit message |
| branch | string | Yes | Branch to create/update the file in |
| sha | string | No | SHA of the file being replaced (required when updating existing files) |
Details
From the project READMEGitHub MCP Server
This repository demonstrates the implementation and usage of the Model Context Protocol (MCP) server for GitHub integration.
Overview
The GitHub MCP Server provides a standardized way to interact with GitHub's API using the Model Context Protocol. It enables seamless integration between AI models and GitHub repositories, allowing automated interactions with GitHub's features.
Features
- GitHub API Integration
- Authentication using Personal Access Tokens
- Repository Management
- Issue and Pull Request Handling
- File Operations
- Branch Management
Setup
- Install the MCP GitHub server package:
npm install @modelcontextprotocol/server-github
- Configure your GitHub Personal Access Token in environment variables:
export GITHUB_PERSONAL_ACCESS_TOKEN=your_token_here
Usage
Start the MCP GitHub server:
npx @modelcontextprotocol/server-github
Configuration
The server can be configured through the claude_desktop_config.json file, which should include the necessary GitHub authentication tokens and server settings.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.