Serveur MCP GitHub Security Posture
Permet à un agent IA d'auditer les organisations, les dépôts, les workflows Actions, les secrets et le contrôle d'accès de GitHub pour détecter les erreurs de configuration de sécurité.
Aussi connu sous badchars/github-security-mcp
- Étoiles
- 15
- Outils
- 39
- Téléchargements, 30 jours
- 978
- Dernière version
- —
- Dernier commit
- 14 mars 2026
- Licence
- MIT
Qu'est-ce que GitHub Security Posture MCP ?
GitHub Security Posture est un serveur MCP. Permet à un agent IA d'auditer les organisations, les dépôts, les workflows Actions, les secrets et le contrôle d'accès de GitHub pour détecter les erreurs de configuration de sécurité. Il expose 39 outils, comme github_check_org_security, github_check_org_sso, github_check_org_members.
Résumé généré à partir du README du projet
À propos du MCP server GitHub Security Posture
Ce MCP server permet aux agents IA d'auditer les organisations et les dépôts GitHub afin de détecter les erreurs de configuration de sécurité. Il offre un moyen unifié pour qu'une IA inspecte les paramètres de l'organisation, les configurations de dépôts, les workflows GitHub Actions, l'état du secret scanning et les permissions de contrôle d'accès. Au lieu de naviguer manuellement dans plusieurs tableaux de bord, un développeur peut utiliser un client IA comme Claude Desktop ou Cursor pour effectuer une analyse complète de sa posture de sécurité.
Le serveur utilise le Model Context Protocol pour fournir 39 outils spécifiques et 45 contrôles de sécurité répartis sur six catégories différentes. Il fonctionne en appelant directement les API GitHub à l'aide d'un token GitHub fourni, qui peut être un Personal Access Token classique ou un PAT fine-grained. Il est conçu pour offrir une visibilité sur des domaines tels que les risques de supply chain, l'injection de scripts dans les workflows et l'accès obsolète des collaborateurs, sans nécessiter d'abonnement GitHub Enterprise pour la visibilité de base qu'il propose.
Ce que vous pouvez faire avec
- 1Effectuer un audit complet de l'organisationDemandez à un agent IA d'exécuter un audit de sécurité complet sur l'ensemble de votre organisation GitHub pour identifier et hiérarchiser les vulnérabilités critiques.
- 2Analyser la sécurité des workflows CI/CDUtilisez un agent IA pour scanner vos workflows GitHub Actions afin de détecter les risques de supply chain, tels que les actions non épinglées ou les patterns dangereux utilisant pull_request_target.
- 3Réviser le contrôle d'accès des dépôtsUtilisez l'agent pour identifier les utilisateurs disposant de permissions excessives ou les collaborateurs externes dont l'accès est obsolète mais qui possèdent toujours des droits d'écriture.
- 4Détecter les risques d'exposition de secretsDonnez instruction à une IA de vérifier si le secret scanning est activé et si les secrets de l'organisation sont correctement limités à des dépôts spécifiques.
Extrait du README du projet. Chaque cas d'utilisation est vérifié par rapport à une citation du document.
Comment installer GitHub Security Posture MCP
Formats vérifiés le 10 nov. 2026Ajouter à CursorAjouter à GooseInstaller GitHub Security Posture MCP dans Claude Code
$ claude mcp add github-security-mcp -- npx -y github-security-mcpInstaller GitHub Security Posture MCP dans Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"github-security-mcp": {
"command": "npx",
"args": [
"-y",
"github-security-mcp"
]
}
}
}Installer GitHub Security Posture MCP dans VS Code
.vscode/mcp.json
{
"servers": {
"github-security-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"github-security-mcp"
]
}
}
}Installer GitHub Security Posture MCP dans VS Code CLI
$ code --add-mcp '{"name":"github-security-mcp","type":"stdio","command":"npx","args":["-y","github-security-mcp"]}'Installer GitHub Security Posture MCP dans Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"github-security-mcp": {
"command": "npx",
"args": [
"-y",
"github-security-mcp"
]
}
}
}Installer GitHub Security Posture MCP dans Codex
$ codex mcp add github-security-mcp -- npx -y github-security-mcpInstaller GitHub Security Posture MCP dans Codex config.toml
~/.codex/config.toml
[mcp_servers.github-security-mcp] command = "npx" args = ["-y", "github-security-mcp"]
Installer GitHub Security Posture MCP dans Gemini CLI
$ gemini mcp add -s user github-security-mcp npx -- -y github-security-mcpInstaller GitHub Security Posture MCP dans Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"github-security-mcp": {
"command": "npx",
"args": [
"-y",
"github-security-mcp"
]
}
}
}Outils MCP GitHub Security Posture 39
Détectés depuis le READMEgithub_check_org_securitygithub_check_org_ssogithub_check_org_membersgithub_check_org_appsgithub_check_org_webhooksgithub_check_org_audit_loggithub_list_org_reposgithub_check_repo_branch_protectiongithub_check_repo_secretsgithub_check_repo_code_scanninggithub_check_repo_dependabotgithub_check_repo_settings
| github_check_org_security | — | |
| github_check_org_sso | — | |
| github_check_org_members | — | |
| github_check_org_apps | — | |
| github_check_org_webhooks | — | |
| github_check_org_audit_log | — | |
| github_list_org_repos | — | |
| github_check_repo_branch_protection | — | |
| github_check_repo_secrets | — | |
| github_check_repo_code_scanning | — | |
| github_check_repo_dependabot | — | |
| github_check_repo_settings | — |
Afficher les 39 outilsAfficher moins d'outils
github_check_repo_webhooksgithub_check_repo_deploy_keysgithub_check_repo_codeownersgithub_check_workflow_injectiongithub_check_workflow_pr_targetgithub_check_workflow_permissionsgithub_check_workflow_pinninggithub_check_workflow_runnersgithub_check_workflow_environmentsgithub_check_workflow_secretsgithub_check_workflow_oidcgithub_check_secret_scanninggithub_check_push_protectiongithub_check_secret_patternsgithub_check_secret_scopinggithub_check_dependency_graphgithub_check_dependabot_updatesgithub_check_sbomgithub_check_vulnerabilitiesgithub_check_team_permissionsgithub_check_collaboratorsgithub_check_app_permissionsgithub_check_pat_usagegithub_list_checksgithub_audit_summarygithub_audit_reportgithub_run_all
| github_check_repo_webhooks | — | |
| github_check_repo_deploy_keys | — | |
| github_check_repo_codeowners | — | |
| github_check_workflow_injection | — | |
| github_check_workflow_pr_target | — | |
| github_check_workflow_permissions | — | |
| github_check_workflow_pinning | — | |
| github_check_workflow_runners | — | |
| github_check_workflow_environments | — | |
| github_check_workflow_secrets | — | |
| github_check_workflow_oidc | — | |
| github_check_secret_scanning | — | |
| github_check_push_protection | — | |
| github_check_secret_patterns | — | |
| github_check_secret_scoping | — | |
| github_check_dependency_graph | — | |
| github_check_dependabot_updates | — | |
| github_check_sbom | — | |
| github_check_vulnerabilities | — | |
| github_check_team_permissions | — | |
| github_check_collaborators | — | |
| github_check_app_permissions | — | |
| github_check_pat_usage | — | |
| github_list_checks | — | |
| github_audit_summary | — | |
| github_audit_report | — | |
| github_run_all | — |
Configuration
GITHUB_TOKEN
| Nom | Description | Type |
|---|---|---|
| GITHUB_TOKEN | — |
Vérifications automatisées
Exécuté le 14 nov. 2026Rapport complet →Pas encore vérifié. Un serveur nécessite un score de 80, aucune faille sérieuse et suffisamment de données pour que nous puissions effectuer les vérifications. Fonctionnement des vérifications · Ce qu'il faut corriger pour gagner des points
- Dépôt source lié et accessiblebadchars/github-security-mcp is public and reachablegithub.com/badchars/github-security-mcp ↗Réussi
- Le nom du package correspond au dépôt sourcegithub-security-mcp names badchars/github-security-mcp as sourcenpmjs.com/package/github-security-mcp ↗Réussi
- Provenance du build (attestation Sigstore)No build attestation published for this releaseNon vérifié
- Licence open source (OSI)MITspdx.org/licenses/MIT.html ↗Réussi
- Commit ou version publiée au cours de l'année écouléeLast commit or release 2026-03-14github.com/badchars/github-security-mcp ↗Réussi
- OpenSSF ScorecardNon vérifié
- Nom du package non proche d'un package populaireNo popular package one edit away from github-security-mcpRéussi
- Aucun avis critique dans le package ou ses dépendancesNon vérifié
- Aucune instruction cachée destinée au modèle39 tool descriptions and the README read; no override phrases, credential paths or hidden charactersRéussi
- Les outils destructifs sont étiquetésNo tool named like delete, drop or execRéussi
- Le point de terminaison distant répond à la poignée de main MCPNon vérifié
README
Voir sur GitHubThe Problem
GitHub security is fragmented. You need separate tools for org settings, repo configurations, Actions workflow analysis, secret scanning, supply chain, and access control. No single tool covers it all, and none work with AI agents.
Traditional workflow:
manually check org settings → click through 15 pages
run github-advisory-db for each repo → one at a time
grep workflows for script injection → miss half the patterns
review collaborator access → spreadsheet hell
check secret scanning alerts → another dashboard
──────────────────────────────────────────
Total: hours of manual work per org
github-security-mcp gives your AI agent 39 tools and 45 security checks via the Model Context Protocol. The agent calls GitHub APIs directly, understands what it finds, and tells you exactly what to fix.
With github-security-mcp:
You: "Audit my GitHub org for security issues and prioritize the fixes"
Agent: → checks org settings (2FA, SSO, member privileges)
→ scans repos (branch protection, secret scanning, Dependabot)
→ analyzes workflows (script injection, unpinned actions, OIDC)
→ reviews access (teams, collaborators, PATs, GitHub Apps)
→ "12 critical, 8 high — here are the top 5 to fix now"
How It's Different
Existing tools focus on one slice of GitHub security. github-security-mcp covers the full stack and works with any AI agent.
| Tool | What it does | What it can't do |
|---|---|---|
| Allstar | Enforce repo settings via GitHub App | No Actions analysis, no secret scanning, no access audit |
| Scorecard | OpenSSF security score for repos | Single-repo focus, no org-level checks, no real-time interaction |
| Legitify | Org + repo policy enforcement | CLI output, no AI integration, limited Actions analysis |
| step-security/harden-runner | Runtime Actions security | Only Actions, no org/repo/access checks |
| GitGuardian | Secret detection in commits | SaaS only, no self-hosted, limited to secrets domain |
| Socket | Supply chain risk analysis | Package-focused, no org/Actions/access analysis |
All of these are excellent tools. github-security-mcp doesn't replace them — it fills the gap of giving an AI agent unified, interactive access across all GitHub security domains.
Quick Start
Install
git clone https://github.com/badchars/github-security-mcp.git
cd github-security-mcp
bun install
Set up authentication
# Classic PAT (requires: repo, admin:org, admin:org_hook, admin:repo_hook)
export GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Fine-grained PAT (preferred — least privilege)
# Organization: Members (read), Administration (read)
# Repository: Administration, Code scanning, Dependabot, Secret scanning,
# Actions, Environments, Webhooks (all read-only)
Connect to your AI agent
claude mcp add github-security -- bun run /path/to/github-security-mcp/src/index.ts
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"github-security": {
"command": "bun",
"args": ["run", "/path/to/github-security-mcp/src/index.ts"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}
Same JSON config format. Point the command to your installation path.
Start auditing
You: "Audit my GitHub org for security misconfigurations"
That's it. The agent handles the rest.
What The AI Can Do
Full Organization Audit
You: "Run a complete security audit on our GitHub org"
Agent: → github_run_all {org: "myorg", repo: "main-app"}
→ 45 checks across 6 categories
→ github_audit_report
→ "34 findings: 4 critical, 7 high, 12 medium.
Critical #1: No branch protection on main (REPO-001)
Critical #2: Script injection in deploy.yml (ACT-001)
Critical #3: 3 critical Dependabot alerts unfixed 90+ days (REPO-007)
Critical #4: Unresolved secret scanning alerts (SEC-002)
Here are the exact fixes for each..."
Actions Workflow Security
You: "Check our CI/CD workflows for supply chain risks"
Agent: → github_check_workflow_injection
Found ${{ github.event.issue.title }} in run: block (deploy.yml:47)
→ github_check_workflow_pinning
12 actions use tags instead of SHA pins
→ github_check_workflow_pr_target
build.yml uses pull_request_target with checkout — critical risk
→ github_check_workflow_permissions
Default GITHUB_TOKEN has write-all permissions
→ "4 supply chain risks found. The PR target + checkout pattern
allows any fork to execute arbitrary code with write access
to your repo. Fix this first."
Access Control Review
You: "Who has too much access to our repositories?"
Agent: → github_check_team_permissions
"platform" team has admin on 47 repos, only 3 members
→ github_check_collaborators
8 outside collaborators with write access
→ github_check_app_permissions
"old-ci-bot" GitHub App has admin + all repos
→ github_check_pat_usage
14 classic PATs with repo scope (should be fine-grained)
→ "Reduce blast radius: restrict platform team to maintain,
remove 3 stale outside collaborators, limit old-ci-bot
to specific repos, migrate classic PATs to fine-grained."
Secret Exposure Detection
You: "Are we properly protecting secrets across our repos?"
Agent: → github_check_secret_scanning
Secret scanning disabled on 5 private repos
→ github_check_push_protection
3 push protection bypasses in the last month
→ github_check_secret_patterns
No custom secret patterns defined
→ github_check_secret_scoping
2 org secrets available to all repos (should be scoped)
→ "Enable secret scanning on all repos, review the 3 bypasses,
add custom patterns for internal API keys, and scope
org secrets to only the repos that need them."
Tools Reference (39 tools)
| Tool | Description |
|---|---|
github_check_org_security |
2FA enforcement, default repo visibility, member creation privileges |
github_check_org_sso |
SSO/SAML configuration via GraphQL |
github_check_org_members |
Outside collaborators, stale member detection |
github_check_org_apps |
OAuth credential authorizations, GitHub App installation permissions |
github_check_org_webhooks |
Insecure webhook URLs (HTTP, no secret) |
github_check_org_audit_log |
Suspicious audit log activity (Enterprise) |
github_list_org_repos |
List all repos in an org with security metadata |
| Tool | Description |
|---|---|
github_check_repo_branch_protection |
Branch protection rules on default branch |
github_check_repo_secrets |
Secret scanning and push protection enablement |
github_check_repo_code_scanning |
CodeQL / code scanning enabled, open alerts |
github_check_repo_dependabot |
Dependabot enabled, critical alert triage |
github_check_repo_settings |
SECURITY.md, private vulnerability reporting, fork restrictions |
github_check_repo_webhooks |
Insecure repo-level webhook URLs |
github_check_repo_deploy_keys |
Deploy key permissions (read-only vs read-write) |
github_check_repo_codeowners |
CODEOWNERS file presence and enforcement |
| Tool | Description |
|---|---|
github_check_workflow_injection |
Script injection via ${{ github.event.* }} in run: blocks |
github_check_workflow_pr_target |
pull_request_target + checkout pattern (critical) |
github_check_workflow_permissions |
GITHUB_TOKEN default permission scope |
github_check_workflow_pinning |
Unpinned third-party actions (tag vs SHA) |
github_check_workflow_runners |
Self-hosted runner exposure |
github_check_workflow_environments |
Missing environment protection rules |
github_check_workflow_secrets |
Secret exfiltration patterns in workflows |
github_check_workflow_oidc |
OIDC subject claim customization |
| Tool | Description |
|---|---|
github_check_secret_scanning |
Coverage gaps and unresolved alerts |
github_check_push_protection |
Push protection bypass tracking |
github_check_secret_patterns |
Custom secret pattern configuration |
github_check_secret_scoping |
Environment, repo, and org-level secret scoping |
| Tool | Description |
|---|---|
github_check_dependency_graph |
Dependency graph enablement |
github_check_dependabot_updates |
Dependabot security updates configuration |
github_check_sbom |
SBOM generation capability |
github_check_vulnerabilities |
Known vulnerabilities, critical unfixed > 90 days |
| Tool | Description |
|---|---|
github_check_team_permissions |
Team permission levels across repos |
github_check_collaborators |
External collaborator access audit |
github_check_app_permissions |
GitHub App permission scope review |
github_check_pat_usage |
Classic vs fine-grained PAT usage |
| Tool | Description |
|---|---|
github_list_checks |
Browse all 45 checks, filter by category/severity |
github_audit_summary |
Aggregate findings by category, severity, status |
github_audit_report |
Full markdown or JSON audit report |
github_run_all |
Execute all checks for an org/repo |
Check Registry (45 checks)
| ID | Check | Severity |
|---|---|---|
| ORG-001 | 2FA not enforced | CRITICAL |
| ORG-002 | Default repo visibility is public | HIGH |
| ORG-003 | Members can create public repos | MEDIUM |
| ORG-004 | SSO/SAML not configured | HIGH |
| ORG-005 | Outside collaborators with access | MEDIUM |
| ORG-006 | Stale organization members | LOW |
| ORG-007 | Risky OAuth app authorizations | HIGH |
| ORG-008 | Over-permissive GitHub App installations | HIGH |
| ORG-009 | Insecure webhook URLs | MEDIUM |
| ORG-010 | Suspicious audit log activity | INFO |
| ID | Check | Severity |
|---|---|---|
| REPO-001 | Missing or weak branch protection | CRITICAL |
| REPO-002 | Secret scanning not enabled | HIGH |
| REPO-003 | Push protection not enabled | HIGH |
| REPO-004 | Code scanning not enabled | MEDIUM |
| REPO-005 | Open code scanning alerts | HIGH |
| REPO-006 | Dependabot not enabled | MEDIUM |
| REPO-007 | Critical Dependabot alerts | CRITICAL |
| REPO-008 | No SECURITY.md policy file | LOW |
| REPO-009 | Private vulnerability reporting off | LOW |
| REPO-010 | Unrestricted fork settings | LOW |
| REPO-011 | Insecure repo webhooks | MEDIUM |
| REPO-012 | Read-write deploy keys | HIGH |
| REPO-013 | Missing CODEOWNERS file | LOW |
| ID | Check | Severity |
|---|---|---|
| ACT-001 | Script injection via untrusted inputs | CRITICAL |
| ACT-002 | pull_request_target with checkout | CRITICAL |
| ACT-003 | Over-permissive GITHUB_TOKEN | HIGH |
| ACT-004 | Unpinned third-party actions | MEDIUM |
| ACT-005 | Self-hosted runner exposure | HIGH |
| ACT-006 | Missing environment protection rules | MEDIUM |
| ACT-007 | Secret exfiltration patterns | HIGH |
| ACT-008 | OIDC misconfiguration | MEDIUM |
| ID | Check | Severity |
|---|---|---|
| SEC-001 | Secret scanning coverage gaps | HIGH |
| SEC-002 | Unresolved secret scanning alerts | CRITICAL |
| SEC-003 | Push protection bypasses | HIGH |
| SEC-004 | No custom secret patterns | LOW |
| SEC-005 | Overly broad secret scoping | MEDIUM |
| ID | Check | Severity |
|---|---|---|
| SUP-001 | Dependency graph not enabled | MEDIUM |
| SUP-002 | Dependabot security updates off | HIGH |
| SUP-003 | No SBOM generation | LOW |
| SUP-004 | Critical known vulnerabilities | CRITICAL |
| SUP-005 | Stale unfixed vulnerabilities (>90 days) | HIGH |
| ID | Check | Severity |
|---|---|---|
| ACC-001 | Over-permissive team access | HIGH |
| ACC-002 | External collaborators with write+ | MEDIUM |
| ACC-003 | Over-scoped GitHub Apps | HIGH |
| ACC-004 | Classic PATs with broad scopes | HIGH |
Architecture
src/
├── index.ts Entry point + MCP stdio
├── types/
│ └── index.ts CheckResult, ToolDef, ToolContext, ToolResult
├── github/
│ └── client.ts GitHubClientFactory (lazy Octokit + GraphQL)
├── protocol/
│ ├── tools.ts 39 tool definitions (Zod schemas)
│ └── mcp-server.ts MCP server + stdio transport
├── org/ Organization checks (ORG-001..010)
│ ├── security.ts 2FA, visibility, member privileges
│ ├── sso.ts SSO/SAML via GraphQL
│ ├── members.ts Outside collaborators, stale members
│ ├── apps.ts OAuth apps, GitHub App installations
│ ├── webhooks.ts Insecure webhook URLs
│ └── audit-log.ts Suspicious audit log patterns
├── repo/ Repository checks (REPO-001..013)
│ ├── branch-protection.ts Branch protection rules
│ ├── secret-scanning.ts Secret scanning + push protection
│ ├── code-scanning.ts CodeQL enabled, open alerts
│ ├── dependabot.ts Dependabot enabled, critical alerts
│ ├── settings.ts SECURITY.md, vuln reporting, forks
│ ├── webhooks.ts Insecure repo webhooks
│ ├── deploy-keys.ts Deploy key permissions
│ └── codeowners.ts CODEOWNERS file
├── actions/ GitHub Actions checks (ACT-001..008)
│ ├── injection.ts Script injection via untrusted inputs
│ ├── pr-target.ts pull_request_target + checkout
│ ├── permissions.ts GITHUB_TOKEN default permissions
│ ├── pinning.ts Unpinned third-party actions
│ ├── runners.ts Self-hosted runner exposure
│ ├── environments.ts Environment protection rules
│ ├── secrets.ts Secret exfiltration patterns
│ └── oidc.ts OIDC configuration
├── secrets/ Secret management checks (SEC-001..005)
│ ├── scanning.ts Coverage + alert triage
│ ├── push-protection.ts Push protection bypasses
│ ├── patterns.ts Custom secret patterns
│ └── scoping.ts Env/repo/org secret scoping
├── supply-chain/ Supply chain checks (SUP-001..005)
│ ├── dependency-graph.ts Dependency graph enabled
│ ├── dependabot-updates.ts Security updates config
│ ├── sbom.ts SBOM generation
│ └── vulnerabilities.ts Known vulns, stale unfixed
├── access/ Access control checks (ACC-001..004)
│ ├── teams.ts Team permission audit
│ ├── collaborators.ts External collaborators
│ ├── github-apps.ts GitHub App permissions
│ └── tokens.ts Classic vs fine-grained PATs
└── meta/ Aggregation + reporting
├── list-checks.ts CHECK_REGISTRY (45 checks)
├── summary.ts Findings aggregation
├── report.ts Markdown/JSON report
└── run-all.ts Execute all checks
Design decisions:
- Single Octokit instance — GitHub API is global (no regions). Lazy initialization on first API call.
- Uniform CheckResult — Every check returns the same structure: checkId, severity, status, details, remediation. Same pattern as cloud-audit-mcp.
- Static workflow analysis — Actions checks fetch YAML via Contents API and use regex analysis. GitHub has no parsed workflow API.
- Enterprise graceful degradation — Enterprise-only features (audit log, credential authorizations, SSO) return
NOT_APPLICABLEinstead of errors. - In-memory findings — Session-scoped findings array. No database, no persistence. Run
github_audit_summaryorgithub_audit_reportto aggregate. - 4 dependencies —
@modelcontextprotocol/sdk,@octokit/rest,@octokit/graphql,zod. Nothing else.
Authentication
| Token Type | Required Scopes |
|---|---|
| Classic PAT | repo, admin:org, admin:org_hook, admin:repo_hook |
| Fine-grained PAT (recommended) | Org: Members + Administration (read). Repo: Administration, Code scanning, Dependabot, Secret scanning, Actions, Environments, Webhooks (read) |
| GitHub App | Same repository/org permissions as fine-grained PAT |
The token is read from the GITHUB_TOKEN environment variable.
Part of the MCP Security Suite
| Project | Domain | Tools |
|---|---|---|
| hackbrowser-mcp | Browser-based security testing | 39 tools, Firefox, injection testing |
| cloud-audit-mcp | Cloud security (AWS/Azure/GCP) | 38 tools, 60+ checks |
| github-security-mcp | GitHub security posture | 39 tools, 45 checks |
Limitations
- Requires a GitHub PAT or GitHub App token with appropriate scopes
- Some checks require GitHub Enterprise Cloud (audit log, credential authorizations, SSO) — these gracefully return NOT_APPLICABLE on free/Team plans
- Actions workflow analysis is regex-based (no AST parsing) — may miss complex injection patterns
- Rate limiting: GitHub API allows 5,000 requests/hour for authenticated users. A full org audit with many repos may approach this limit
- macOS / Linux (Windows not tested)
Questions sur GitHub Security Posture MCP
Comment ajouter GitHub Security Posture MCP à Claude Code ?
Exécutez claude mcp add github-security-mcp -- npx -y github-security-mcp dans votre terminal. Ajoutez --scope user pour le rendre disponible dans tous les projets.
Comment ajouter GitHub Security Posture MCP à Cursor ?
Ouvrez ~/.cursor/mcp.json et ajoutez le serveur sous mcpServers, avec la configuration Cursor indiquée dans la section d'installation ci-dessus.
Quels outils GitHub Security Posture MCP fournit-il ?
Il expose 39 outils, dont github_check_org_security, github_check_org_sso, github_check_org_members, github_check_org_apps, github_check_org_webhooks.
Que permet de faire ce MCP server pour la sécurité GitHub ?
Il fournit à l'agent 39 outils et 45 contrôles de sécurité pour auditer les paramètres de l'organisation, les dépôts, les workflows Actions, les secrets, la supply chain et le contrôle d'accès, puis pour rapporter des correctifs prioritaires.
Comment authentifier le MCP server de sécurité GitHub ?
Configurez une variable d'environnement GITHUB_TOKEN ; un PAT classique ou un PAT fine-grained en lecture seule avec les scopes de sécurité d'organisation et de dépôt fonctionne.
Peut-il analyser les workflows GitHub Actions pour les risques de supply chain ?
Oui, il exécute 8 contrôles Actions, incluant l'injection de scripts, l'usage abusif de pull_request_target, les actions non épinglées (unpinned), les permissions de token, les runners, les environnements, les secrets et l'OIDC.
Requiert-il GitHub Enterprise pour exécuter ces contrôles ?
Non, il utilise l'API publique gratuitement et gère les fonctionnalités spécifiques à Enterprise de manière fluide, bien que certains contrôles comme l'audit log de l'organisation nécessitent Enterprise.
Comment le connecter à Claude Code ?
Exécutez la commande claude mcp add en pointant vers le fichier d'entrée src/index.ts du serveur avec bun.