GitHub MCP Agent
Allows querying GitHub repositories using natural language, providing tools to retrieve issues, pull requests, repository metadata, files, and search results via the GitHub REST API.
Click on "Install 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 AgentWhat's the most recent commit in facebook/react?"
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.
GitHub MCP Agent
Ask natural-language questions about GitHub repositories and get answers backed by live GitHub data. On Cloudflare, a Worker calls any LLM provider (Google, OpenAI, DeepSeek, Cloudflare, Groq, or a custom OpenAI-compatible API) with tool calling and implements GitHub tools through the REST API. Locally, you can still run the original Streamlit app that talks to the official GitHub MCP server over Docker.
This is a standalone packaging of the GitHub MCP agent from Shubhamsaboo/awesome-llm-apps. The original lives inside a large examples collection; this repository is a self-contained project you can clone, run, and deploy.
What it does
Point the app at any owner/repo, type a question, and get a structured answer backed by live GitHub data — not a generic LLM guess. Typical questions:
Which issues are labeled as bugs?
Which pull requests still need review?
What has merged recently?
How active is this repository?
The agent formats answers in markdown, including tables and links back to GitHub when they help.
Related MCP server: GitHub Tools MCP Server
Features
Natural-language queries over issues, pull requests, repository metadata, files, and search
Cloudflare Worker + static chat UI for hosted use (any LLM provider + GitHub REST)
Official GitHub MCP server (optional local path) via Docker for the original Streamlit app
Bring your own LLM key: Google, OpenAI, DeepSeek, Cloudflare Workers AI, Anthropic, Groq, OpenRouter, Mistral, xAI, Together, or any OpenAI-compatible endpoint
Sidebar auth, provider picker, and model field, query templates, and custom questions
Optional
.env/.dev.varsloading so you can keep keys out of the UI
Hosted architecture (Cloudflare)
Streamlit and the GitHub MCP Docker image cannot run on Cloudflare Pages/Workers. The hosted app is a Cloudflare-native rebuild of the same product:
┌─────────────────┐ POST /api/chat (SSE) ┌──────────────────┐
│ Static chat UI │ ────────────────────────────► │ Cloudflare Worker│
│ public/ │ │ Any LLM + tools │
└─────────────────┘ └────────┬─────────┘
│ GitHub REST
▼
┌──────────────────┐
│ api.github.com │
└──────────────────┘The Worker serves the chat UI from
public/and handles/api/*.Chat requests call your chosen LLM with GitHub tools equivalent to the MCP
repos,issues, andpull_requeststoolsets (plus files and search).The Worker executes those tools against the GitHub REST API using
GITHUB_TOKEN.Tokens can come from Wrangler secrets or from the sidebar (
X-LLM-Key,X-GitHub-Token). Sidebar values override secrets for that request.
Deploy on Cloudflare
Prerequisites
Node.js 18+
A Cloudflare account
An LLM API key from any provider (Google, OpenAI, DeepSeek, Cloudflare, Groq, …)
GitHub personal access token (not committed)
git clone https://github.com/MadanMohan0537/github-mcp-agent.git
cd github-mcp-agent
npm install
npx wrangler login
npx wrangler secret put LLM_API_KEY
npx wrangler secret put GITHUB_TOKEN
npx wrangler secret put LLM_PROVIDER
npm run deployAfter deploy, Wrangler prints a *.workers.dev URL. The UI and API are same-origin.
Local Cloudflare development
copy .dev.vars.example .dev.varsEdit .dev.vars with real keys (never commit it), then:
npm run devOpen the URL Wrangler prints (usually http://127.0.0.1:8787).
Variable | Required | Purpose |
| Yes (for queries) | Any provider key: Google, OpenAI, DeepSeek, Groq, Cloudflare, etc. |
| No |
|
| No | Model id for that provider |
| Custom / Cloudflare override | OpenAI-compatible base URL |
| Cloudflare Workers AI | Account id used to build the Workers AI URL |
| Yes (for queries) | Authenticates GitHub REST calls |
Provider aliases | No |
|
You can also type keys into the sidebar. The field is labeled LLM API key, not OpenAI-only. Sidebar values are sent only to this Worker as request headers.
Token scopes:
Public repositories:
public_repois enoughPrivate repositories:
repo
Optional local path: Streamlit + GitHub MCP Docker
The original Python app is unchanged. It uses Agno, Streamlit, and ghcr.io/github/github-mcp-server.
┌─────────────────┐ natural-language query ┌──────────────────┐
│ Streamlit UI │ ───────────────────────────────► │ Agno Agent │
│ github_agent.py│ │ (any LLM) │
└─────────────────┘ └────────┬─────────┘
│ MCP tools
▼
┌──────────────────┐
│ Docker container │
│ github-mcp-server│
└────────┬─────────┘
│ GitHub API
▼
┌──────────────────┐
│ api.github.com │
└──────────────────┘Prerequisites
Requirement | Notes |
Python 3.10+ | Developed against 3.12 |
Must be running; the GitHub MCP server is a container | |
LLM API key | Google, OpenAI, DeepSeek, Cloudflare, Groq, or any OpenAI-compatible provider |
GitHub personal access token |
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
copy .env.example .env
streamlit run github_agent.pyOr .\run.ps1 / run.bat after the venv is installed. Open the URL Streamlit prints (usually http://localhost:8501).
First Docker pull of ghcr.io/github/github-mcp-server can take a minute. Queries time out after 120 seconds.
Example usage
Repository: Shubhamsaboo/awesome-llm-apps
Issues
Find issues labeled as bugs in Shubhamsaboo/awesome-llm-appsWhat issues are being actively discussed?
Pull requests
What PRs need review?Show me recent merged PRs
Repository
Show repository health metricsShow repository activity patternsAnalyze code quality trends
Keep each question focused on one area (issues, PRs, or repo stats). Broad prompts take longer and produce noisier answers.
Project layout
github-mcp-agent/
├── public/ # Cloudflare static chat UI
├── src/ # Worker: multi-provider LLM agent + GitHub REST tools
├── wrangler.toml # Workers + assets project
├── package.json # npm run dev / npm run deploy
├── github_agent.py # Optional local Streamlit + MCP Docker app
├── requirements.txt
├── .env.example
├── .dev.vars.example
├── LICENSE # Apache License 2.0 (from the original project)
├── NOTICE
└── README.mdTroubleshooting
Symptom | What to check |
| Sidebar key, |
| Sidebar token, |
Worker deploy asks you to log in | Run |
Docker errors / | Only needed for the Streamlit path; install Docker and start the daemon |
Timeout / truncated answers | Narrow the query; hosted tool results are clipped to keep Worker/LLM limits |
| Streamlit path: install from this repo’s |
401 / permission errors from GitHub | Token expired, or missing |
Attribution
Based on GitHub MCP Agent in Shubhamsaboo/awesome-llm-apps, specifically:
mcp_ai_agents/github_mcp_agent
Upstream tutorial: Build an MCP GitHub agent in less than 50 lines of code.
This repository is an independent standalone checkout with documentation, a Cloudflare Workers host, and small packaging changes. It is not an official GitHub or Cloudflare product.
License
The original awesome-llm-apps project is licensed under the Apache License 2.0. This derivative keeps that license. See NOTICE for source attribution.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that enables analyzing and querying GitHub repositories through the GitHub Chat API, allowing users to index repositories and ask questions about their code, architecture and tech stack.286MIT
- Flicense-quality-maintenanceModel Context Protocol server that enables interaction with GitHub repositories, issues, pull requests, and search functionality through natural language.1
- Flicense-qualityDmaintenanceA production-ready server featuring over 28 tools for comprehensive GitHub analysis, including repository metadata, issue tracking, and workflow monitoring. It enables users to search repositories, analyze contributor activity, and inspect codebase health through natural language.1
- Flicense-qualityDmaintenanceA Model Context Protocol (MCP) server that connects Claude AI directly to the GitHub API, enabling natural language queries for live repository data, issues, PRs, and contributions.1
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
GibsonAI MCP server: manage your databases with natural language
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
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/MadanMohan0537/github-mcp-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server