SecOps MCP

SecOps MCP

Provides access to 13+ penetration testing and security audit tools through a unified MCP interface. Enables security professionals to perform vulnerability scanning, web fuzzing, network reconnaissance, and other security assessments through containerized tools like Nuclei, Nmap, SQLMap, and FFUF.

Category
Visit Server

README

πŸ”’ SecOps MCP - Security Operations Model Context Protocol Server

Python 3.13+ FastMCP License: MIT

SecOps MCP es un servidor MCP (Model Context Protocol) que proporciona acceso a herramientas de seguridad de pentesting y auditorΓ­a a travΓ©s de una interfaz unificada y estandarizada. Optimizado para integraciΓ³n con n8n y ejecuciΓ³n directa en VPS.

πŸš€ CaracterΓ­sticas

  • πŸ”Œ Protocolo MCP EstΓ‘ndar: Servidor compatible con el protocolo MCP para integraciΓ³n con clientes AI
  • πŸ› οΈ Herramientas de Seguridad Integradas: 13+ herramientas de pentesting y auditorΓ­a
  • πŸ“Š Salida JSON Consistente: Formato de respuesta estandarizado para todas las herramientas
  • 🐳 Herramientas en Docker: Cada herramienta ejecuta en su propio contenedor Docker
  • ⚑ Servidor MCP Directo: EjecutΓ‘ndose directamente en VPS para mΓ‘xima estabilidad
  • πŸ”§ FΓ‘cil ExtensiΓ³n: Arquitectura modular para agregar nuevas herramientas
  • 🎯 IntegraciΓ³n n8n: DiseΓ±ado especΓ­ficamente para flujos de automatizaciΓ³n

πŸ—οΈ Arquitectura

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        n8n                                 β”‚
β”‚                 (Tu VPS/Cloud)                             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      β”‚
                      β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                Servidor MCP Principal                       β”‚
β”‚              (EjecutΓ‘ndose en VPS)                         β”‚
β”‚              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                   β”‚
β”‚              β”‚     FastMCP Server      β”‚                   β”‚
β”‚              β”‚   (Python + FastMCP)    β”‚                   β”‚
β”‚              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      β”‚
                      β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              Contenedores Docker                            β”‚
β”‚              (Herramientas de Seguridad)                   β”‚
β”‚                                                             β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”‚
β”‚  β”‚ Nuclei  β”‚ β”‚  FFUF   β”‚ β”‚  Nmap   β”‚ β”‚ SQLMap  β”‚         β”‚
β”‚  β”‚ :8081   β”‚ β”‚ :8082   β”‚ β”‚ :8083   β”‚ β”‚ :8084   β”‚         β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β”‚
β”‚                                                             β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”‚
β”‚  β”‚ WPScan  β”‚ β”‚  Amass  β”‚ β”‚Hashcat  β”‚ β”‚ HTTPX   β”‚         β”‚
β”‚  β”‚ :8085   β”‚ β”‚ :8086   β”‚ β”‚ :8087   β”‚ β”‚ :8088   β”‚         β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β”‚
β”‚                                                             β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”                     β”‚
β”‚  β”‚Subfinderβ”‚ β”‚  TLSX   β”‚ β”‚Dirsearchβ”‚                     β”‚
β”‚  β”‚ :8089   β”‚ β”‚ :8090   β”‚ β”‚ :8091   β”‚                     β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ› οΈ Herramientas Incluidas

Herramienta DescripciΓ³n CategorΓ­a Puerto Imagen Docker
Nuclei EscΓ‘ner de vulnerabilidades rΓ‘pido y personalizable AnΓ‘lisis de Vulnerabilidades 8081 projectdiscovery/nuclei:latest
FFUF Fuzzer web rΓ‘pido para descubrimiento de contenido Web Fuzzing 8082 trickest/ffuf:latest
WFuzz Fuzzer de aplicaciones web Web Fuzzing 8082 trickest/ffuf:latest
SQLMap InyecciΓ³n SQL automΓ‘tica y takeover de bases de datos Web Security 8084 googlesky/sqlmap:latest
Nmap ExploraciΓ³n de red y auditorΓ­a de seguridad Network Security 8083 uzyexe/nmap:latest
Hashcat RecuperaciΓ³n avanzada de contraseΓ±as Password Cracking 8087 javydekoning/hashcat:latest
HTTPX Toolkit HTTP multipropΓ³sito Web Reconnaissance 8088 projectdiscovery/httpx:latest
Subfinder Descubrimiento de subdominios Reconnaissance 8089 projectdiscovery/subfinder:latest
TLSX Escaneo y anΓ‘lisis TLS/SSL SSL/TLS Security 8090 projectdiscovery/tlsx:latest
XSStrike DetecciΓ³n y explotaciΓ³n avanzada de XSS Web Security 8082 trickest/ffuf:latest
Amass Mapeo de superficie de ataque y descubrimiento de assets Reconnaissance 8086 securecodebox/amass:latest
Dirsearch EscΓ‘ner de rutas web Directory Enumeration 8082 trickest/ffuf:latest
WPScan EscΓ‘ner de vulnerabilidades de WordPress CMS Security 8085 wpscanteam/wpscan:latest

πŸ“‹ Requisitos Previos

  • Python 3.13+
  • FastMCP 2.12.0+
  • Docker y Docker Compose
  • VPS con acceso root/sudo

πŸš€ InstalaciΓ³n

🐧 Instalación en VPS (Recomendada)

# Clonar el repositorio
git clone https://github.com/aisacAdmin/secops-mcp2.0.git
cd secops-mcp2.0

# InstalaciΓ³n automΓ‘tica completa
./scripts/install-vps.sh install

# O instalaciΓ³n por pasos
./scripts/install-vps.sh python      # Python y dependencias
./scripts/install-vps.sh docker      # Docker y contenedores
./scripts/install-vps.sh systemd     # Servicio systemd

🐍 Instalación Manual

# Clonar el repositorio
git clone https://github.com/aisacAdmin/secops-mcp2.0.git
cd secops-mcp2.0

# Crear entorno virtual
python3 -m venv .venv
source .venv/bin/activate  # Linux/macOS
# .venv\Scripts\activate   # Windows

# Instalar dependencias
pip install -e .
# o
uv sync

🎯 Uso

Iniciar el Servidor MCP

# OpciΓ³n 1: Ejecutar directamente
python main.py

# OpciΓ³n 2: Usar FastMCP CLI
fastmcp run main.py:mcp --transport http --host 0.0.0.0 --port 8080

# OpciΓ³n 3: Usar servicio systemd (VPS)
sudo systemctl start secops-mcp
sudo systemctl status secops-mcp

Gestionar Contenedores Docker

# Iniciar todas las herramientas
docker-compose up -d

# Ver estado
./scripts/manage-containers.sh status

# Ver logs de una herramienta
./scripts/manage-containers.sh logs nuclei

# Verificar salud
./scripts/manage-containers.sh health

ConfiguraciΓ³n del Cliente MCP

El servidor estarΓ‘ disponible en:

  • Host: 0.0.0.0 (VPS) o 127.0.0.1 (local)
  • Puerto: 8080
  • Transporte: HTTP

πŸ”Œ IntegraciΓ³n con n8n

Configurar n8n para usar MCP

En tu instancia de n8n, configura el servidor MCP:

{
  "mcp": {
    "servers": [
      {
        "name": "secops-mcp",
        "url": "http://tu-vps-ip:8080",
        "transport": "http"
      }
    ]
  }
}

Nodos MCP Disponibles en n8n

Una vez configurado, tendrΓ‘s acceso a todos los nodos de herramientas de seguridad directamente en n8n.

πŸ“– Ver documentaciΓ³n completa de integraciΓ³n con n8n: N8N_INTEGRATION.md

πŸ”§ ConfiguraciΓ³n de Herramientas

Nuclei

# Escaneo bΓ‘sico
nuclei_scan_wrapper(
    target="example.com",
    templates=["cves", "vulnerabilities"],
    severity="high",
    output_format="json"
)

FFUF

# Fuzzing de directorios
ffuf_wrapper(
    url="https://example.com/FUZZ",
    wordlist="/usr/share/wordlists/dirb/common.txt",
    filter_code="404"
)

Nmap

# Escaneo de puertos
nmap_wrapper(
    target="192.168.1.1",
    ports="1-1000",
    scan_type="sV"
)

πŸ“Š Formato de Respuesta

Todas las herramientas devuelven respuestas en formato JSON consistente:

{
    "success": true,
    "tool": "nuclei",
    "target": "example.com",
    "timestamp": "2024-01-15T10:30:00Z",
    "results": {
        "vulnerabilities": [...],
        "scan_time": "2.5s",
        "templates_loaded": 150
    },
    "metadata": {
        "version": "1.0.0",
        "execution_time": "2.5s"
    }
}

πŸ—οΈ Estructura del Proyecto

secops-mcp/
β”œβ”€β”€ main.py                    # Servidor MCP principal
β”œβ”€β”€ tools/                     # MΓ³dulos de herramientas (legacy)
β”œβ”€β”€ scripts/                   # Scripts de gestiΓ³n
β”‚   β”œβ”€β”€ install-vps.sh        # Instalador para VPS
β”‚   └── manage-containers.sh  # Gestor de contenedores
β”œβ”€β”€ data/                      # Directorios de datos persistentes
β”œβ”€β”€ docker-compose.yml         # ConfiguraciΓ³n de contenedores
β”œβ”€β”€ pyproject.toml            # ConfiguraciΓ³n del proyecto
β”œβ”€β”€ env.example               # Variables de entorno
β”œβ”€β”€ README.md                 # Este archivo
β”œβ”€β”€ DOCKER_ARCHITECTURE.md    # DocumentaciΓ³n de arquitectura Docker
└── N8N_INTEGRATION.md        # GuΓ­a de integraciΓ³n con n8n

πŸ”’ Consideraciones de Seguridad

⚠️ ADVERTENCIA: Este proyecto es para auditorías de seguridad autorizadas únicamente.

  • βœ… Siempre obtΓ©n autorizaciΓ³n antes de escanear sistemas
  • βœ… Respeta robots.txt y tΓ©rminos de servicio
  • βœ… Usa parΓ‘metros apropiados para evitar sobrecarga
  • βœ… MantΓ©n confidencialidad de los resultados
  • ❌ Nunca uses para actividades maliciosas o no autorizadas

πŸ§ͺ Testing

# Verificar herramientas disponibles
python -c "from main import DOCKER_TOOLS; print('Herramientas configuradas:', list(DOCKER_TOOLS.keys()))"

# Verificar estado de herramientas
curl http://localhost:8080/health

# Verificar contenedores Docker
docker-compose ps

🀝 Contribuir

  1. Fork el repositorio
  2. Crea una rama para tu feature (git checkout -b feature/AmazingFeature)
  3. Commit tus cambios (git commit -m 'Add some AmazingFeature')
  4. Push a la rama (git push origin feature/AmazingFeature)
  5. Abre un Pull Request

GuΓ­as de ContribuciΓ³n

  • MantΓ©n el formato de cΓ³digo consistente
  • Agrega tests para nuevas funcionalidades
  • Documenta nuevas herramientas
  • Sigue las mejores prΓ‘cticas de seguridad

πŸ“ Roadmap

  • [x] Arquitectura Docker: Herramientas en contenedores independientes
  • [x] Servidor MCP directo: EjecuciΓ³n en VPS sin Docker
  • [x] IntegraciΓ³n n8n: Nodos MCP para flujos de automatizaciΓ³n
  • [ ] Tests automatizados para todas las herramientas
  • [ ] API REST adicional al protocolo MCP
  • [ ] Dashboard web para visualizaciΓ³n de resultados
  • [ ] IntegraciΓ³n con SIEM y herramientas de gestiΓ³n de incidentes
  • [ ] Plugin system para herramientas personalizadas

πŸ“„ Licencia

Este proyecto estΓ‘ licenciado bajo la MIT License - ver el archivo LICENSE para detalles.

πŸ™ Agradecimientos

  • FastMCP por el framework MCP de alto rendimiento
  • ProjectDiscovery por herramientas como Nuclei, FFUF, HTTPX
  • OWASP por Amass y otras herramientas de seguridad
  • Comunidad de seguridad por contribuciones y soporte

πŸ“ž Soporte


<div align="center"> <p><strong>πŸ”’ SecOps MCP</strong> - Potenciando operaciones de seguridad con IA y n8n</p> <p>Hecho con ❀️ por la comunidad de seguridad</p> </div>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured