GitHub Security Analyzer — MCP
GitHub Security Analyzer — MCP
Ein KI-gestützter GitHub-Sicherheitsscanner. Melde dich mit deinem GitHub-Konto an, gib einen Repo-Namen ein, und die KI scannt jede Datei auf offengelegte Geheimnisse wie API-Schlüssel, Passwörter und Tokens – und gibt dir dann einen vollständigen Bericht mit dem, was du beheben solltest.
So funktioniert es
1. Login with GitHub (OAuth)
↓
.github_token saved locally
↓
2. Run the agent
↓
You type a repo name
↓
3. AI calls deep_security_scan tool
↓
Fetches every file from the repo via GitHub API
↓
Scans each file with 16 secret patterns (regex)
↓
4. AI reads the results and writes a report
↓
Tells you what was found, which file, which line, and how to fix itRelated MCP server: github-security-mcp
Projektstruktur
├── login.py # GitHub OAuth login — saves token to .github_token
├── github_client.py # Wrapper around GitHub API calls
├── server.py # MCP tools (list repos, scan files, read code, etc.)
├── agent.py # AI agent loop — uses OpenRouter to run the scanner
├── requirements.txt # Python dependencies
└── .env # Your credentials (never commit this)Einrichtung
1. Erstelle eine .env-Datei:
GITHUB_CLIENT_ID=your_github_app_client_id
GITHUB_CLIENT_SECRET=your_github_app_client_secret
FLASK_SECRET_KEY=any_random_string
OPENROUTER_API_KEY=your_openrouter_key2. Abhängigkeiten installieren:
pip install -r requirements.txt3. Mit GitHub anmelden:
python login.pyÖffne http://127.0.0.1:5000 → klicke auf „Login with Github" → autorisiere → fertig.
Dadurch wird dein Token in .github_token gespeichert. Das musst du nur einmal tun.
Ausführung
Option A – KI-Agent (Terminal)
python agent.pyGib einen Repo-Namen ein, wenn du dazu aufgefordert wirst. Die KI scannt ihn und gibt einen vollständigen Sicherheitsbericht aus.
Option B – MCP-Server (für Claude Desktop oder jeden MCP-Client)
mcp dev server.pyWonach gescannt wird
Geheimnistyp | Beispielmuster |
AWS-Zugriffsschlüssel |
|
GitHub-Token |
|
Google-API-Schlüssel |
|
Stripe-Schlüssel |
|
Datenbank-URLs |
|
Allgemeine Passwörter |
|
Private Schlüssel |
|
Bearer-Tokens |
|
Slack-/Twilio-/SendGrid-Tokens | verschiedene Muster |
Verfügbare MCP-Tools
Tool | Was es tut |
| Listet alle deine GitHub-Repos auf |
| Ruft Details zu einem bestimmten Repo ab |
| Liest Quellcode aus einer Datei |
| Listet offene GitHub-Issues auf |
| Ruft aktuelle Commit-Nachrichten ab |
| Schneller Scan von Dateinamen auf sensible Wörter |
| Vollständiger Inhalts-Scan aller Dateien auf Geheimnisse |
Wichtig
Committe niemals
.github_tokenoder.env– beide sind in.gitignoreFalls du dein Token versehentlich gepusht hast, widerrufe es sofort unter
https://github.com/settings/tokens
This server cannot be deployed
Maintenance
Related MCP Connectors
Scan any public GitHub MCP-server repo for security issues. 37 MCP-specific L1 rules, 8 languages.
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceEnterprise-grade MCP (Model Context Protocol) server for detecting secrets and sensitive information in GitHub repositories. Scans for 35+ types of secrets including API keys, passwords, tokens, and credentials with production-ready reliability features.50-
- AlicenseAqualityDmaintenanceAn MCP server that enables AI agents to perform comprehensive GitHub security audits across org settings, repositories, Actions workflows, secrets, supply chain, and access control using 39 tools and 45 checks.39114 npm15MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for ai-scanner that enables AI agents to scan codebases for LLM usage, AI frameworks, and exposed secrets.137 npm1MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server for AI security analysis, enabling vulnerability scanning, sensitive information leak detection, and GitHub code leak monitoring via 48 tools.MIT