Logo de BugBounty MCP Server

BugBounty MCP Server

Comunidade
gokulapap

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

Publicado porgokulapap
Repositóriobugbounty-mcp-server
IdiomaPython
Forks
12
Estrelas
43
Ferramentas disponíveis
0
Tipo de transportestdio, streamable-http
Categorias
Links
  • Conecte ferramentas a fluxos de trabalho de IA

    BugBounty MCP Server disponibiliza recursos MCP que podem ser usados por clientes e agentes de IA compatíveis.

  • 0 ferramentas disponíveis

    Confira abaixo as ações que podem ser chamadas, incluindo nomes e descrições quando fornecidos pelo servidor.

  • Configuração pronta para copiar

    Use os exemplos de instalação para configurar este servidor no seu cliente MCP preferido.

  • Indicadores da comunidade de código aberto

    43 estrelas e 12 forks no repositório vinculado.

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.

Instalação

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>"
      }
    }
  }
}

Use o MCP de BugBounty MCP Server com vários modelos de IA

O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho. Assim, após conectar BugBounty MCP Server, é possível usá-lo com diferentes modelos de IA no TypingMind, em vez de configurá-lo separadamente para cada modelo. É possível executar o MCP localmente no seu dispositivo ou se conectar à URL de um servidor MCP remoto.

Opção 1: use o conector local

Use esta opção quando o servidor MCP precisar acessar arquivos locais, aplicativos ou recursos privados no seu computador.

1

Abra as configurações de MCP

No TypingMind, vá até Configurações, Configurações avançadas e depois Model Context Protocol e selecione Configurar conector.

  1. Abra o TypingMind no navegador.
  2. Clique no ícone de Ajustes.
  3. Acesse Configurações avançadas.
  4. Abra a seção Model Context Protocol.
  5. Clique em Configurar conector e selecione Este dispositivo.
Tela de configuração do conector MCP do TypingMind com a opção Este dispositivo selecionada
2

Execute o comando do conector

Selecione Este dispositivo, copie o comando do TypingMind e execute-o no Terminal. Mantenha o processo em execução enquanto usa o MCP.

  1. Copie o comando de configuração exibido pelo TypingMind.
  2. Abra o Terminal no macOS ou o Windows Terminal no Windows.
  3. Cole e execute o comando.
  4. Autorize a instalação do pacote se o Terminal pedir confirmação para continuar.
  5. Mantenha o processo em execução na janela do Terminal enquanto usa as ferramentas MCP.
3

Adicione BugBounty MCP Server como servidor

Quando o status do conector for Pronto, clique em Editar e cole a configuração do servidor MCP.

  1. Aguarde até que o status do conector mostre Pronto.
  2. Clique em Editar.
  3. Cole a configuração do servidor MCP de BugBounty MCP Server.
  4. Salve a lista de servidores.
  5. Atualize para confirmar se o conector ainda está pronto para uso.
Configurações de MCP do TypingMind mostrando um servidor ativo e o botão Editar
{
  "mcpServers": {
    "bugbounty-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use a conexão com diferentes modelos

Salve a lista de servidores, abra Plugins, ative as ferramentas MCP de BugBounty MCP Server, selecione qualquer modelo de IA compatível no TypingMind e use as ferramentas no chat ou atribua-as a um agente de IA.

  1. Abra a página Plugins no TypingMind.
  2. Ative as ferramentas MCP de BugBounty MCP Server.
  3. Inicie um chat e escolha o modelo de IA que deseja usar.
  4. Use as ferramentas MCP no chat ou atribua-as a um agente de IA.
  5. Mude para outro modelo de IA sempre que necessário, sem reconectar o MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar BugBounty MCP Server para me ajudar nesta tarefa?
BugBounty MCP Server
Claro. Já li.
Veja o que encontrei usando BugBounty MCP Server.

Opção 2: Adicione a URL de um servidor MCP

Use esta opção quando BugBounty MCP Server já estiver hospedado remotamente ou quando sua equipe quiser um conector compartilhado que vários usuários possam acessar.

1

Abra Conectores MCP

No TypingMind, vá até Plugins, abra Conectores MCP e selecione Adicionar URL.

  1. Abra o TypingMind no navegador.
  2. Acesse Plugins.
  3. Abra Conectores MCP.
  4. Clique em Adicionar URL.
Formulário do TypingMind para adicionar a URL de um servidor MCP personalizado
2

Cole a URL do servidor

Insira a URL do servidor MCP fornecida pelo provedor no campo URL do servidor. Adicione um nome para a conexão, uma descrição, um ícone, cabeçalhos HTTP personalizados ou configurações do cliente OAuth se o servidor exigir.

  1. Cole a URL do servidor MCP fornecida pelo provedor no campo URL do servidor.
  2. Digite um nome para a conexão de BugBounty MCP Server.
  3. Adicione uma descrição e um ícone para facilitar a identificação.
  4. Adicione cabeçalhos HTTP personalizados ou dados do cliente OAuth se o servidor exigir autenticação.
3

Crie a conexão

Clique em Criar conexão, volte à lista de Plugins e confirme que a nova conexão MCP está ativa.

  1. Clique em Criar conexão.
  2. Volte à lista de conectores MCP.
  3. Confirme que a conexão de BugBounty MCP Server aparece como ativa.
  4. Atualize a lista de plugins se a conexão não aparecer imediatamente.
4

Troque de modelo sem reconectar

Inicie um chat com seu modelo preferido, ative as ferramentas de BugBounty MCP Server em Plugins e mude para outro modelo sempre que necessário. A conexão MCP continua disponível no espaço de trabalho do TypingMind.

  1. Inicie um novo chat no TypingMind.
  2. Selecione o modelo de IA que deseja usar.
  3. Ative as ferramentas de BugBounty MCP Server em Plugins.
  4. Peça ao modelo para usar a ferramenta quando necessário.
  5. Mude para outro modelo de IA e reutilize a mesma conexão MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar BugBounty MCP Server para me ajudar nesta tarefa?
BugBounty MCP Server
Claro. Já li.
Veja o que encontrei usando BugBounty MCP Server.

Perguntas frequentes

Para que serve o servidor MCP BugBounty MCP Server?

BugBounty MCP Server é um servidor MCP que permite que aplicativos de IA compatíveis se conectem a ferramentas externas e informações de contexto. No TypingMind, basta adicionar esse servidor MCP uma vez para disponibilizar suas ferramentas no seu espaço de trabalho com IA.

Posso usar o MCP BugBounty MCP Server com vários modelos de IA no TypingMind?

Sim. O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho, permitindo usar BugBounty MCP Server com diferentes modelos de IA, como Claude, ChatGPT, Gemini ou outros modelos configurados no TypingMind, sem configurar o servidor MCP separadamente para cada modelo.

Por que usar o MCP BugBounty MCP Server com o TypingMind?

O TypingMind é uma das melhores interfaces de chat com LLMs porque reúne vários modelos de IA, prompts, plugins, agentes de IA, chaves de API e ferramentas MCP em um só espaço de trabalho. Com BugBounty MCP Server conectado, é possível usar suas ferramentas MCP nos seus modelos preferidos e manter seu fluxo de trabalho de chat organizado no TypingMind.

Como conecto o MCP BugBounty MCP Server ao TypingMind?

É possível conectar BugBounty MCP Server ao TypingMind com o conector MCP local ou adicionando a URL de um servidor MCP remoto. Use o conector local quando o servidor precisar acessar arquivos, apps ou recursos privados no seu dispositivo, e use uma URL de servidor quando o servidor MCP estiver hospedado remotamente.

Quais ferramentas o MCP BugBounty MCP Server oferece no TypingMind?

BugBounty MCP Server disponibiliza recursos MCP que podem ser ativados na página Plugins do TypingMind e usados no chat ou atribuídos a agentes de IA.

Preciso compartilhar minhas chaves de API com o TypingMind para usar o MCP BugBounty MCP Server?

Não. O TypingMind prioriza o uso local e permite manter seus provedores de modelos, chaves de API, prompts e configuração MCP sob seu controle. Se BugBounty MCP Server exigir autenticação, adicione os cabeçalhos, as configurações OAuth ou a configuração local exigidos por esse servidor MCP ao criar a conexão.

Servidores MCP relacionados

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇