Skip to main content
Glama
jmass-ggg

GitHub Security Analyzer — MCP

by jmass-ggg

GitHub Security Analyzer — MCP

Un escáner de seguridad de GitHub impulsado por IA. Inicia sesión con tu cuenta de GitHub, dale un nombre de repositorio, y la IA escanea cada archivo en busca de secretos expuestos como claves de API, contraseñas y tokens — y luego te da un informe completo con qué corregir.


Cómo funciona

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 it

Related MCP server: github-security-mcp

Estructura del proyecto

├── 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)

Configuración

1. Crea un archivo .env:

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_key

2. Instala las dependencias:

pip install -r requirements.txt

3. Inicia sesión con GitHub:

python login.py

Abre http://127.0.0.1:5000 → haz clic en "Login with Github" → autoriza → listo. Esto guarda tu token en .github_token. Solo necesitas hacer esto una vez.


Ejecución

Opción A — Agente de IA (terminal)

python agent.py

Ingresa un nombre de repositorio cuando se te solicite. La IA lo escanea e imprime un informe de seguridad completo.

Opción B — Servidor MCP (para Claude Desktop o cualquier cliente MCP)

mcp dev server.py

Qué escanea

Tipo de secreto

Patrón de ejemplo

Clave de acceso de AWS

AKIA...

Token de GitHub

ghp_...

Clave de API de Google

AIza...

Claves de Stripe

sk_live_...

URLs de base de datos

postgres://user:pass@host

Contraseñas genéricas

password = "..."

Claves privadas

-----BEGIN RSA PRIVATE KEY-----

Tokens Bearer

Authorization: Bearer ...

Tokens de Slack / Twilio / SendGrid

varios patrones


Herramientas MCP disponibles

Herramienta

Qué hace

list_repositories

Lista todos tus repositorios de GitHub

repository_details

Obtiene detalles sobre un repositorio específico

read_file

Lee el código fuente de un archivo

issues

Lista los problemas abiertos de GitHub

code_change_summary

Obtiene mensajes de commits recientes

security_scan

Escaneo rápido de nombres de archivos en busca de palabras sensibles

deep_security_scan

Escaneo completo del contenido de todos los archivos en busca de secretos


Importante

  • Nunca hagas commit de .github_token o .env — ambos están en .gitignore

  • Si accidentalmente subes tu token, revócalo inmediatamente en https://github.com/settings/tokens

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    A
    quality
    Not graded
    maintenance
    Enterprise-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.
    5
    0
  • A
    license
    A
    quality
    D
    maintenance
    An 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.
    39
    521
    12
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    An MCP server for AI security analysis, enabling vulnerability scanning, sensitive information leak detection, and GitHub code leak monitoring via 48 tools.
    MIT

View all related MCP servers

Related MCP Connectors

  • Scans MCP servers for tool poisoning, prompt injection and supply chain risks.

  • 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.

View all MCP Connectors

Latest Blog Posts

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/jmass-ggg/Github-Security-analyze-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server