XMAP is a CLI-based AI-powered Nmap automation tool built using an MCP-style architecture.
It allows you to chat with an AI and run Nmap scans automatically.
- Run Nmap scans using natural language
- Use AI to decide which scan to run
- Execute scans automatically
- Show results in terminal
- Ask follow-up questions like open ports
xmap_mcp/
βββ ai_client.py
βββ mcp_server.py
βββ tools.py
βββ api.env
βββ .gitignore
- Python 3+
- Nmap installed
- OpenRouter API key
git clone https://github.com/yourname/xmap_mcp.git
cd xmap_mcp
pip install requests
Create file:
.gitignore
Add:
api.env
pycache/
python ai_client.py
scan scanme.nmap.org
fast scan scanme.nmap.org
full scan scanme.nmap.org
service scan scanme.nmap.org
detect os of scanme.nmap.org
ping google.com
get open ports
hello
scan
fast_scan
full_scan
service_scan
os_detect
ping_host
get_open_ports
chat
This project is for educational and ethical security testing only.
Do NOT scan targets without permission.
Vignesh
Cybersecurity | AI Agents | DevOps | Automation