Skip to main content
Glama
Burp Suite MCP Server

Burp Suite MCP Server

by jayluxferro

Burp Suite MCP 服务器

一个 MCP (Model Context Protocol) 服务器,将 Burp Suite 的 REST API 作为工具暴露给 AI 助手。使用 Cursor 或其他 MCP 客户端来触发漏洞扫描、检查进度并查询 Burp 的安全知识库。

前提条件

  • Burp Suite Professional (或 Burp Suite DAST),并已启用 REST API

  • Python 3.11+

  • Burp 在本地运行,且 REST API 绑定到可访问的地址 (例如 http://127.0.0.1:1337)

Related MCP server: MCPPentestBOT

设置

1. 启用 Burp REST API

  1. 打开 Burp Suite → Settings → Suite → REST API

  2. 勾选 Service running

  3. 设置 URL/端口 (例如端口 1337)

  4. 创建一个 API 密钥并复制它

2. 安装 MCP 服务器

uv sync   # or: pip install -e .

3. 配置环境变量

将 .env.example 复制为 .env 并填入你的值:

cp .env.example .env

编辑 .env:

BURP_REST_API_BASE=http://127.0.0.1:1337
BURP_REST_API_KEY=your-api-key-here
BURP_REST_API_VERSION=v0.1

传输模式

服务器支持三种传输方式,通过 --transport 选择:

标志

传输方式

使用场景

--transport stdio

stdio (默认)

本地 MCP 客户端 (Cursor, Claude Desktop)

--transport sse

Server-Sent Events

使用传统 SSE 协议的 HTTP 客户端

--transport http

Streamable HTTP

使用现代 MCP HTTP 协议的 HTTP 客户端

对于 sse 和 http,绑定地址和端口是可配置的:

# Default: localhost only, port 8000
uv run python main.py --transport http

# Expose on all interfaces, custom port
uv run python main.py --transport http --host 0.0.0.0 --port 9000

# SSE transport
uv run python main.py --transport sse --host 127.0.0.1 --port 8000

Cursor MCP 配置

stdio (本地进程)

添加到你的 Cursor MCP 配置中 (例如 ~/.cursor/mcp.json 或项目 .cursor/mcp.json):

{
  "mcpServers": {
    "burp-suite": {
      "command": "uv",
      "args": ["run", "python", "/path/to/burp-mcp/main.py"],
      "cwd": "/path/to/burp-mcp"
    }
  }
}

HTTP (远程/共享服务器)

使用 HTTP 传输启动服务器,然后将你的 MCP 客户端指向它:

uv run python main.py --transport http --host 0.0.0.0 --port 8000
{
  "mcpServers": {
    "burp-suite": {
      "url": "http://localhost:8000/mcp"
    }
  }
}

工具

工具

描述

burp_suite_security_issue_definitions

获取 Burp 的安全问题定义 (名称、描述、修复建议、参考资料)

scan_urls_for_vulnerabilities

为给定的 URL 启动扫描。返回用于跟踪的 task_id。可选 scope 参数

check_security_scan_progress

通过 task_id 获取扫描状态和发现的问题。按严重程度过滤:low, info, medium, high 或 all

get_scan_summary

高级摘要:按严重程度统计的问题总数

list_active_scans

列出正在运行/挂起的扫描 (并非所有 Burp API 版本都支持)

cancel_scan

通过 task_id 取消扫描 (并非所有 Burp API 版本都支持)

check_burp_connectivity

测试与 Burp API 的连接;验证配置

wait_for_scan_completion

轮询直到扫描完成或超时 (用于 CI/CD)

使用示例

扫描 URL:

"Scan https://example.com for vulnerabilities"

检查扫描进度:

"Check scan progress for task_id 123"

仅获取高严重性问题:

"Check scan 123 and show only high severity issues"

安全知识:

"What security issues does Burp know about?"

命令行使用

从脚本或终端运行扫描:

uv run python examples/ci-scan.py https://your-target.com
# or
./examples/ci-scan.sh https://your-target.com

使用的 Burp REST API 端点

端点

方法

描述

/knowledge_base/issue_definitions

GET

安全问题定义

/scan

POST

启动扫描 (body: {"urls": [...]})

/scan

GET

列出扫描 (可能不支持)

/scan/{task_id}

GET

扫描进度和结果

/scan/{task_id}

DELETE

取消扫描 (可能不支持)

交互式 API 文档:[BURP_REST_API_BASE]/[API_KEY]

许可证

MIT

Available Tools

8 tools
burp_suite_security_issue_definitionsA

Get all Burp Suite security issue definitions (name, description, remediation, references).

Inputs: no named parameters. Returns: result

cancel_scanC
Cancel a scan by task_id. May not be supported by all Burp API versions.

Args:
    task_id: Task ID of the scan to cancel

Inputs: task_id (required). Returns: result

check_burp_connectivityA

Test connectivity to the Burp REST API. Validates config and performs a simple request.

Inputs: no named parameters. Returns: result

check_security_scan_progressA
Retrieves scan progress and details using the task_id.

Args:
    task_id: Task ID from an initiated scan (numeric ID or full path)
    severity: Filter issues: low, info, medium, high, or "all" (default)

Inputs: task_id (required), severity. Returns: result

get_scan_summaryA
Get a high-level summary of scan results: total issues by severity.

Args:
    task_id: Task ID from an initiated scan

Inputs: task_id (required). Returns: result

list_active_scansA

List running and pending scans. May not be supported by all Burp API versions.

Inputs: no named parameters. Returns: result

scan_urls_for_vulnerabilitiesC
Scan URL(s) for security vulnerabilities.

Args:
    urls: List of URLs to scan
    scope: Optional scope configuration (passed to API if supported)

Inputs: urls (required), scope. Returns: result

wait_for_scan_completionA
Poll scan progress until the scan completes or times out.
Useful for long-running scans in CI/CD.

Args:
    task_id: Task ID from an initiated scan
    poll_interval_seconds: Seconds between polls (default: 10)
    max_wait_seconds: Maximum time to wait (default: 3600 = 1 hour)

Inputs: task_id (required), poll_interval_seconds, max_wait_seconds. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 8 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some potential overlap between check_security_scan_progress and get_scan_summary, as both retrieve scan results using a task_id, which could cause confusion. However, their descriptions clarify that one provides detailed progress and filtered issues while the other gives a high-level summary, helping to differentiate them.

    Naming Consistency5/5

    All tool names follow a consistent snake_case pattern with clear verb_noun structures, such as cancel_scan, check_burp_connectivity, and scan_urls_for_vulnerabilities. This uniformity makes the tool set predictable and easy to navigate, with no deviations in naming conventions.

    Tool Count5/5

    With 8 tools, the server is well-scoped for managing Burp Suite security scans, covering connectivity testing, scan initiation, progress monitoring, result retrieval, and cancellation. Each tool serves a specific role in the scanning lifecycle, and the count is appropriate for the domain without being excessive or insufficient.

    Completeness4/5

    The tool set provides comprehensive coverage for security scanning workflows, including initiation, monitoring, and result analysis, with minor gaps such as the lack of tools for configuring scan settings or managing scan history. However, core operations are well-covered, and agents can perform essential tasks without significant dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      Enables AI agents to generate and manage specialized bug bounty hunting workflows including reconnaissance, vulnerability testing, OSINT gathering, and file upload testing. Provides REST API endpoints for comprehensive security assessments with intelligence-driven vulnerability prioritization.
      40
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to perform authorized security testing and penetration testing operations including SSL/TLS analysis, port scanning, vulnerability scanning, and HTTP security header audits through natural language interactions.
      1
      MIT
    • A
      license
      C
      quality
      B
      maintenance
      Connects AI coding assistants to Snyk API & Web for onboarding scan targets, configuring authentication, running DAST scans, and triaging findings through natural language.
      51
      30 PyPI
      8
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to perform authorized security assessments through natural language, including port scanning, CVE lookup and search, IP reputation checks, SSL/TLS and HTTP header analysis, DNS/WHOIS enumeration, Shodan intelligence, and consolidated reports.
      MIT