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.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Ask any GitHub repository a question. Get source-backed answers.
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.3323 npm4MIT
- AlicenseAqualityDmaintenanceEnables interaction with GitHub repositories, issues, pull requests, code search, branches, and GitHub Actions workflows.817 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with GitHub API for repository management, commits, pushes, and pulls through natural language.456 npm1ISC
- FlicenseNot gradedqualityDmaintenanceEnables users to interact with GitHub via natural language requests, executing API calls and returning structured responses.-