The CyberAI MCP server exposes reconnaissance and threat-intel capabilities as Model Context Protocol tools, so MCP clients such as Claude Desktop and Cursor can drive CyberAI directly.
| Tool | Purpose | Required args |
|---|---|---|
nmap_scan |
Port-scan a host with nmap | target |
dns_enum |
Resolve DNS records | target |
whois_lookup |
WHOIS registration lookup | target |
subdomain_enum |
Enumerate subdomains | target |
cve_search |
Search NVD by keyword | keyword |
cve_detail |
Fetch one CVE by id | cve_id |
epss_score |
EPSS exploitation scores | cve_ids |
- Python 3.11+ with CyberAI installed (
pip install -e .from the repo root). nmaponPATHfornmap_scan.NVD_API_KEYin the environment for higher NVD rate limits (optional).
The server speaks MCP over stdio:
python -m cyberai.mcp.serverIt does not print anything on its own — it waits for an MCP client to connect over stdin/stdout. To run a quick local smoke test, use the MCP Inspector:
npx @modelcontextprotocol/inspector python -m cyberai.mcp.serverEdit the Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add a cyberai entry under mcpServers:
{
"mcpServers": {
"cyberai": {
"command": "python",
"args": ["-m", "cyberai.mcp.server"],
"env": {
"NVD_API_KEY": "your-key-here"
}
}
}
}Restart Claude Desktop. The CyberAI tools appear in the tool picker; you can ask Claude to run a scan or look up a CVE, and it will call the tools.
Cursor reads MCP servers from ~/.cursor/mcp.json (global) or
.cursor/mcp.json (per-project):
{
"mcpServers": {
"cyberai": {
"command": "python",
"args": ["-m", "cyberai.mcp.server"]
}
}
}Use an absolute path to the Python interpreter from the CyberAI environment if
python on PATH is not the right one, e.g.
/home/you/repo/CyberAI/.venv/bin/python.
These tools run real reconnaissance against whatever target the client supplies.
Only point them at systems you are authorized to test. nmap_scan enforces a
flag whitelist; the other tools perform read-only lookups.
- No tools appear — confirm the server starts without import errors:
python -c "import cyberai.mcp.server". nmap_scanreturns an error — ensurenmapis installed and onPATH.- NVD rate-limit errors — set
NVD_API_KEY; without it NVD allows far fewer requests per minute.