john-the-ripper-mcp
Click on "Install 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-mcpcrack 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
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
This 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.
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/schwarztim/sec-john-the-ripper-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server