Skip to main content
Glama
yads-mcp
by MrMarco74

yads-mcp

License Language MCP Wave AI generated

MCP 지원 LLM 에이전트(Claude Code 또는 YADS와 동일한 네트워크에서 접근 가능한 다른 에이전트 프로세스)가 대시보드에서 사람 없이 YADS 자체 /api/v1 API를 통해 큐 제어, 태깅, 스캔 실행, 대상/자산 관리를 수행할 수 있게 해주는 MCP 서버입니다.

이는 YADS의 기존 HTTP API(/api/v1/queue/*, /api/v1/tags*, /api/v1/targets/*)를 감싸는 얇은 stdio 래퍼입니다. 별도의 실행 경로가 없으며, 테넌트 범위 지정이나 스캔 디스패치 코드 경로를 우회하지 않습니다. 여기를 통해 수행되는 모든 작업은 대시보드와 동일한 테넌트 격리, 동시 스캔 제한, 변경 감지 로직을 따릅니다.

1. API 키 생성

YADS에 이미 로그인된 머신(세션 쿠키)에서 /developer 또는 /api-keys/ 엔드포인트를 통해 이 에이전트에 필요한 범위로 키를 생성하세요:

  • read — 상태/목록 작업 (queue_status, tags_list, scan_get_findings, list_targets, get_target, get_target_changes, get_scan_status, get_network_context, ...)

  • write — 태그 변경 및 대상 변경 (add_target, undo_bulk_delete_targets, bulk_archive_targets, archive_dead_targets, restore_target)

  • scan_execute — 스캔 트리거 (단일 또는 대량)

  • destructive — queue_purge, tags_delete_globally, bulk_delete_targets, bulk_blocklist_targets (또한 호출 자체에 confirm=True 필요)

반환된 토큰을 지금 복사하세요. 다시 표시되지 않습니다.

Related MCP server: openserverless-mcp

2. 설치

cd yads-mcp
python -m venv .venv
.venv/bin/pip install -e .

테스트

.venv/bin/pip install -e ".[test]"
.venv/bin/pytest tests/ -q

tests/conftest.py는 yads 저장소의 자체 테스트와 동일한 테스트 Postgres/Redis 스택(docker-compose.test.yml, 포트 5433/6380)을 대상으로 YADS를 프로세스 내에서(Starlette TestClient) 실행합니다. 이 테스트가 통과하지 않으면 먼저 해당 스택을 시작하세요.

3. 클라이언트 구성

서버에 필요한 환경 변수:

  • YADS_URL — 예: https://yads.example.com

  • YADS_API_KEY — 1단계의 토큰

Claude Code

claude mcp add yads \
  --env YADS_URL=https://yads.example.com \
  --env YADS_API_KEY=<token> \
  -- /path/to/yads-mcp/.venv/bin/python -m yads_mcp.server

또는 .mcp.json에 추가:

{
  "mcpServers": {
    "yads": {
      "command": "/path/to/yads-mcp/.venv/bin/python",
      "args": ["-m", "yads_mcp.server"],
      "env": {
        "YADS_URL": "https://yads.example.com",
        "YADS_API_KEY": "<token>"
      }
    }
  }
}

도구

큐 및 스캔 제어

  • queue_status()

  • queue_list_rate_limited_modules()

  • queue_pause() / queue_resume() — 전체 플릿 대상, 테넌트 범위 아님

  • queue_cancel_task(task_id)

  • queue_purge(confirm) — 파괴적, 테넌트 범위, 60초 실행 취소 창

  • queue_undo_purge(undo_batch)

태깅 및 정리

  • tags_list()

  • tags_add_to_target(target_id, tag) / tags_remove_from_target(target_id, tag)

  • tags_bulk_assign(target_ids, tags, action="add"|"remove"|"replace")

  • tags_bulk_add_by_ids(target_ids, tag)

  • tags_delete_globally(tag_name, confirm) — 파괴적, 실행 취소 불가

스캔 실행

  • scan_trigger(target_url, profile="standard")

  • scan_trigger_by_target_id(target_id, scan_types, scan_priority=None)

  • scan_bulk_preview_count(only_roots=False, online_only=False, scanned_before=None)

  • scan_bulk_by_criteria(scan_types, only_roots=False, online_only=False, scanned_before=None)

  • scan_bulk_selected(target_ids, scan_types)

  • scan_get_findings()

대상 및 자산 관리 (Wave 2)

  • list_targets(tag=None, online=None, scan_status=None, domain_search=None, archived=False, last_scanned_before=None, page=1, limit=20)

  • get_target(target_id)

  • add_target(domain)

  • bulk_delete_targets(target_ids, confirm) — 파괴적, 60초 실행 취소 창

  • undo_bulk_delete_targets(undo_batch)

  • bulk_archive_targets(target_ids) / archive_dead_targets() / restore_target(target_id)

  • bulk_blocklist_targets(target_ids, confirm) — 파괴적, 실행 취소 불가

  • get_target_changes(target_id, limit=30)

  • get_scan_status(target_id)

  • get_network_context(target_id)

Wave 3–10(Reports & Export, Findings & Compliance, OSINT/Discovery/Intelligence, Integrations/Webhooks/Notifications)은 각각 별도의 설계 사양과 함께 별도로 추적됩니다.

변경 로그

CHANGELOG.md를 참조하세요.

라이선스

MIT — LICENSE를 참조하세요.

Available Tools

31 tools
add_targetA

Add a target by domain, or return the existing one if it's already present (find-or-create). Blocked for internal/private-network domains by SSRF protection. Does not trigger a scan -- follow up with scan_trigger_by_target_id() if you want one.

Inputs: domain (required).

archive_dead_targetsA

Archive every target in this key's tenant whose most recent DNS scan returned empty records (i.e. the domain no longer resolves). Tenant-wide sweep, no target_ids needed. Reversible via restore_target().

Inputs: no named parameters.

bulk_archive_targetsA

Archive targets -- stops them from being scanned, but fully reversible via restore_target(). Not destructive.

Inputs: target_ids (required).

bulk_blocklist_targetsA

Add each target's domain to this tenant's Discovery blocklist (exact match -- future Discovery runs won't re-add it) AND archive the target. Requires the 'destructive' scope: unlike plain archiving, reversing this needs both restore_target() and manually removing the blocklist entry (no blocklist-management tool exists yet), so there's no clean single-action undo. Set confirm=True to actually perform this.

Inputs: confirm (required), target_ids (required).

bulk_delete_targetsA

Permanently delete targets and all their scan history/findings -- irreversible beyond a 60-second undo window (see undo_bulk_delete_targets; the domain/tags are restorable, scan history is not). Requires the 'destructive' scope on this API key. Set confirm=True to actually perform this.

Inputs: confirm (required), target_ids (required).

get_network_contextC

Network context captured during a target's scans -- the external IP YADS scanned from and the IPs the target resolved to at scan time.

Inputs: target_id (required).

get_scan_statusA

Current scan status/progress message for a target -- live if a scan is running, otherwise the last known state ("idle", "queued", etc.).

Inputs: target_id (required).

get_targetA

Lean summary of one target: domain, scan status/progress, tags, archive state, when it was created, when it was last scanned, and how many distinct scanner modules have results for it. For per-module scan data, use scan_get_findings() (Wave 1) -- note it returns every finding for the whole tenant, not just this target, so filter its result by target_id client-side. For this target's recent change history, use get_target_changes() instead.

Inputs: target_id (required).

get_target_changesA

Recent detected changes for a target (new/changed/removed findings across scans), newest first. limit capped at 100 server-side.

Inputs: target_id (required), limit. Returns: result

list_targetsC

List targets for this key's tenant, with optional filters (combined with AND). limit is capped at 100 server-side. scan_status accepts "idle"/"queued"/"running"/"failed". last_scanned_before is an ISO date string; matches targets scanned before that date OR never scanned.

Inputs: tag, page, limit, online, +4 more.

queue_cancel_taskA

Cancel a single queued/reserved/active scan task by its Celery task id (see queue_status's active_tasks/reserved_tasks for ids). Only cancels tasks belonging to this key's tenant.

Inputs: task_id (required).

queue_list_rate_limited_modulesA

How many scanner modules are currently being rate-limited by an external target's API (circuit-breaker tripped), if any -- surfaced as part of the same queue-status data queue_status() returns, exposed here as its own discoverable tool for the common "is anything rate-limited right now" question. Only a count is available via the API, not the specific module names.

Inputs: no named parameters.

queue_pauseA

Pause the scan queue -- stops workers from picking up new tasks. NOTE: this is fleet-wide, not scoped to this key's tenant (matches YADS's existing dashboard pause behavior).

Inputs: no named parameters.

queue_purgeA

Clear every queued/running scan for this key's tenant -- irreversible beyond a 60-second undo window (see queue_undo_purge). Requires the 'destructive' scope on this API key. Set confirm=True to actually perform this.

Inputs: confirm (required).

queue_resumeA

Resume the scan queue after a pause. NOTE: like queue_pause, this is fleet-wide, not scoped to this key's tenant.

Inputs: no named parameters.

queue_statusB

Current queue state for this API key's tenant: whether the queue is active (paused/resumed), queued/running target counts, and the tenant's active/reserved Celery tasks.

Inputs: no named parameters.

queue_undo_purgeA

Re-queue the tasks purged by a prior queue_purge call, using the undo_batch id from that call's response. Only works within 60 seconds of the purge, and only for tasks that hadn't started running yet.

Inputs: undo_batch (required).

restore_targetA

Un-archive a target, clearing its archived state so it's scanned again.

Inputs: target_id (required).

scan_bulk_by_criteriaA

Queue a scan for every target matching the given criteria (combined with AND). No target-tag filter exists yet -- to scan only targets without a given tag, list tags_list, resolve target ids yourself, and use scan_bulk_selected instead.

Inputs: scan_types (required), only_roots, online_only, scanned_before.

scan_bulk_preview_countA

Count how many targets match a set of bulk-scan criteria, without queuing anything -- use before scan_bulk_by_criteria to see the blast radius first. scanned_before is an ISO date string ("2026-08-01"); matches targets last scanned before that date OR never scanned.

Inputs: only_roots, online_only, scanned_before.

scan_bulk_selectedC

Queue a scan for an explicit list of target ids.

Inputs: scan_types (required), target_ids (required).

scan_get_findingsA

All scan findings for this key's tenant, newest first.

Inputs: no named parameters. Returns: result

scan_triggerA

Trigger a scan for a URL, finding-or-creating the Target by domain. profile: "quick" (web_analyzer only), "standard" (dns_scanner, web_analyzer, ssl_scanner -- default), or "full" (all 7 modules: dns_cleanup, subdomain_scanner, dns_scanner, web_analyzer, ssl_scanner, crawler, cve_scanner).

Inputs: target_url (required), profile.

scan_trigger_by_target_idB

Trigger a scan for an already-known target by its numeric id, with an explicit module list (e.g. ["catchall_detector"] for a parked-domain-only check). scan_types accepts module names from the scanner registry, plus "full_scan" (expands to every module except subdomain_scanner and catchall_detector) and "dns_cleanup".

Inputs: target_id (required), scan_types (required), scan_priority.

tags_add_to_targetC

Add a tag to one target. Returns the target's full tag list after the change.

Inputs: tag (required), target_id (required). Returns: result

tags_bulk_add_by_idsB

Add a single tag to multiple targets by id (simpler variant of tags_bulk_assign for the common "add one tag to many targets" case).

Inputs: tag (required), target_ids (required).

tags_bulk_assignA

Add, remove, or replace tags on multiple targets at once. action: "add" (default), "remove", or "replace" (replaces each target's entire tag list with tags).

Inputs: tags (required), target_ids (required), action.

tags_delete_globallyA

Remove a tag from every target in this key's tenant that has it -- irreversible, no undo. Requires the 'destructive' scope on this API key. Set confirm=True to actually perform this.

Inputs: confirm (required), tag_name (required).

tags_listA

All unique tags currently in use across this key's tenant's targets.

Inputs: no named parameters. Returns: result

tags_remove_from_targetA

Remove a tag from one target. Returns the target's full tag list after the change.

Inputs: tag (required), target_id (required). Returns: result

undo_bulk_delete_targetsA

Re-create targets deleted by a prior bulk_delete_targets call, using the undo_batch id from that call's response. Only works within 60 seconds of the delete -- restores domain/tags only, not scan history.

Inputs: undo_batch (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 31 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes within their domains (queue, tags, scans, targets). Slight overlap exists between tags_bulk_assign and tags_bulk_add_by_ids, and queue_status vs queue_list_rate_limited_modules, but descriptions clarify the differences well.

    Naming Consistency4/5

    Tool names follow a consistent snake_case verb_noun pattern with domain prefixes (queue_, tags_, scan_, bulk_). Minor inconsistencies like undo_bulk_delete_targets (vs. queue_undo_purge) and some verbs (archive vs restore) are present but the overall pattern is predictable.

    Tool Count2/5

    At 31 tools, this exceeds the 25-tool threshold for heavy servers. While the domain is complex and the tools are organized by sub-domains, the count feels bloated for a single MCP server and may overwhelm agents with too many options.

    Completeness4/5

    The tool surface covers the core lifecycle for targets (add, list, get, delete, archive, restore), scans (trigger, bulk, findings), queue management, and tags. Notable gaps include no blocklist-management tool (acknowledged) and no tool to list available scan modules, but these are minor and workaroundable.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides a secure MCP gateway for AI agents to access APIs without exposing raw credentials, with scoped access, audit logging, and OAuth support.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants and MCP clients to execute commands, copy/move files, manage background jobs and port forwarding, and optionally view and control remote screens using scoped, expiring agent tokens.
      16 npm
      1
      MIT