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.
README
π SecOps MCP - Security Operations Model Context Protocol Server
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) o127.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
- Fork el repositorio
- Crea una rama para tu feature (
git checkout -b feature/AmazingFeature) - Commit tus cambios (
git commit -m 'Add some AmazingFeature') - Push a la rama (
git push origin feature/AmazingFeature) - 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
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- DocumentaciΓ³n:
<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
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.