GitHub MCP Server
Allows interaction with Dependabot alerts, secret scanning alerts, code scanning alerts, and SARIF summaries.
Provides tools for interacting with GitHub, enabling management of pull requests, code files, reviews, branches, and repository metadata.
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 Servershow me my open pull requests"
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 Server
FastMCP server for GitHub pull requests, code, and reviews.
Features
Repository/account helpers: authenticated user, repository metadata, branches, branch creation, ref comparison.
Pull requests: list, get, create, update, merge, changed files, commits, raw diff.
Code: read files, list directories, search code, create/update text files, delete files.
Reviews: list reviews, list review comments, list conversation comments, add conversation comments, create/submit/dismiss reviews, add file-level review comments, request reviewers.
Related MCP server: mcp-server-github
Create .env file
GITHUB_TOKEN=github_pat_or_personal_access_token_here
GITHUB_OWNER=owner-or-org
GITHUB_REPO=repo-name
# Optional
GITHUB_API_URL=https://api.github.com
GITHUB_API_VERSION=2022-11-28GITHUB_OWNER and GITHUB_REPO are optional if every tool call passes owner and repo.
For fine-grained GitHub tokens, grant only the permissions you need. Common permissions:
Pull requests: read/write
Contents: read/write
Metadata: read
Issues: read/write, for pull request conversation comments
Create a virtual environment
cd PROJECT_FOLDER
python3 -m venv .venvActivate it
source .venv/bin/activateInstall dependencies
pip install fastmcp requests python-dotenvFreeze the requirements
pip freeze > requirements.txtTest it
python3 server.pyYou should see:
Starting MCP server 'github-mcp-server' with transport 'stdio'
Configure OpenCode
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"github": {
"type": "local",
"command": [
"PATH_TO_YOUR_MCP_PROJECT/.venv/bin/python",
"PATH_TO_YOUR_MCP_PROJECT/server.py"
],
"enabled": true
}
}
}Docker / HTTP mode
docker compose up --buildHTTP mode listens on port 8002.
Useful Next Features
Issues and labels: create issues, triage labels, milestone assignment, linked PR discovery.
Checks and CI: list check suites/runs, rerun failed checks, summarize failing annotations.
Actions workflows: list workflow runs, trigger
workflow_dispatch, download artifacts.Releases and tags: draft releases, generate changelog notes, compare release refs.
Branch protection: inspect required checks, review rules, and merge restrictions.
Security: Dependabot alerts, secret scanning alerts, code scanning alerts, SARIF summaries.
Repository admin: collaborators, teams, permissions, rulesets, webhooks.
Notifications: list assigned/review-requested items across repositories.
Project planning: GitHub Projects items, statuses, and field updates.
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
- AlicenseBqualityDmaintenanceEnables interaction with GitHub repositories through the GitHub API, allowing file operations, repository management, issue tracking, and code search through natural language commands.Last updated33284MIT
- AlicenseAqualityCmaintenanceEnables interaction with GitHub repositories, issues, pull requests, code search, branches, and GitHub Actions workflows.Last updated8272MIT
- Alicense-qualityDmaintenanceEnables interaction with GitHub API for repository management, commits, pushes, and pulls through natural language.Last updated5001ISC
- Flicense-qualityBmaintenanceEnables users to interact with GitHub via natural language requests, executing API calls and returning structured responses.Last updated
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
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/damijanc/github-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server