GitHub MCP Server
by timbuchinger
GitHub MCP Server
A Model Context Protocol (MCP) server implementation for interacting with GitHub issues through Cline.
Features
- List GitHub issues from a repository
- Create new GitHub issues
- Error handling and validation
- Secure authentication via environment variables
Installation
- Clone the repository:
Copy
- Install dependencies with uv:
Copy
- Copy the environment template and configure your GitHub token:
Copy
Edit .env
and add your GitHub Personal Access Token:
Copy
To create a GitHub Personal Access Token:
- Go to GitHub Settings -> Developer settings -> Personal access tokens
- Generate a new token with
repo
scope - Copy the token and paste it in your
.env
file
Usage
Run the MCP server:
Copy
The server will start and expose two tools to Cline:
get_issues
Get a list of issues from a GitHub repository:
Copy
create_issue
Create a new issue in a GitHub repository:
Copy
Error Handling
The server handles common errors:
- Missing GitHub token
- Invalid repository name
- Missing required parameters
- GitHub API errors
Error responses include descriptive messages to help troubleshoot issues.
Development
The project uses uv for dependency management. To set up a development environment:
Copy
This server cannot be installed
Enables interaction with GitHub issues via the Model Context Protocol, allowing users to list and create issues with secure authentication.