GitHub MCP Server
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
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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ShyaM-SqS/MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server