Hashcat MCP Server
Hashcat MCP Server
Un asistente de auditoría de hashes de contraseñas con IA que combina un LLM local con Hashcat a través del Model Context Protocol (MCP).
Diseñado para auditorías de seguridad autorizadas: el LLM identifica de forma autónoma los tipos de hash, selecciona estrategias de ataque, escala a través de múltiples enfoques y reporta los resultados en inglés sencillo. Todo el procesamiento es local: ningún dato sale de tu máquina.
Arquitectura
User (natural language)
↓
Local LLM — qwen2.5 via Ollama
(decides which tools to call and with what arguments)
↓
MCP Client — bridges LLM decisions to real tool execution
↓
MCP Server — exposes Hashcat as structured tools
↓
Hashcat — performs actual password recovery
↓
Results logged to results/session_log.jsonRelated MCP server: PentestMCP
Herramientas
Herramienta | Descripción |
| Identifica el algoritmo de hash a partir del formato/longitud (MD5, NTLM, SHA-1, bcrypt, etc.) |
| Lista las listas de palabras y archivos de reglas disponibles en el sistema |
| Descifra un solo hash con modo de ataque y lista de palabras configurables |
| Descifra múltiples hashes de un archivo con escalada automática |
Escalada de ataque (automática)
El LLM sigue esta secuencia automáticamente para cada hash:
Ataque de diccionario — lista
10k-commonAtaque basado en reglas —
100k-ncsc+best66.ruleAtaque híbrido —
100k-ncsc+ máscara de 4 dígitos (?d?d?d?d)Lista de palabras más grande —
000webhost
Pila tecnológica
Componente | Versión | Propósito |
Hashcat | v7.1.2 | Motor de recuperación de contraseñas |
Ollama | latest | Runtime de LLM local |
qwen2.5 | 7B | LLM capaz de llamar herramientas |
FastMCP (Python) | latest | Framework de servidor MCP |
WSL2 Ubuntu | 24.x | Entorno Linux en Windows |
Configuración
Requisitos previos
Windows con WSL2 + Ubuntu
Ollama instalado (
curl -fsSL https://ollama.com/install.sh | sh)Hashcat instalado (
sudo apt install hashcat)SecLists clonado (
git clone --depth 1 https://github.com/danielmiessler/SecLists.git ~/SecLists)
Instalación
git clone https://github.com/YOUR_USERNAME/hashcat-mcp.git
cd hashcat-mcp
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtDescargar el LLM
ollama pull qwen2.5:latestUso
Iniciar el asistente
cd hashcat-mcp
source venv/bin/activate
python3 mcp_client.pyDescifrar un solo hash
You: crack this hash: 482c811da5d5b4bc6d497ffa98491e38
Assistant: [calls identify_hash → MD5 identified]
[calls run_hashcat → password123 found]
The password is: password123Descifrar un archivo por lotes
Crea un archivo con un hash por línea, o en formato username:hash:
admin:e90664c0af74160644d29e4d6147969b
user1:5f4dcc3b5aa765d61d8327deb882cf99
482c811da5d5b4bc6d497ffa98491e38Luego pregunta:
You: crack all hashes in /home/user/hashes.txt — they are MD5Salida:
==================================================
BATCH CRACK SUMMARY
==================================================
Total hashes: 3
Cracked: 3 (100.0%)
Not cracked: 0
==================================================
RESULTS:
✓ admin → Summer2024
✓ user1 → password
✓ (hash) → password123
==================================================
Full results saved to: results/session_log.jsonRegistro de sesión
Cada intento de descifrado se registra automáticamente en results/session_log.json:
{
"timestamp": "2026-08-19T19:33:27.932857",
"username": "admin",
"hash": "e90664c0af74160644d29e4d6147969b",
"hash_mode": 0,
"cracked": true,
"password": "Summer2024",
"attack_used": "mode 6 wordlist=100k-ncsc mask=?d?d?d?d"
}Tipos de hash admitidos
Algoritmo | Modo Hashcat | Formato de ejemplo |
MD5 |
|
|
NTLM |
|
|
SHA-1 |
|
|
SHA-256 |
|
|
bcrypt |
|
|
sha512crypt |
|
|
Seguridad y ética
Esta herramienta está diseñada exclusivamente para auditorías de seguridad de contraseñas autorizadas:
Probar la solidez de las contraseñas de la organización frente a métodos de ataque reales
Identificar contraseñas débiles antes de que lo hagan los atacantes
Generar evidencia para hacer cumplir las políticas de seguridad
Nunca utilices esta herramienta con hashes que no tengas autorización explícita para auditar.
Estructura del proyecto
hashcat-mcp/
├── mcp_server.py # MCP server — exposes Hashcat as tools
├── mcp_client.py # MCP client — connects LLM to server
├── prompts/
│ └── system_prompt.txt # LLM behavior instructions
├── hashes/ # Hash files for testing
├── results/
│ └── session_log.json # Automatic audit log
└── requirements.txtThis server cannot be installed
Maintenance
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
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform authorized security testing and penetration testing operations including SSL/TLS analysis, port scanning, vulnerability scanning, and HTTP security header audits through natural language interactions.1MIT
- AlicenseCqualityDmaintenanceEnables LLMs to perform Active Directory penetration testing using tools like NetExec, Bloodhound, Nmap, Certipy, and John the Ripper. Automates vulnerability discovery, attack path analysis, and documentation generation for security assessments.266MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform penetration testing and security assessments by exposing 60+ Kali Linux security tools including network scanning, web security testing, password cracking, exploitation frameworks, and OSINT capabilities through an AI-friendly interface.2MIT
- AlicenseAqualityFmaintenanceEnables AI assistants to perform authorized WiFi security assessments, including network scanning, handshake capture, and password cracking, by executing aircrack-ng commands on a remote Kali Linux system via SSH.16MIT
Related MCP Connectors
Offline methodology engine for authorized penetration testing, CTF, and security research.
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/chess960king/hashcat-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server