GitHub MCP Server
Exposes GitHub repository actions as OpenAPI endpoints, allowing for listing pull requests and issues, creating new issues, and merging pull requests.
Enables deployment to Google Cloud Run for hosting the MCP server in a cloud environment.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitHub MCP Serverlist open pull requests for the MCP repository"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP: GitHub MCP Server
This project exposes GitHub repository actions (like listing PRs, issues, creating issues, and merging PRs) as OpenAPI endpoints using FastAPI.
It is designed to be deployed as a Managed Control Plane (MCP) server for use with an LLM agent orchestration framework.
Features
List open pull requests for a repo
List open issues
Create new issues
Merge pull requests
Related MCP server: GitHub MCP Server
Tech Stack
Python 3.12
FastAPI
Docker
Google Cloud Run
GitHub REST API
Project Structure
MCP/
├── server.py
├── requirements.txt
├── Dockerfile
├── .gitignore
├── .env (NOT committed, use Cloud Run env vars)Setup & Run Locally
Clone the repo:
git clone https://github.com/ShyaM-SqS/MCP.git cd MCPCreate a virtual environment:
python -m venv .venvActivate your environment:
# Windows PowerShell .venv\Scripts\Activate # Or on Mac/Linux source .venv/bin/activateInstall dependencies:
pip install -r requirements.txtCreate a
.envfile with your GitHub token:GITHUB_TOKEN=<your_personal_access_token>Run the server locally:
uvicorn server:app --reload --host 0.0.0.0 --port 8080
Deployment
Build and push your container image to Artifact Registry, Docker Hub, or Cloud Build.
Deploy to Google Cloud Run.
Pass
GITHUB_TOKENsecurely as an environment variable in your Cloud Run service configuration.
License
Apache 2.0
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Manage repositories, users, releases, and automate GitHub workflows
Read and write KukGit repositories, files, issues and pull requests from an AI assistant.
Related MCP Servers
- AlicenseBqualityFmaintenanceEnables LLMs to interact with GitHub issues by providing details as tasks, allowing for seamless integration and task management through GitHub's platform.118 npm14MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with GitHub through the GitHub API, supporting file operations, repository management, advanced search, and issue tracking with comprehensive error handling and automatic branch creation.256 npm1ISC
- AlicenseCqualityFmaintenanceAn MCP server that enables AI assistants to manage GitHub Actions workflows by providing tools for listing, viewing, triggering, canceling, and rerunning workflows through the GitHub API.918 npm41MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables LLM agents to manage GitHub repositories, issues, pull requests, branches, files, and releases through a standardized interface.256 npm8Apache 2.0