Logo BugBounty MCP Server

BugBounty MCP Server

Cộng đồng
gokulapap

Comprehensive MCP server for bug bounty hunting and web application penetration testing

Nhà phát hànhgokulapap
Kho mãbugbounty-mcp-server
Ngôn ngữPython
Bản fork
12
Sao
43
Công cụ có sẵn
0
Phương thức truyền tảistdio, streamable-http
Danh mục
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    BugBounty MCP Server cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    43 sao và 12 bản fork từ kho mã được liên kết.

BugBounty MCP Server

A production-oriented Model Context Protocol server for authorized bug bounty reconnaissance, bounded security checks, and finding management.

Version 2.2 exposes 53 implemented tools. Every tool has closed input and typed output schemas, server-side bounds, honest MCP annotations, and protocol-level tests. Network operations are scope checked; local analyzers do not open the network. The server uses the current MCP Python SDK v2 API and supports stdio and Streamable HTTP transports.

Use this server only on systems you own or have explicit permission to test. The server enforces configured scope, but authorization remains the operator's responsibility.

What is included

AreaTools
Safety and orchestrationscope_check, batch_scope_check, server_health, assessment_summary
Local analysisdomain_variation_generator, url_parameter_analysis, secret_pattern_analysis, cloud_asset_reference_analysis, cvss_v31_calculator, jwt_security_test, openapi_security_analysis
DNS and asset discoverydns_enumeration, dnssec_posture_analysis, wildcard_dns_analysis, dangling_dns_analysis, email_security_analysis, subdomain_enumeration
HTTP discoveryhttp_probe, batch_http_probe, web_crawler, web_directory_scan, web_metadata_discovery, robots_txt_analysis, sitemap_analysis, javascript_endpoint_discovery, source_map_discovery, favicon_fingerprint
Web and API postureheaders_analysis, csp_analysis, cors_scan, cookie_security_analysis, cache_policy_analysis, sri_analysis, technology_fingerprint, security_txt_analysis, openapi_discovery, oauth_oidc_discovery, graphql_endpoint_discovery, http_method_analysis, sensitive_file_exposure_scan
Network and TLSssl_scan, tls_configuration_analysis, port_scan
Optional integrationsnuclei_scan, subfinder_discovery, amass_passive_discovery, assetfinder_discovery, gau_url_discovery
Findings and reportscreate_finding, add_finding_evidence, list_findings, update_finding, generate_vulnerability_report

The server also exposes MCP-native knowledge and state:

  • Nine bundled guidance resources plus live tool-schema, configuration-schema, assessment-state, finding, and integrity-checked evidence resources.
  • Resource templates for findings and evidence.
  • Five reusable prompts for planning, passive reconnaissance, triage, disclosure, and remediation validation.
  • Argument completion for configured targets, finding IDs, and report audiences.

The server deliberately does not expose simulated scanners, credential dumping, persistence, anti-forensics, social-engineering templates, destructive exploit automation, or payload generators. Tool count never overrides authorization, bounded execution, or truthful results.

Requirements

  • Python 3.10 or newer; Python 3.11+ is recommended.
  • An MCP-compatible client.
  • Nuclei and the four passive bug-bounty CLI adapters are optional and disabled unless explicitly enabled.

Install

bash
git clone https://github.com/gokulapap/bugbounty-mcp-server.git
cd bugbounty-mcp-server
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e .
cp env.example .env

Set at least one authorized target before using a network tool:

dotenv
SAFE_MODE=true
ALLOWED_TARGETS=example.com,*.example.com

Safe mode is fail-closed. If ALLOWED_TARGETS is empty, network tools reject every target.

Validate the installation:

bash
bugbounty-mcp validate-config
bugbounty-mcp list-tools
bugbounty-mcp list-resources
bugbounty-mcp list-prompts

For development:

bash
python -m pip install -e '.[dev]'
ruff check .
mypy bugbounty_mcp_server
pytest --cov=bugbounty_mcp_server

MCP client configuration

Use the virtual environment's absolute executable path. A generic MCP client configuration looks like this:

json
{
  "mcpServers": {
    "bugbounty": {
      "command": "/absolute/path/bugbounty-mcp-server/.venv/bin/bugbounty-mcp",
      "args": ["serve"],
      "env": {
        "SAFE_MODE": "true",
        "ALLOWED_TARGETS": "example.com,*.example.com"
      }
    }
  }
}

The default transport is stdio. Nothing except MCP protocol messages is written to stdout; logs go to stderr.

Target scope

Scope entries are comma-separated and matched after canonicalization:

dotenv
# The apex only
ALLOWED_TARGETS=example.com

# Subdomains only; does not include the apex
ALLOWED_TARGETS=*.example.com

# Both apex and subdomains
ALLOWED_TARGETS=example.com,*.example.com

# An internal lab requires both the CIDR and explicit private-target opt-in
ALLOWED_TARGETS=10.20.0.0/16
ALLOW_PRIVATE_TARGETS=true

# Block rules win over allow rules
BLOCKED_TARGETS=admin.example.com

Safety behavior:

  • Exact domains do not match lookalikes or subdomains.
  • *.example.com matches child labels but not example.com itself.
  • CIDR rules match IP targets.
  • Block rules take precedence.
  • Credentials embedded in URLs and non-HTTP URL schemes are rejected.
  • Redirect destinations are re-authorized before they are followed.
  • Public domain names resolving to private, loopback, link-local, reserved, or multicast addresses are rejected unless private targets are explicitly enabled.
  • Port count, concurrency, body size, redirect count, crawl depth, pages, paths, runtime, and MCP output all have server-side limits.

Configuration

Configuration priority is: defaults, optional JSON/YAML file, then environment variables.

bash
bugbounty-mcp --config config.yaml serve
bugbounty-mcp export-config --format yaml --output config.yaml

Important settings:

VariableDefaultPurpose
SAFE_MODEtrueRequire allow-list matching
ALLOWED_TARGETSemptyAuthorized exact domains, wildcards, IPs, or CIDRs
BLOCKED_TARGETSemptyExplicitly denied targets
ALLOW_PRIVATE_TARGETSfalsePermit non-public IP space for a controlled lab
REQUESTS_PER_SECOND5Shared outbound pacing
DEFAULT_TIMEOUT15HTTP operation timeout in seconds
CONNECT_TIMEOUT2TCP connect timeout in seconds
TOOL_TIMEOUT300Whole MCP tool-call timeout
MAX_CONCURRENT_SCANS30Concurrency cap
MAX_PORTS_PER_SCAN1024TCP port cap per call
MAX_CRAWL_DEPTH2Crawler depth cap
MAX_PAGES_TO_CRAWL30Crawler page cap
MAX_LINKS_PER_PAGE1000Per-page crawler link inventory cap
MAX_FORMS_PER_PAGE200Per-page crawler form inventory cap
MAX_EVIDENCE_BYTES500000Per-artifact evidence limit
DATA_DIRdataFinding store directory
OUTPUT_DIRoutputReport directory
HTTP_BEARER_TOKENemptyOptional Streamable HTTP bearer token, minimum 24 characters
ENABLE_NUCLEIfalseEnable the optional Nuclei adapter
NUCLEI_PATHnucleiNuclei executable name or path
ENABLED_EXTERNAL_TOOLSemptyComma-separated opt-in: subfinder,amass,assetfinder,gau
SUBFINDER_PATHsubfinderSubfinder executable name or path
AMASS_PATHamassAmass executable name or path
ASSETFINDER_PATHassetfinderAssetfinder executable name or path
GAU_PATHgaugau executable name or path

See env.example for the full environment template.

Tool behavior

All tools have closed JSON Schemas (additionalProperties: false). Invalid input, unknown tools, scope violations, disabled dependencies, timeouts, output limits, and internal incidents return MCP CallToolResult objects with isError: true and a structured error:

json
{
  "error": {
    "code": "target_not_allowed",
    "message": "target is outside ALLOWED_TARGETS"
  }
}

Successful tools return both human-readable JSON text and structuredContent.

Nuclei

Nuclei execution must be enabled by the operator:

dotenv
ENABLE_NUCLEI=true
NUCLEI_PATH=nuclei

The adapter passes an argv list without a shell, validates severities and tags, restricts the target to scope, enforces a timeout and output bound, and returns a normalized finding subset. You are still responsible for reviewing installed templates and their request behavior.

Passive bug-bounty CLI adapters

Subfinder, Amass passive mode, Assetfinder, and gau are separately installed operator tools. Enable only the binaries you have reviewed:

dotenv
ENABLED_EXTERNAL_TOOLS=subfinder,amass,assetfinder,gau
SUBFINDER_PATH=subfinder
AMASS_PATH=amass
ASSETFINDER_PATH=assetfinder
GAU_PATH=gau

The adapters use argv-only subprocess execution, time and output limits, and discard results that do not revalidate against ALLOWED_TARGETS. No external binary is downloaded by this project or enabled by default. Passive providers can still receive the queried domain, so review their terms and the applicable bounty program rules.

Findings and reports

Findings are stored atomically in DATA_DIR/findings.json. Structured fields include confidence, impact, reproduction steps, CWE, CVSS score, tags, and source-tool attribution. Evidence artifacts are private, size-bounded, content-addressed with SHA-256, and checked for tampering when read. Reports are generated in JSON, Markdown, escaped standalone HTML, or SARIF 2.1.0 under OUTPUT_DIR. Report filenames are generated by the server; tool callers cannot choose arbitrary destinations.

Streamable HTTP

Local HTTP mode:

bash
bugbounty-mcp serve --transport streamable-http --host 127.0.0.1 --port 8000

The CLI refuses a non-loopback bind unless --allow-remote is present. Set a random token of at least 24 characters to require constant-time bearer authentication:

dotenv
HTTP_BEARER_TOKEN=replace-with-a-long-random-secret

Send it as Authorization: Bearer <token>. Bearer tokens do not provide encryption, so remote use still requires TLS, network policy, and request logging that does not record credentials. For multi-user or internet-facing deployments, prefer an OAuth-capable authenticating reverse proxy.

Docker

The image intentionally contains the Python server only. It does not download unpinned offensive tools during the build.

bash
docker compose up --build

Compose binds the Streamable HTTP endpoint to host loopback at http://127.0.0.1:3001/mcp and mounts data/ and output/. Configure ALLOWED_TARGETS in your local .env first.

For stdio from a container:

bash
docker run --rm -i \
  -e SAFE_MODE=true \
  -e ALLOWED_TARGETS=example.com,*.example.com \
  bugbounty-mcp:2.2.0 serve

Design notes

  • MCP SDK v2 low-level handlers preserve exact schemas and structured error/result control.
  • Capabilities are derived from registered handlers instead of being manually over-advertised.
  • Configuration construction has no directory or logging side effects; server startup owns them.
  • Secrets are never included in health output or tool-call logs.
  • Subprocesses use argv execution, a closed stdin, bounded captured output, and process-group cleanup on timeout.
  • Validated DNS answers are pinned into HTTP, TCP, and TLS connections to prevent rebinding between authorization and connection establishment.
  • The local finding store is suitable for a single server process. Use an external transactional store if multiple replicas must write concurrently.

Further resources:

License

MIT. See LICENSE.

Cài đặt

TypingMind
{
  "mcpServers": {
    "bugbounty-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "SAFE_MODE=true",
        "-e",
        "ALLOWED_TARGETS=example.com,*.example.com",
        "bugbounty-mcp:2.0.0",
        "serve"
      ],
      "env": {
        "SAFE_MODE": "<SAFE_MODE>",
        "ALLOWED_TARGETS": "<ALLOWED_TARGETS>"
      }
    }
  }
}

Dùng MCP BugBounty MCP Server với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối BugBounty MCP Server, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. Bạn có thể chạy MCP ngay trên thiết bị của mình hoặc kết nối qua URL của máy chủ MCP từ xa.

Cách 1: Dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm BugBounty MCP Server làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của BugBounty MCP Server.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "bugbounty-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của BugBounty MCP Server, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của BugBounty MCP Server.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng BugBounty MCP Server giúp tôi làm việc này không?
BugBounty MCP Server
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng BugBounty MCP Server.

Cách 2: Thêm URL máy chủ MCP

Dùng cách này khi BugBounty MCP Server đã được lưu trữ từ xa hoặc nhóm của bạn muốn có một trình kết nối dùng chung cho nhiều người dùng.

1

Mở mục Trình kết nối MCP

Trong TypingMind, vào Plugin, mở mục Trình kết nối MCP, rồi chọn Thêm URL.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Vào mục Plugin.
  3. Mở mục Trình kết nối MCP.
  4. Nhấp vào Thêm URL.
Biểu mẫu Thêm URL máy chủ MCP tùy chỉnh của TypingMind
2

Dán URL máy chủ

Nhập URL máy chủ MCP do nhà cung cấp cung cấp vào trường URL máy chủ. Thêm tên kết nối, mô tả, biểu tượng, header HTTP tùy chỉnh hoặc cài đặt ứng dụng khách OAuth nếu máy chủ yêu cầu.

  1. Dán URL máy chủ MCP do nhà cung cấp cung cấp vào trường URL máy chủ.
  2. Nhập tên kết nối cho BugBounty MCP Server.
  3. Thêm mô tả và biểu tượng nếu bạn muốn dễ nhận biết kết nối hơn.
  4. Thêm header HTTP tùy chỉnh hoặc thông tin ứng dụng khách OAuth nếu máy chủ yêu cầu xác thực.
3

Tạo kết nối

Nhấp vào Tạo kết nối, sau đó quay lại danh sách Plugin và xác nhận kết nối MCP mới đang hoạt động.

  1. Nhấp vào Tạo kết nối.
  2. Quay lại danh sách trình kết nối MCP.
  3. Xác nhận kết nối BugBounty MCP Server hiển thị trạng thái đang hoạt động.
  4. Làm mới danh sách plugin nếu kết nối chưa xuất hiện ngay.
4

Đổi mô hình mà không cần kết nối lại

Bắt đầu cuộc trò chuyện với mô hình bạn thích, bật các công cụ của BugBounty MCP Server trong mục Plugin và chuyển sang mô hình khác khi cần. Kết nối MCP vẫn sẵn dùng trong không gian làm việc TypingMind.

  1. Bắt đầu cuộc trò chuyện mới trong TypingMind.
  2. Chọn mô hình AI bạn muốn dùng.
  3. Bật các công cụ của BugBounty MCP Server trong mục Plugin.
  4. Yêu cầu mô hình dùng công cụ khi cần.
  5. Chuyển sang mô hình AI khác và dùng lại cùng kết nối MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng BugBounty MCP Server giúp tôi làm việc này không?
BugBounty MCP Server
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng BugBounty MCP Server.

Câu hỏi thường gặp

Máy chủ MCP BugBounty MCP Server dùng để làm gì?

BugBounty MCP Server là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP BugBounty MCP Server với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng BugBounty MCP Server với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP BugBounty MCP Server với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối BugBounty MCP Server, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP BugBounty MCP Server với TypingMind?

Bạn có thể kết nối BugBounty MCP Server trong TypingMind bằng trình kết nối MCP cục bộ hoặc bằng cách thêm URL máy chủ MCP từ xa. Dùng trình kết nối cục bộ khi máy chủ cần truy cập tệp, ứng dụng hoặc tài nguyên riêng trên thiết bị của bạn; dùng URL máy chủ khi máy chủ MCP được lưu trữ từ xa.

MCP BugBounty MCP Server cung cấp những công cụ nào trong TypingMind?

BugBounty MCP Server cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP BugBounty MCP Server không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu BugBounty MCP Server yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇