caido-screenshot
caido-screenshot-mcp
Ein MCP-Server, der formatierte Screenshots von Caido Replay-Anfrage/Antwort-Paaren erstellt, indem er das Screenshot Mode-Plugin steuert.
Caido hat keine Screenshot-API – Screenshot Mode ist ein reines Frontend-Plugin, das das DOM im Browser zu einem PNG rendert. Dieser Server erreicht es über das Chrome DevTools Protocol, klickt auf den eigenen Export des Plugins und fängt das resultierende Bild ab, bevor Electron einen Speicherdialog öffnen kann. Die Ausgabe ist die echte Ausgabe des Plugins, direkt auf die Festplatte geschrieben.
Anforderungen
Node >= 22 (verwendet das eingebaute
WebSocket; es gibt keine npm-Abhängigkeiten)Caido Desktop
Das Screenshot Mode-Plugin in Caido installiert
Caido mit
--remote-debugging-portgestartet (siehe unten)
Related MCP server: Webshot MCP
Installation
git clone <this-repo> caido-screenshot-mcp
cd caido-screenshot-mcp
npm link # optional: puts `caido-screenshot` on your PATHKein npm install-Schritt – es gibt keine Abhängigkeiten.
Caido mit dem Debug-Port starten
Das Plugin rendert im Fenster von Caido, daher muss der Server mit diesem Fenster kommunizieren. Wenn Caido normal gestartet wird, bleibt der Port geschlossen und jeder Aufruf schlägt fehl.
caido-screenshot launch # quits nothing; starts Caido with the port openOder manuell:
# macOS
open -a Caido --args --remote-debugging-port=9222
# Linux
caido --remote-debugging-port=9222
# Windows
"%LOCALAPPDATA%\Programs\Caido\Caido.exe" --remote-debugging-port=9222Alles auf einmal prüfen:
caido-screenshot doctorVerwendung mit Claude Code
claude mcp add caido-screenshot --scope user -- node /absolute/path/to/caido-screenshot-mcp/src/server.mjsStarte Claude Code neu. Dann frag einfach: "Screenshot der aktuellen Caido-Replay-Sitzung".
Verwendung mit jedem MCP-Client
{
"mcpServers": {
"caido-screenshot": {
"command": "node",
"args": ["/absolute/path/to/caido-screenshot-mcp/src/server.mjs"]
}
}
}Tool: caido_screenshot
Parameter | Typ | Beschreibung |
| string | Wo das PNG gespeichert werden soll. Standard: |
| string | Replay-Sammlung, die die Sitzung enthält. Sie wird automatisch erweitert. |
| string | Replay-Sitzung, die zuerst ausgewählt werden soll, nach Seitenleistenname (z. B. |
| string | Exakte Replay-Sitzungs-ID. Bevorzugt, da eindeutig. |
| boolean | Lehnt reine Anfrage-Sitzungen und veraltete Vorschauen ab. Standard: |
| boolean | Gibt das Bild auch im Ergebnis zurück (groß). Standard: |
Beispiele
Sobald der Server registriert ist, benennst du das Tool nie. Beschreibe, was du willst, in einfachem Englisch, und der Agent übernimmt es.
Nur das auf dem Bildschirm erfassen
Screenshot der aktuellen Caido-Replay-Anfrage
Der Agent ruft caido_screenshot auf und antwortet mit dem gespeicherten Pfad:
Saved /Users/you/Downloads/caido-screenshot-2026-08-22T13-40-11-002Z.png (438 KB)Eine Anfrage senden und dann erfassen
Das ist der häufigste Fall. Kombiniere es mit dem offiziellen Caido MCP server, der Anfragen senden kann – dieser Server erfasst das Ergebnis.
sende einen GET an https://httpbin.org/get in Caido Replay und mache einen Screenshot davon
Der Agent sendet die Anfrage, ordnet den zurückgegebenen Replay-Eintrag der befüllten Sitzung zu und erfasst genau diese Sitzungs-ID:
Schritt | Tool | Server |
1 |
| caido |
2 |
| caido |
3 |
| caido-screenshot |
Ordne caido_send_request.entryId dem caido_list_replay_sessions[].activeEntryId zu. Erstelle keine neue Sitzung aus requestSourceId für Antwortnachweise: Caido befüllt die Anfragevorlage, kopiert aber nicht die abgeschlossene Antwort.
Eine selbst geschriebene rohe Anfrage senden
Füge das rohe HTTP ein und sage, was du willst:
sende das in Caido Replay und mache einen Screenshot davon:
POST /post HTTP/1.1 Host: httpbin.org Content-Type: application/json {"user":"demo","token":"abc123"}
Eine bestimmte Sitzung auswählen
Sitzungen werden nach der Anfragezeile in der Seitenleiste von Caido benannt, also GET /, POST /login usw.:
Screenshot der Replay-Sitzung "POST /login"
Das wird zu caido_screenshot(session: "POST /login"). Jede Erfassung verwendet Side by Side.
Für zuverlässige Automatisierung verwende die Sitzungs-ID:
caido_screenshot(session_id: "67", require_response: true)
Wenn sich die Sitzung in einer anderen oder eingeklappten Sammlung befindet, benenne beide:
Screenshot von "01 admin create private conversation" aus der Sammlung "OBS AI Assistant IDOR - Fresh Evidence"
Das wird zu caido_screenshot(collection: "OBS AI Assistant IDOR - Fresh Evidence", session: "01 admin create private conversation"). Das Tool erweitert die Sammlung, bevor es die Sitzung auswählt, und erfasst sie Side by Side.
Achtung:
caido_send_requestbenennt Sitzungen automatisch nach der Anfragezeile, sodass mehrere Ziele alleGET /heißen können. Benenne eine Sitzung in Caido um, bevor du sie erfasst, wenn du sie eindeutig referenzieren musst.
An einem bestimmten Ort speichern
Screenshot davon und speichere unter ~/reports/login-flow.png
Verwendung mit Codex
Starte eine interaktive Sitzung und frage auf die gleiche Weise:
codex
> screenshot the current Caido replay sessionCodex fragt beim ersten Mal nach Genehmigung. Um die Eingabeaufforderung für dieses Tool zu überspringen, füge zu ~/.codex/config.toml hinzu:
[mcp_servers.caido-screenshot.tools.caido_screenshot]
approval_mode = "auto" # auto | prompt | writes | approvecodex exec (nicht interaktiv) wird nicht funktionieren – es erzwingt approval: never und lehnt alle MCP-Tool-Aufrufe ab, unabhängig von den Einstellungen pro Tool. Verwende eine interaktive Sitzung.
CLI
caido-screenshot # current session -> ~/Downloads
caido-screenshot shot.png # explicit path
caido-screenshot shot.png --session "GET /login"
caido-screenshot shot.png --session-id 67
caido-screenshot shot.png --collection "Fresh Evidence" --session "01 admin request"
caido-screenshot doctor
caido-screenshot launchUmgebung
Variable | Standard | Beschreibung |
|
| Caidos Remote-Debugging-Port |
|
| CDP-Timeout pro Aufruf |
Bekannte Einschränkungen
Das sind Eigenschaften des Plugins, nicht dieses Servers:
Langer Inhalt wird abgeschnitten. Caidos Editoren sind CodeMirror, das nur die sichtbaren Zeilen rendert. Alles, was höher als das Caido-Fenster ist, ist nicht im DOM und kann nicht erfasst werden. Sehr lange Antworten können leer erscheinen; der Server meldet einen Fehler, anstatt eine fast leere Datei zu schreiben.
Header können fehlen. Das DOM-zu-Bild-Rendering lässt manchmal Zeilen aus, mit sichtbaren Lücken in den Zeilennummern. Behandle diese Bilder als illustrativ, nicht als bytegenauen Beweis – verwende Caidos eigenen Anfrage-Export, wenn es auf Präzision ankommt.
Das Layout ist auf Side by Side festgelegt. Der Server bietet bewusst keine Layout- oder Anordnungsoption an, damit jeder Beweis-Screenshot das gleiche berichtsfertige Format hat.
Screenshots sind nicht geschwärzt. Was auch immer auf dem Bildschirm ist –
Authorization,Cookie,Set-Cookie– wird vollständig erfasst. Prüfe vor dem Teilen.Reine Anfrage-Replay-Sitzungen werden standardmäßig abgelehnt. Screenshot Mode kann seine vorherige Vorschau behalten, wenn die ausgewählte Sitzung keine Antwort hat. Verwende
--allow-no-responsenur, wenn ein reiner Anfrage-Screenshot beabsichtigt ist.
Fehlerbehebung
Meldung | Ursache |
| Caido nicht mit |
| Klicke im Caido-Fenster auf Connect für deine lokale Instanz. |
| Keine Replay-Sitzung geöffnet, oder das Screenshot-Mode-Plugin ist nicht installiert/aktiviert. |
| Verwende den genauen Sammlungsnamen, der in der Replay-Seitenleiste angezeigt wird. |
| Das Tool erweitert |
| Die ausgewählte Sitzung wurde aus einer Anfrage erstellt oder ist noch nicht abgeschlossen. Erfasse die Sitzung, deren |
| Screenshot Mode zeigte einen anderen Host/Pfad (oder eine widersprüchliche sichtbare Abfrage). Es wurde nichts gespeichert; versuche es erneut mit der befüllten |
| Inhalt zu lang zum Rendern. Erfasse eine kürzere Anfrage/Antwort. |
Lizenz
MIT
Available Tools
1 toolcaido_screenshotA
Capture a formatted screenshot of a Caido Replay request/response using the Screenshot Mode plugin. Requires Caido running with --remote-debugging-port (default 9222) and a Replay session open. Uses one consistent Side by Side layout, verifies the selected session, requires a rendered response by default, rejects stale previews, then saves a PNG and returns its path plus the verified request metadata.
| Name | Required | Description | Default |
|---|---|---|---|
| inline | No | Also return the image in the tool result (large). Default false. | |
| session | No | Replay session to select first, by the name shown in the sidebar (e.g. 'GET /login') | |
| out_path | No | Where to save the PNG. Defaults to ~/Downloads/caido-screenshot-<timestamp>.png | |
| collection | No | Replay collection containing the session. The collection is expanded automatically. | |
| session_id | No | Exact Replay session ID. Preferred over session name because it is unambiguous. | |
| require_response | No | Reject sessions without a rendered response to prevent stale evidence. Default true. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of transparency. It discloses multiple behavioral traits: uses a specific layout, verifies the selected session, requires a rendered response by default, rejects stale previews, saves a PNG, and returns path plus metadata. This gives the agent a strong understanding of what happens during execution.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and well-structured, opening with the core action and then efficiently enumerating prerequisites and key behaviors. It avoids unnecessary verbosity while covering all essential aspects, making it easy for an agent to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of the tool (multiple preconditions, specific layout, output behavior), the description provides sufficient context for an agent to decide when to use it. It clearly states the environment requirements, what is verified, and what is returned, without needing an output schema. The description is complete enough for operational use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema provides 100% coverage with detailed descriptions for each parameter, so the baseline is 3. The tool description does not add additional insight beyond the schema's parameter explanations; it merely references the default behavior of require_response without expanding on relationships or interdependencies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool captures a formatted screenshot of a Caido Replay request/response using the Screenshot Mode plugin, specifying the exact resource and action. It also distinguishes itself by mentioning the Side by Side layout and the plugin, which sets it apart from generic screenshot tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit preconditions for use (Caido running with --remote-debugging-port, Replay session open) and mentions key behaviors (requires rendered response, rejects stale previews). While it doesn't explicitly contrast with alternatives, the specific prerequisites and layout make the intended use case clear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v1.2.1- First observed
caido_screenshot
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion between tools. The tool has a single, clearly defined purpose (capturing a screenshot of a Caido Replay session), so an agent cannot misselect it.
The single tool follows a consistent snake_case naming convention (caido_screenshot), which is clear and predictable. There is no mix of styles or verbs to create inconsistency.
The server provides only one tool, which feels thin for a typical MCP server. However, the tool targets a very specific, narrow use case (Caido Replay screenshot capture), so the count may be appropriate for that focused purpose, but it is borderline.
The tool covers the core workflow of capturing a formatted screenshot from a Replay session, including verification and metadata return. There are minor gaps (e.g., no options for custom layout or output format), but for its stated purpose, it is essentially complete.
Maintenance
Related MCP Connectors
Capture website screenshots, run bulk captures, and manage screenshot schedules and history.
1Clean PNG/JPEG screenshots via REST or MCP, with goal-driven multi-step navigation.
Screenshot any URL/HTML as PNG/JPEG/WebP, or read it as clean Markdown/text for LLMs.
Full-page website screenshots and visual diffs between two captures. Pay per capture on Apify.
Related MCP Servers
- AlicenseAqualityAmaintenanceEnables capturing screenshots of web pages and local HTML files through a simple MCP tool interface using Puppeteer with configurable options for dimensions and output paths.2111 npm35Apache 2.0
- AlicenseCqualityDmaintenanceEnables taking screenshots of web pages with support for multiple devices (desktop, mobile, tablet), custom dimensions, full-page capture, and various image formats. Built with Playwright for reliable web page rendering and screenshot generation.1MIT
- AlicenseNot gradedqualityCmaintenanceCaptures webpage screenshots via ScreenshotOne API, offering desktop, mobile, and element-specific views.1MIT
- AlicenseNot gradedqualityCmaintenanceCaptures screenshots of web URLs or local HTML files using Playwright Chromium and exposes them as resources.14 npmMIT