acunetix-mcp-server
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., "@acunetix-mcp-serverShow me recent vulnerabilities found across all targets"
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.
Awvs MCP Server
Model Context Protocol (MCP) server that lets any LLM (Claude, WorkBuddy, Cursor, etc.) directly operate an Acunetix / Invicti Web Vulnerability Scanner.
当前版本:v1.1.4
基于官方内置 API 文档(Swagger 2.0,111 路径 / 161 操作)与公开接口行为分析,将 Acunetix 的完整 API 协议(GraphQL + REST 双通道)封装为 15 个 LLM 可调用工具。官方已确认该产品提供完整 REST API,本 Server 是其 MCP 化封装。
Features
双通道 API 桥:GraphQL(
/graphql/,主 UI 通道)+ REST(/api/v1/,业务数据通道)两种官方认证:
官方 API Key(Profile 页生成,
X-Auth头,纯认证无会话)— 推荐会话登录(
loginUsermutation,密码 SHA-256 预哈希)
15 个 MCP 工具:认证 / GraphQL 通用执行器 / REST 通用执行器 / 目标 / 扫描 / 漏洞 / 报告 / 配置 / 统计 / 用户
健壮错误处理:429 限流自动退避、401 会话失效识别、GraphQL errors 解析、TLS 自签名证书兼容
安全设计:凭据经环境变量注入(不硬编码)、token 仅存内存、写操作工具显式标注
Related MCP server: pentestMCP
Design Philosophy(设计原则)
工具是被调用的能力层,不是决策层。
工具只负责:接受 LLM 参数 → 执行对应系统操作 → 完整结构化返回结果
工具不拦截 LLM 调用、不自动替 LLM 做决定、不隐藏额外行为(如自动重登/自动续期)
判断、规划、决策全部归 LLM;工具通过"信息完备 + 调用便利"支持决策
错误返回是"信息"(说明发生了什么 + 可选方向),不是"指令"(不强制 LLM 怎么做)
长时间阻塞类操作返回状态快照,由 LLM 决定是否轮询
辅助查询(如查重)做成独立工具,供 LLM 按需调用,而非内嵌自动执行
Quick Start
💡 首次使用? 请先阅读 examples/NEW_USER_GUIDE.md(5 步完整上手:获取 API Key → 填到哪 → 验证 → 使用 → 故障排查)。配置模板见 examples/.env.example 与 examples/mcp-config-absolute.example.json。
1. 安装
# 方式 A:源码运行(当前唯一方式,推荐)
pip install -r requirements.txt
2. 配置凭据(账号密码 / API Key 填这里)
凭据通过环境变量或 MCP 客户端的 environment 字段传入,不写进代码。
Linux / macOS(bash):
# 方式一(推荐):官方 API Key —— Acunetix 界面 → 你的用户名 → Profile → API Key → Generate new API key
export ACUNETIX_API_KEY="<your-api-key>"
# 方式二:账号密码(会话登录,有单会话约束)
export ACUNETIX_EMAIL="<your-email>"
export ACUNETIX_PASSWORD="<your-password>"
# 可选
export ACUNETIX_BASE_URL="https://localhost:3443"
export ACUNETIX_VERIFY_SSL="false"Windows(PowerShell):
$env:ACUNETIX_API_KEY="<your-api-key>"
$env:ACUNETIX_BASE_URL="https://localhost:3443"
$env:ACUNETIX_VERIFY_SSL="false"Windows(CMD):
set ACUNETIX_API_KEY=<your-api-key>
set ACUNETIX_BASE_URL=https://localhost:3443💡 通用建议:在 MCP 客户端(如 Claude Desktop / WorkBuddy)的配置文件
environment字段中设置凭据,即可跨平台免环境变量,各操作系统行为一致。
3. 验证配置(自检)
python -m acunetix_mcp --selftest预期输出:认证: 官方 API Key → REST me: <邮箱> → targets: <N> 个目标 → 自检通过。
4. 启动 MCP Server(两种方式)
# 方式 A:命令行直接启动(stdio 模式)
python -m acunetix_mcp
# 方式 B:MCP 客户端配置中声明(推荐,示例见 examples/mcp-config-absolute.example.json)
# 用 __main__.py 的绝对路径,无需依赖 PYTHONPATH,最稳妥{
"mcpServers": {
"acunetix-mcp": {
"type": "local",
"command": "python",
"args": ["-m", "acunetix_mcp"],
"environment": {
"ACUNETIX_BASE_URL": "https://localhost:3443",
"ACUNETIX_API_KEY": "<your-api-key>"
}
}
}
}没有预置凭据也能用:若客户端未配置 environment,可直接在对话中调用
acunetix_use_api_key("<key>")或acunetix_login(email="...", password="...")传入。
Available Tools (15)
Tool | Type | Description |
| auth | 会话登录(方式二,回退) |
| auth | 官方 API Key 认证(方式一,推荐) |
| auth | 清理本地会话 |
| query | 当前用户信息(GraphQL) |
| generic | 任意 GraphQL query/mutation(覆盖任意功能) |
| generic | 任意 REST 端点调用(GET/POST/PUT/DELETE) |
| business | 目标列表 |
| business | 单目标详情 |
| business | 扫描列表 |
| business | 漏洞列表 |
| business | 报告列表 |
| business | 扫描配置 |
| business | 用户统计(最易受攻击目标) |
| write | 新增目标(criticality: 30/20/10/0) |
| write | 启动扫描 |
通用执行器(
acunetix_gql/acunetix_rest)可覆盖官方 YAML 中全部 111 路径 / 161 操作。
Typical Workflow (LLM 自主操作)
1. acunetix_use_api_key("<key>") 或 acunetix_login()
2. acunetix_list_targets() # 查看目标 → 取 target_id
3. acunetix_list_scan_profiles() # 查看配置 → 取 profile_id
4. acunetix_start_scan(target_id, profile_id)
5. acunetix_list_scans() # 轮询扫描状态
6. acunetix_list_vulnerabilities() # 获取漏洞
7. acunetix_gql(GetReport) # 生成报告
8. acunetix_logout()Documentation
docs/PROTOCOL.md — 协议说明(认证机制、双通道、限流、单会话约束)
docs/SECURITY.md — 安全性考量
Security Notes
凭据安全:API Key / 密码仅通过环境变量传入,代码不落盘、不硬编码。
最小权限:建议为自动化创建独立低权限账号(本仓库默认凭据为演示用途)。
写操作:
acunetix_add_target/acunetix_start_scan为写操作,生产环境建议在 MCP 层加人工确认。TLS:本机自签名证书默认
verify_ssl=False,生产环境必须开启证书校验。
License
MIT
Disclaimer
本工具仅用于授权环境下的安全测试与自动化集成。使用前请确保你拥有目标系统的合法授权。Acunetix / Invicti 为相应公司的商标。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityFmaintenanceAn MCP server that integrates various penetration testing tools, enabling security professionals to perform reconnaissance, vulnerability scanning, and API testing through natural language commands in compatible LLM clients like Claude Desktop.7
- Flicense-qualityBmaintenanceAn MCP server that exposes over 20 standard penetration testing utilities, such as Nmap, SQLMap, and OWASP ZAP, as callable tools for AI agents. It enables natural language control over complex security workflows for automated and interactive penetration testing.90
- Flicense-qualityCmaintenanceA lightweight MCP server that wraps OWASP ZAP's REST API as Model Context Protocol tools, enabling AI agents to perform automated security scanning.
- AlicenseCqualityCmaintenanceAI-powered security scanning MCP server that exposes 25+ professional tools, enabling penetration testing and security assessments through natural language interaction with AI agents like Claude Desktop.31MIT
Related MCP Connectors
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/McxM123/acunetix-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server