GitHub Security Agent MCP
Allows retrieving open Dependabot alerts with patched versions and incorporating them into security summaries and conservative remediation plans.
Provides tools for listing GitHub repositories, summarizing security counts, fetching Dependabot alerts, creating remediation plans, and executing security remediation runs on GitHub repositories.
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 Security Agent MCPAudit octocat/hello-world for security alerts and suggest conservative fixes."
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 Security Agent MCP
A community-friendly, agentic GitHub security auditing and remediation platform with multiple ways to investigate, plan, fix and verify security issues.
Future roadmap: See FUTURE_PLAN.md for the planned AI-assisted security evaluation pipeline, including LLM analysis, remediation planning, deterministic execution, verification, LLM-as-Judge evaluation and quality/safety scoring.
Features and ways to use it
This project is intentionally not a single security script. The same security issue can be handled through different interfaces depending on how much automation, AI reasoning or integration you need.
Capability | What it provides | Best for |
Claude Code | Interactive agentic security analysis and remediation | Local developers |
Claude Code | Non-interactive Claude execution | CI/CD and automation |
Claude Skills | Reusable security-audit workflow instructions | Consistent agent behaviour |
Claude Agents | Dedicated repository, testing and review roles | Multi-agent remediation |
Claude Hooks | Pre-change and post-change safety gates | Controlled changes |
Cursor Rules | Security workflow guidance inside Cursor | Cursor development |
Cursor Skills | Reusable Cursor security workflows | Agentic Cursor automation |
MCP Server | Exposes security capabilities as MCP tools | AI clients and applications |
MCP stdio | Local MCP process integration | Desktop/local clients |
MCP Streamable HTTP | MCP as a network service | Internal/remote integrations |
GitHub Actions / Claude CI | Automated security workflows in GitHub | Team CI/CD |
Claude Batch API | Async analysis at larger scale | Many repositories |
CLI / TypeScript | Deterministic orchestration without AI | Scripts and automation |
Deterministic scripts | Audit, remediation, verification and reporting | Reproducible execution |
Parallel repository agents | Maximum 10 active repository workers | Multi-repository audits |
Before/after reports | Auditable security evidence | Review/compliance |
PR or direct fix | Operator-controlled delivery | Change-management policies |
Stable patch strategy | Conservative patched-version selection | Safer dependency fixes |
Test/build/lint verification | Post-change validation | Regression prevention |
Multiple ways to tackle the same security issue
GitHub Security Issue
│
┌────────────────────┼────────────────────┐
│ │ │
▼ ▼ ▼
Claude Code Cursor MCP Client
│ │ │
└────────────────────┼────────────────────┘
▼
Security Skills / Agents
│
┌────────────┼────────────┐
▼ ▼ ▼
Hooks Scripts CI
│ │ │
└────────────┼────────────┘
▼
Deterministic Worker
│
┌──────────┴──────────┐
▼ ▼
Fix / PR Verify
│ │
└──────────┬──────────┘
▼
Security Re-audit
│
▼
Before / After
ReportYou can use the project as a local developer tool, AI-agent workflow, GitHub CI automation, MCP server, or combination of these.
Related MCP server: gitlumen-mcp
What it does
GitHub security alerts tell you that a problem exists. This project takes the next step: understand the finding, choose a conservative stable fix, verify it, and leave an auditable result.
It supports Dependabot, code scanning / CodeQL, secret scanning, stable dependency remediation, automated verification, direct fixes or PRs, draft/ready PRs, reports and bounded parallel repository workers.
The project is designed for individuals, teams, organisations and the wider developer community. It is not tied to a particular GitHub account.
Architecture
AI / Application Clients
┌──────────┬───────────┬──────────┐
▼ ▼ ▼ ▼
Claude Cursor MCP CLI
│ │ │ │
└──────────┼───────────┼──────────┘
▼
Agentic Workflow
│
TS Orchestrator
sequencing only
│
┌───────────────┼────────────────┐
▼ ▼ ▼
Audit script Remediation Verification
│ │ │
└───────────────┼────────────────┘
▼
GitHub API
│
Commit / Pull Request
│
▼
Security re-audit
│
▼
ReportsSource-of-truth rule
The TypeScript orchestrator coordinates sequencing. It does not duplicate security operations.
Skills define agent workflow and reasoning guidance.
Agents define repository responsibilities.
Scripts perform deterministic security collection, remediation and verification.
Hooks enforce lifecycle safety gates.
MCP exposes capabilities to compatible clients.
Claude/Cursor provide reasoning where useful.
GitHub API is authoritative for GitHub security state.
MCP server
MCP is a first-class feature. Clone this repository and run it as an MCP server locally, or host it as a service for an MCP-compatible application.
MCP tools
Tool | Purpose | Mutates? |
| List accessible active repositories | No |
| Current security counts | No |
| Open Dependabot findings + patched versions | No |
| Conservative npm remediation plan | No |
| Execute deterministic remediation runner | Only with explicit opt-in |
Mutation is fail-closed. It requires both execute=true and MCP_ALLOW_MUTATIONS=true. PR mode is recommended and the system never auto-merges.
Local MCP with stdio
git clone https://github.com/girijashankarj/garry-github-security-agent-mcp.git
cd garry-github-security-agent-mcp
npm install
cp .env.example .env
npm run mcpMCP over Streamable HTTP
MCP_HOST=127.0.0.1 MCP_PORT=3000 npm run mcp:httpEndpoint:
http://127.0.0.1:3000/mcpFor remote hosting, use HTTPS and authentication/authorisation. Do not expose mutation-enabled MCP directly to the public internet.
MCP Inspector
npx @modelcontextprotocol/inspector npm run mcpClaude integration
Claude is optional. The deterministic security engine works without Anthropic access.
Interactive:
claudeCI/non-interactive:
claude -p "Run the security audit workflow defined by this repository. Follow approved configuration and never auto-merge."Claude Batch API
For large repository sets, use Batch as an analysis/planning layer:
Repositories → Claude Batch API → remediation plans
→ deterministic validation → max 10 workers
→ tests + security recheck → commit / PRThe Batch layer must not directly mutate repositories.
Local environment
cp .env.example .envExample values are intentionally fake:
GITHUB_OWNER=example-owner
GITHUB_TOKEN=github_pat_REPLACE_WITH_YOUR_TOKEN
ANTHROPIC_API_KEY=sk-ant-REPLACE_WITH_YOUR_KEY
ANTHROPIC_MODEL=claude-sonnet-4-5
SECURITY_AUDIT_MAX_REPO_WORKERS=10
SECURITY_AUDIT_RUN_TESTS=true
SECURITY_AUDIT_FIX_MODE=pr
SECURITY_AUDIT_PR_MODE=draft
MCP_ALLOW_MUTATIONS=false
MCP_HOST=127.0.0.1
MCP_PORT=3000.env is gitignored. Never commit credentials.
GitHub Actions / Claude CI
Sensitive values belong in GitHub Actions Secrets:
Secret | Purpose |
| Claude API authentication |
| Optional elevated GitHub authentication |
Non-sensitive configuration belongs in GitHub Actions Variables:
Variable | Purpose |
| Target GitHub account/organisation |
| Claude model |
| Worker limit, capped at 10 |
Never store tokens or API keys in Variables.
Stable remediation strategy
The project does not blindly upgrade dependencies to latest.
Use the smallest stable patched version that resolves the security finding.
The agent should use GitHub advisory data, inspect manifests and lockfiles, avoid unrelated dependency churn, avoid unnecessary major migrations, run verification, re-check security state and report unresolved findings honestly.
A successful commit is not proof that a vulnerability is fixed.
Operator controls
Interactive runs ask:
All repositories or selected repositories?
Default branch or PR?
Draft or ready PR?
Commit-message format?
Include before/after table?
Which test/build/lint suites should run?
Reports
temp/
└── security-count/
└── YYYY-MM-DD/
├── report-YYYY-MM-DD-HHmmss-sss.json # BEFORE
└── report-YYYY-MM-DD-HHmmss-sss.json # AFTERReports contain run metadata, operator choices, security counts, findings, changes, verification, commits/PRs, failures and unresolved issues.
Project structure
.claude/
├── CLAUDE.md
├── settings.json
├── agents/
│ ├── security-repository-agent.md
│ ├── test-agent.md
│ └── review-agent.md
├── hooks/
│ ├── pre-change-audit.sh
│ └── post-change-test.sh
└── skills/
└── security-audit/
└── SKILL.md
.cursor/
├── rules/
│ └── security-audit.mdc
└── skills/
└── security-audit/
└── SKILL.md
scripts/
├── audit-security.mjs
├── remediate-repo.mjs
├── verify-repo.mjs
├── post-change-verify.mjs
├── finalize-report.mjs
└── consistency-check.mjs
src/
├── mcp-server.ts
├── orchestrator.ts
├── github.ts
├── runtime.ts
├── report.ts
├── remediation.ts
├── pr.ts
├── types.ts
└── worker.tsScripts are reusable outside Claude. Claude Code, Cursor and MCP clients can add agentic reasoning around the same deterministic security operations.
Development
Requirements: Node.js 20+, Git, a GitHub token with appropriate permissions, and optional Anthropic access.
npm install
npm run build
npm test
npm run audit
npm run mcp
npm run mcp:http
node scripts/audit-security.mjs
node scripts/verify-repo.mjs
node scripts/consistency-check.mjsSafety model
Agent / MCP client decides
↓
Deterministic script executes
↓
Hook checks lifecycle invariant
↓
Tests verify repository
↓
GitHub security state rechecked
↓
Report records evidenceSafety rules:
Never print or commit credentials.
Never silently expand repository scope.
Never dismiss alerts merely to reduce counts.
Never auto-merge.
Never claim a vulnerability is fixed without verification.
Isolate repository failures.
Keep reports out of Git.
Keep MCP mutations disabled by default.
Prefer MCP discovery and planning before mutation.
Community use
This project is designed to work with any GitHub account or organisation. Configure the target through environment variables or GitHub Actions configuration rather than assuming a specific owner.
License
MIT
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
- AlicenseAqualityDmaintenanceEnables AI assistants to scan project dependencies and Infrastructure as Code files for security vulnerabilities and misconfigurations. It also provides automated fixing capabilities to remediate identified security issues.183MIT

gitlumen-mcpofficial
FlicenseAqualityCmaintenanceEnables AI agents to screen GitHub repositories and pull requests for risk analysis, generating risk scores, findings, and merge-readiness signals.5- AlicenseCqualityBmaintenanceA policy-aware MCP server for GitHub and GitHub Actions that enables safe AI-assisted infrastructure workflows—inspecting repositories, preparing branches and pull requests, and constrained remote mutations behind explicit preview-bound approval tokens.18MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to interact with GitHub issues, pull requests, and Actions workflows through MCP tools.
Related MCP Connectors
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Threat modeling, code/cloud/pipeline scanning, shadow-AI discovery, compliance checks and fixes.
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
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/girijashankarj/garry-github-security-agent-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server