john-the-ripper-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@john-the-ripper-mcp crack these MD5 hashes using rockyou"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
John the Ripper MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with access to John the Ripper, the legendary password security auditing and recovery tool. This server executes commands on a remote Kali Linux system via SSH, enabling secure password analysis workflows.
Features
Password Cracking - Multiple attack modes: wordlist, incremental, single crack, and rules-based
Hash Management - Show cracked passwords, manage pot files, identify hash types
Session Control - Create, monitor, restore, and terminate cracking sessions
Hash Extraction - Extract hashes from encrypted files (ZIP, PDF, SSH keys, Office docs, etc.)
Benchmarking - Test cracking performance for different hash formats
Rules Engine - List and test password mangling rules
Related MCP server: K-MCP: Kali Model Context Protocol Server
Installation
# Clone the repository
git clone https://github.com/schwarztim/sec-john-the-ripper-mcp.git
cd sec-john-the-ripper-mcp
# Install dependencies
npm install
# Build
npm run buildConfiguration
The server connects to a remote Kali Linux system via SSH. Configure via environment variables:
Variable | Description | Default |
| SSH hostname or IP of Kali system |
|
| SSH username (optional) | (none) |
| Path to john binary on remote system |
|
| Remote working directory for temp files |
|
Prerequisites
SSH Access - Passwordless SSH key authentication to your Kali system
John the Ripper - Installed on the remote Kali system (
apt install john)Node.js - Version 18+ recommended
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"john-the-ripper": {
"command": "node",
"args": ["/path/to/sec-john-the-ripper-mcp/dist/index.js"],
"env": {
"JOHN_SSH_HOST": "your-kali-host",
"JOHN_SSH_USER": "kali"
}
}
}
}Available Tools
Cracking Operations
Tool | Description |
| Start password cracking with configurable modes and options |
| Display cracked passwords from hash files |
| Check the status of running sessions |
| Resume an interrupted cracking session |
| List all active and saved sessions |
| Terminate running John processes |
Hash Analysis
Tool | Description |
| Identify hash type(s) for given values |
| List supported hash formats with optional filtering |
| Extract hashes from encrypted files using *2john utilities |
Configuration & Testing
Tool | Description |
| List available rules or test rules against sample words |
| Run performance benchmarks for hash formats |
| Manage the john.pot file (show, clear, export, search) |
Usage Examples
Crack MD5 Hashes with Wordlist
Use john_crack with:
- hash_content: "5f4dcc3b5aa765d61d8327deb882cf99"
- format: "raw-md5"
- wordlist: "/usr/share/wordlists/rockyou.txt"Identify Unknown Hash
Use john_identify with:
- hash: "$2a$10$N9qo8uLOickgx2ZMRZoMy..."Extract Hash from ZIP File
Use john_hash_extract with:
- type: "zip"
- file_path: "/path/to/encrypted.zip"Check Cracking Progress
Use john_status with:
- session: "my-crack-session"Supported Hash Extraction Types
zip- ZIP archivesrar- RAR archivespdf- PDF documentsssh- SSH private keysgpg- GPG/PGP keysoffice- Microsoft Office documentskeepass- KeePass databases7z- 7-Zip archivesbitlocker- BitLocker volumesluks- LUKS encrypted volumestruecrypt/veracrypt- TrueCrypt/VeraCrypt volumesethereum/bitcoin- Cryptocurrency wallets
Security Considerations
This tool is intended for authorized security testing only. Ensure you have proper authorization before:
Testing password strength on systems you own or administer
Conducting penetration tests with written permission
Recovering passwords for files you have legitimate access to
Unauthorized password cracking is illegal. Always follow your organization's security policies and applicable laws.
License
MIT License - See LICENSE for details.
Contributing
Contributions welcome! Please open an issue or submit a pull request.
Credits
John the Ripper by Openwall
Built with the Model Context Protocol SDK
Available Tools
12 toolsjohn_benchmarkA
Run benchmarks to test cracking speed for different hash types
Inputs: format, duration.
john_crackA
Start password cracking with John the Ripper. Supports various modes including wordlist, incremental, and single crack.
Inputs: fork, rules, format, session, +5 more.
john_formatsA
List all supported hash formats. Can filter by keyword.
Inputs: filter, details.
john_hash_extractA
Extract hashes from various file types using John's *2john utilities
Inputs: type (required), file_path (required).
john_identifyB
Identify the hash type(s) for given hash values
Inputs: hash, hash_file.
john_killB
Kill a running John the Ripper process or session
Inputs: all, session.
john_potC
Manage the john.pot file containing cracked passwords
Inputs: action (required), search.
john_restoreA
Restore and continue an interrupted cracking session
Inputs: session.
john_rulesB
List available mangling rules or test rules against words
Inputs: list, test_rules, test_words.
john_sessionsA
List all active and saved John the Ripper sessions
Inputs: no named parameters.
john_showC
Show cracked passwords from a hash file or pot file
Inputs: format, hash_file, show_left, hash_content.
john_statusB
Check the status of a cracking session
Inputs: session.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools have distinct purposes, but john_status and john_sessions could overlap since both deal with session information, and john_show and john_pot both relate to cracked passwords. However, descriptions clarify the specific roles, so confusion is minimal.
All tool names follow a consistent john_ prefix followed by a verb-noun combination (e.g., john_crack, john_show, john_hash_extract). The snake_case style is uniform, making the naming predictable and readable.
12 tools is well within the ideal range for a specialized utility. Each tool addresses a distinct aspect of John the Ripper's workflow, and there is no bloat or unnecessary duplication.
The tool set covers the full lifecycle of password cracking: hash extraction, identification, format listing, cracking, monitoring/restoring, showing results, pot management, benchmarking, rules, and session control. No obvious gaps for the domain.
Maintenance
Related MCP Connectors
Utility tools for AI agents: hashing, text stats, validation, DNS, currency, GEO audits.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Work on your own computers from Claude or ChatGPT: run commands, edit and search files.
Scoped, audited SSH exec, sessions, and SFTP on your saved servers without exposing credentials
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to execute penetration testing commands and security tools on Kali Linux remotely. Supports automated reconnaissance, vulnerability scanning, and CTF solving through integration with 25+ offensive security tools like nmap, gobuster, and nuclei.16-
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to a Kali Linux terminal for executing security tools, managing interactive shell sessions, and performing penetration testing, CTF challenges, and security research tasks.1MIT
- 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
- FlicenseNot gradedqualityDmaintenanceEnables AI to execute commands on remote hosts via SSH, supporting password and key authentication.-