sec-aircrack-ng-mcp
Enables 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.
README
Aircrack-ng MCP Server
A Model Context Protocol (MCP) server that provides WiFi security auditing capabilities using the aircrack-ng suite. Commands are executed on a remote Kali Linux system via SSH, enabling AI assistants to perform authorized wireless security assessments.
Features
- Monitor Mode Management - Enable/disable monitor mode on wireless interfaces
- Network Discovery - Scan and enumerate wireless networks with detailed information
- Packet Capture - Capture packets from targeted access points (background operation)
- Handshake Capture - Deauthentication attacks to capture WPA/WPA2 handshakes
- Password Cracking - Attempt to crack captured handshakes using wordlists
- Remote Execution - All operations run on a remote Kali system via SSH
Prerequisites
- Kali Linux System - With aircrack-ng suite installed
- SSH Access - Passwordless SSH recommended (key-based authentication)
- Wireless Adapter - Compatible adapter that supports monitor mode and packet injection
- Node.js - Version 18 or higher
Installation
# Clone the repository
git clone https://github.com/schwarztim/sec-aircrack-ng-mcp.git
cd sec-aircrack-ng-mcp
# Install dependencies
npm install
# Build the TypeScript code
npm run build
Configuration
Configure the server using environment variables:
| Variable | Description | Default |
|---|---|---|
KALI_HOST |
Hostname or IP address of Kali system | kali |
SSH_USER |
SSH username | kali |
SSH_KEY |
Path to SSH private key file | (none - uses default) |
CAPTURE_DIR |
Directory for capture files on Kali | /tmp/aircrack-captures |
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"aircrack-ng": {
"command": "node",
"args": ["/path/to/sec-aircrack-ng-mcp/dist/index.js"],
"env": {
"KALI_HOST": "192.168.1.100",
"SSH_USER": "kali",
"SSH_KEY": "/path/to/ssh/key"
}
}
}
}
Available Tools
Connection & Setup
| Tool | Description |
|---|---|
test_connection |
Test SSH connection and verify aircrack-ng installation |
airmon_check |
List wireless interfaces and their status |
airmon_check_kill |
Kill processes that interfere with monitor mode |
airmon_start |
Enable monitor mode on a wireless interface |
airmon_stop |
Disable monitor mode and restore managed mode |
Scanning & Capture
| Tool | Description |
|---|---|
airodump_scan |
Scan for wireless networks (returns BSSID, channel, encryption, ESSID) |
airodump_capture |
Start packet capture on a specific target (runs in background) |
airodump_stop |
Stop a running packet capture |
airodump_status |
Check status of a running capture |
Attacks
| Tool | Description |
|---|---|
aireplay_deauth |
Send deauthentication frames (helps capture WPA handshakes) |
aireplay_fakeauth |
Perform fake authentication with AP (for WEP attacks) |
Cracking
| Tool | Description |
|---|---|
aircrack_crack |
Attempt to crack WPA/WPA2 handshake using a wordlist |
aircrack_check_handshake |
Verify if a valid handshake has been captured |
Utilities
| Tool | Description |
|---|---|
list_captures |
List all capture files in the captures directory |
cleanup_captures |
Delete capture files |
get_interface_info |
Get detailed information about a wireless interface |
Typical Workflow
A typical WPA/WPA2 security assessment workflow:
1. test_connection # Verify SSH connectivity and aircrack-ng
2. airmon_check # List available wireless interfaces
3. airmon_check_kill # Kill interfering processes
4. airmon_start(wlan0) # Enable monitor mode -> wlan0mon
5. airodump_scan(wlan0mon, 30) # Scan for networks (30 seconds)
6. airodump_capture(...) # Start capturing target network
7. aireplay_deauth(...) # Deauth to force handshake
8. aircrack_check_handshake(...) # Verify handshake captured
9. aircrack_crack(...) # Attempt to crack password
10. airodump_stop(...) # Stop the capture
11. airmon_stop(wlan0mon) # Restore managed mode
Security Considerations
- Authorization Required - Only use on networks you own or have explicit written permission to test
- SSH Security - Use key-based authentication and restrict SSH access
- Capture Files - Captured data may contain sensitive information; handle appropriately
- Legal Compliance - Ensure compliance with local laws and regulations
Legal Notice
WARNING: Unauthorized access to computer networks is illegal in most jurisdictions.
This tool is intended exclusively for:
- Authorized penetration testing
- Security research on networks you own
- Educational purposes in controlled environments
The authors assume no liability for misuse of this software. Users are solely responsible for ensuring they have proper authorization before conducting any security testing.
Development
# Watch mode for development
npm run dev
# Build for production
npm run build
# Run the server
npm start
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Acknowledgments
- Aircrack-ng Team - For the excellent wireless security suite
- Model Context Protocol - For the MCP specification
- Anthropic - For Claude and the MCP ecosystem
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。