Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
MCP server for Caido proxy integration. Enables AI assistants like Claude Code to browse, analyse, and interact with HTTP traffic.
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: AI & machine learning.
.prompts, the home to all your AI prompts, everywhere you need them.
Same catalog task: AI & machine learning.
Real MCP server (stdio + @modelcontextprotocol/sdk) that exposes x402-paywalled HTTP endpoints as MCP tools. Drop into Claude Desktop, Cursor, or any MCP client.
Same catalog task: AI & machine learning.
Standalone MCP (Model Context Protocol) server - stdio/http/websocket transports, connection pooling, tool registry
Fetched from the repository for this visit.
MCP server and CLI for Caido web proxy - browse, replay, and analyze HTTP traffic from AI assistants or your terminal.
Quick start · Capabilities · Safety controls · Code Mode · Tools · CLI
caido-mcp-server connects your Caido proxy to AI assistants and to your terminal:
--code-mode) and 6 read-only resources to AI assistants (Claude Code, Cursor, etc.) via the Model Context Protocolcaido-cli exec to run sandboxed JavaScript workflows against CaidoBoth share the same auth token, the same Go SDK, and the same codebase.
What you get:
Works with Caido 0.57+. Race pipelines, WebSocket replay and pass-through options need Caido 0.59+.
curl -fsSL https://raw.githubusercontent.com/c0tton-fluff/caido-mcp-server/main/install.sh | bash
Or download a pre-built binary from Releases (macOS, Linux, Windows - amd64/arm64).
Or install with the Go toolchain (Go 1.25+):
go install github.com/c0tton-fluff/caido-mcp-server/v4/cmd/caido-mcp-server@latest
The binary lands in $(go env GOPATH)/bin (add it to your PATH). The installed binary reports its module version via caido-mcp-server --version.
git clone https://github.com/c0tton-fluff/caido-mcp-server.git
cd caido-mcp-server
go build -ldflags "-X github.com/c0tton-fluff/caido-mcp-server/v4/internal/buildinfo.version=$(git describe --tags)" -o caido-mcp-server ./cmd/caido-mcp-server
Option A: Static access token (recommended)
This server talks to the local Caido app's GraphQL API, which authenticates with the access token from your Caido login session - not a Caido Cloud Personal Access Token. A Cloud PAT (prefixed caido_) is for the cloud/dashboard API and will not authenticate against your local instance.
Grab the access token from the Caido GUI: open developer tools (CTRL+SHIFT+I) and run this in the Console tab:
JSON.parse(localStorage.CAIDO_AUTHENTICATION).accessToken
Pass it via the CAIDO_ACCESS_TOKEN environment variable. No login command needed.
{
"mcpServers": {
"caido": {
"command": "caido-mcp-server",
"args": ["serve"],
"env": {
"CAIDO_URL": "http://127.0.0.1:8080",
"CAIDO_ACCESS_TOKEN": "your-caido-access-token"
}
}
}
}
Note: this token expires after ~7 days; for a long-lived setup use Option B (OAuth), which refreshes automatically. The older
CAIDO_PATvariable is still accepted as a deprecated alias forCAIDO_ACCESS_TOKEN.
Option B: OAuth device flow
CAIDO_URL=http://127.0.0.1:8080 caido-mcp-server login
This opens your browser for OAuth authentication and saves the token under ~/.caido-mcp/tokens/. Then configure your MCP client:
{
"mcpServers": {
"caido": {
"command": "caido-mcp-server",
"args": ["serve"],
"env": {
"CAIDO_URL": "http://127.0.0.1:8080"
}
}
}
}
Credentials are stored per instance, keyed by the canonical CAIDO_URL, so you can stay
logged in to several Caido instances at once and switch between them without
re-authenticating. Run login once per instance (note that http://localhost:8080 and
http://127.0.0.1:8080 are stored under separate per-instance keys, so use the same URL
in both login and your MCP config). An existing
~/.caido-mcp/token.json from an earlier version is migrated automatically the first time
you use it, so upgrading does not require a fresh login.
"List all POST requests to /api"
"Send this request with a modified user ID"
"Create a finding for this IDOR"
"Show fuzzing results from Automate session 1"
"What's in scope?"
| Category | Capabilities |
|---|---|
| Proxy History | Search requests with HTTPQL, get full request/response details, diff two responses |
| Replay | Send HTTP requests (raw or a pasted cURL command), get response inline (status, headers, body). Per-session cookie jar auto-persists Set-Cookie between calls |
| WebSocket | Browse WS history; open a socket through Caido Replay (0.59+), send frames, long-poll pushed frames (e.g. graphql-ws subscriptions), read WS replay entries and stage/clear message drafts, close |
| Code Mode | Opt-in sandboxed JavaScript execution (--code-mode and caido-cli exec) over QuickJS-NG WASM: shrinks 78 tools to 2 (caido_search + caido_execute) and runs loops, filtering, diffs, and JWT/base64 decoding in one call |
| Race conditions | Single-packet, last-byte-sync and sequential runs through Caido Replay Pipelines (0.59+), with a status-code tally per run |
| Automate | Access fuzzing sessions, results, and payloads. Start/pause/resume/cancel tasks |
| Findings | Create, list, delete, and export security findings |
| Sitemap | Browse discovered endpoints |
| Scopes | Full lifecycle: create, rename, delete target scope definitions; check if a host/URL is in scope |
| Projects | Full lifecycle: create, rename, select, delete projects |
| Workflows | List, run, and toggle automation workflows |
| Tamper | List, create, update, toggle, and delete Match & Replace rules in all four GUI modes (update raw, update value, add, remove); dry-run a rule against a raw request before committing it |
| Intercept | Check status, pause/resume, list/forward/drop intercepted requests |
| Environments | Create, select, delete variable environments (tokens, keys) |
| Filters | Create, list, and delete saved HTTPQL filter presets |
| Hosted Files | List payload files served by Caido |
| Tasks | List and cancel running background tasks |
| Plugins | List installed plugin packages with manifestId and backend health (id, enabled, running, error); opt-in allowlisted backend function calls via --plugins |
| Instance | Get Caido version and platform info |
Built for how an agent reads traffic:
bodyLimit)Set-Cookie from a response is auto-attached to the next send_request against the same sessionCredential redaction is on by default. Everything else here is a flag the operator sets when the server starts; the model cannot change it.
caido://requests/{id} resource); opt out with CAIDO_ALLOW_SENSITIVE_HEADERS (see Revealing sensitive headers)SECRET variables are redacted in caido_list_environments; the same opt-out appliesserve --read-only registers only the tools that read state, so nothing that sends traffic or changes the project can be called (see Read-only mode)serve --enforce-scope refuses any request, batch, race or WebSocket connection to a host outside the project scope, and withholds the tools that could change the scope (see Scope enforcement)serve --plugins quickssrf:createSession,quickssrf:getInteractions exposes caido_call_plugin strictly for operator-allowlisted plugins/functions (off by default, always withheld under --read-only and --enforce-scope)readOnlyHint/destructiveHint/idempotentHint/openWorldHint so MCP clients can distinguish read-only, destructive, and external-network toolsBy default, sensitive headers (Authorization, Cookie, Set-Cookie, Proxy-Authorization, X-Api-Key, X-Auth-Token, X-CSRF-Token, X-XSRF-Token, X-Amz-Security-Token, X-Access-Token, X-Session-Token, Private-Token, Api-Key, X-Secret-Key, X-Functions-Key) are replaced with [REDACTED] in tool output (and CLI output) to avoid leaking credentials into the model context. On an authorized engagement where you need the real values - to analyze or replay a captured authenticated request, or to produce a working caido_export_curl PoC - set CAIDO_ALLOW_SENSITIVE_HEADERS to a truthy value (1, true):
{
"mcpServers": {
"caido": {
"command": "caido-mcp-server",
"args": ["serve"],
"env": {
"CAIDO_URL": "http://127.0.0.1:8080",
"CAIDO_ALLOW_SENSITIVE_HEADERS": "true"
}
}
}
}
When enabled, real credential values flow through tool output to the model; leave it unset to keep redaction. The same toggle reveals the values of SECRET environment variables in caido_list_environments. It does not affect the session cookie jar, which only ever reports cookie names and metadata, never values.
Start the server with --read-only (or set CAIDO_MCP_READ_ONLY=1) to expose only the tools annotated read-only. Tools that send traffic or change the Caido project are not registered at all, so a client cannot call them even by name. Use it to let an agent review captured traffic without the ability to touch a target or the project.
{
"mcpServers": {
"caido-readonly": {
"command": "caido-mcp-server",
"args": ["serve", "--read-only"],
"env": {
"CAIDO_URL": "http://127.0.0.1:8080"
}
}
}
}
The startup banner reports the mode and the reduced tool count. A CAIDO_MCP_READ_ONLY value that is not a boolean stops the server instead of starting it with every tool.
Start the server with --enforce-scope (or set CAIDO_MCP_ENFORCE_SCOPE=1) to make the project scope a hard boundary for the agent:
{
"mcpServers": {
"caido": {
"command": "caido-mcp-server",
"args": ["serve", "--enforce-scope"],
"env": {
"CAIDO_URL": "http://127.0.0.1:8080"
}
}
}
}
| Refused | A target host outside every scope, for caido_send_request, caido_edit_request, caido_batch_send (per request), caido_race_pipeline, caido_race_window_send and caido_ws_connect |
| Withheld | caido_create_scope, caido_update_scope, caido_delete_scope, caido_select_project, caido_create_project, caido_delete_project, and caido_call_plugin, so the agent cannot move or bypass the boundary |
| Fails closed | Scopes cannot be read, the project has no scope, or the only scopes have an empty allowlist: nothing is sent |
| Not covered | Traffic the server does not address itself: forwarding an intercepted browser request, starting an Automate session, running a workflow |
A host is in scope when one scope's allowlist matches it and that scope's denylist does not, the same rule caido_is_in_scope reports. Scopes are read on every send, so a change you make in Caido applies to the next request. A refused target is refused before any Replay session is created.
By default caido_call_plugin is not registered. Opt in for specific installed plugin packages or functions with --plugins (or CAIDO_MCP_PLUGINS):
caido-mcp-server serve --plugins quickssrf:createSession,quickssrf:getInteractions
caido_call_plugin is enforced against the resolved package manifestId, capped at 1 MiB output, blocks HTTP redirects, checks backend.enabled, and is always withheld under --read-only and --enforce-scope.
serve --toolsets core --compact cuts the advertised tool list to ~27.8 KB, and opt-in serve --code-mode replaces all 78 tools with 2 tools (caido_search + caido_execute, 3.4 KB tool list) over a QuickJS-NG WASM sandbox (see Toolsets and Code Mode).
Every MCP client loads the full tool list into the model's context at the start of a session. With all 78 tools that list is about 107 KB (wire JSON). Three options shrink it:
--toolsets (or CAIDO_MCP_TOOLSETS) registers only the toolsets you name, comma separated.--compact (or CAIDO_MCP_COMPACT=1) leaves the output schemas out of the list. Results still carry structured content.--code-mode (or CAIDO_MCP_CODE_MODE=1) replaces the full tool list with 2 tools (caido_search and caido_execute) over an isolated QuickJS-NG WASM sandbox.| Configuration | Tools | Tool list (stdio JSON) |
|---|---|---|
| default | 78 | 107.3 KB |
--compact | 78 | 70.6 KB |
--toolsets core --compact | 31 | 27.8 KB |
--code-mode | 2 | 3.4 KB (+ 5.1 KB instructions) |
| Toolset | Tools |
|---|---|
history | Captured HTTP traffic: list, read, diff, sitemap, body conversion |
replay | Send requests, replay sessions and collections, session cookie jars |
websocket | WebSocket history and WebSocket replay |
race | Race pipelines and the raw-socket race window |
scopes | List, check, create, change and delete scopes |
findings | List, create, delete and export findings |
automate | Automate sessions, entries and task control |
intercept | Intercept queue and TLS pass-through options |
tamper | Match & Replace rules |
workflows | List, run and toggle workflows |
environments | Environments and their variables |
admin | Instance, projects, filter presets, hosted files, tasks, plugins |
core | Shorthand for history,replay,scopes,findings |
{
"mcpServers": {
"caido": {
"command": "caido-mcp-server",
"args": ["serve", "--toolsets", "core,websocket", "--compact"],
"env": {
"CAIDO_URL": "http://127.0.0.1:8080"
}
}
}
}
Toolsets combine with --read-only, --enforce-scope, --plugins, and --code-mode. An unknown toolset name stops the server with the list of valid names. With a toolset selection the server instructions name no specific tool, since which tools exist is then your choice.
Start the server with --code-mode (or CAIDO_MCP_CODE_MODE=1) to advertise 2 tools - caido_search (ranked TypeScript signatures) and caido_execute (sandboxed JavaScript) - instead of the full 78-tool surface. Up-front context drops from ~109 KB to ~8.4 KB (-92%), and multi-step loops, filtering, and decoding stay inside one call instead of flooding the model's context window.
{
"mcpServers": {
"caido": {
"command": "caido-mcp-server",
"args": ["serve", "--code-mode", "--enforce-scope"],
"env": {
"CAIDO_URL": "http://127.0.0.1:8080"
}
}
}
}
Scripts run inside a fresh QuickJS-NG WebAssembly runtime (Wazero, pure Go, zero CGO) pinned to an empty read-only WASI directory (no host filesystem, env, exec, or direct network access), calling the inner MCP tools registered with the exact same --enforce-scope, --read-only, --toolsets, and --plugins options.
Built-in sandbox globals:
caido.* - every registered tool in both camelCase and snake_case, plus caido.readResource(uri)util.* - base64Encode/Decode, urlEncode/Decode, hexEncode/Decode, sha256, jwtDecodestore.* - per-server 2 MiB in-memory scratchpad (get, set, delete, keys, clear; auto-cleared on selectProject)console.log - captured in output logsOperator-only guardrail flags (env vars CAIDO_MCP_EXEC_*; the model cannot raise any ceiling):
| Flag | Default | Purpose |
|---|---|---|
--exec-max-calls | 50 | Max caido.* invocations per script |
--exec-max-requests | 100 | Weighted outbound HTTP/WS request cap (requests.length for batch/race tools) |
--exec-timeout | 30s | Hard execution timeout (script timeoutSec may only lower it) |
--exec-max-memory-mb | 64 | Hard QuickJS heap cap inside WASM |
--exec-max-output-bytes | 32768 | Cap on serialized result + logs |
--exec-audit-log | (off) | Optional JSONL audit log path (summary always logged to stderr) |
You can run the same sandboxed scripts from your terminal with caido-cli exec:
caido-cli exec --search "replay"
caido-cli exec -c 'const r = await caido.listRequests({ limit: 5 }); return r.requests.map(x => x.path);'
caido-cli exec sweep.js --enforce-scope --json
78 tools are registered by default. --code-mode replaces them with 2.
| Tool | Description |
|---|---|
caido_list_requests | List requests with HTTPQL filter, scope, ordering and pagination; returns the filter's total count. snippet shows regex hits in bodies and headers without returning them |
caido_get_request | Get request details (metadata, headers, body). 2KB body limit default; binary bodies come back as base64 |
caido_diff_responses | Structural diff of two responses by Caido request ID: status/size change flags and a compact body/header summary (never dumps full bodies) |
caido_send_request | Send HTTP request via Replay, returns response inline. Polls up to 10s. Auto-injects session cookies and persists Set-Cookie (toggle with useCookieJar) |
caido_batch_send | Send multiple requests in parallel (BAC sweeps, parameter fuzzing, endpoint sweeps). Max 50 per batch |
caido_edit_request | Modify and resend an existing request. Preserves auth/cookies while changing method, path, headers, or body |
caido_export_curl | Convert a request to an executable curl command for PoC reports |
caido_create_replay_session | Create a named replay session, optionally seed with a request |
caido_list_replay_sessions | List replay sessions with kind (http, ws, pipeline) and collection |
caido_delete_replay_sessions | Bulk delete replay sessions by ID |
caido_move_replay_session | Move a session to a different collection |
caido_rename_replay_session | Rename a replay session (tab title) |
caido_get_replay_entry | Get HTTP or WebSocket replay entry (redacted request/handshake, response, WS draft and recorded frames). 2KB body limit default; binary bodies come back as base64 |
caido_clear_session_cookies | Wipe the in-memory cookie jar for a replay session |
caido_get_session_cookies | List metadata for cookies stored in a session jar matching a URL (values not returned) |
caido_list_replay_collections | List replay session collections |
caido_create_replay_collection | Create a named replay collection |
caido_rename_replay_collection | Rename a replay collection |
caido_delete_replay_collection | Delete a replay collection |
caido_list_automate_sessions | List fuzzing sessions |
caido_get_automate_session | Get session details with entry list |
caido_get_automate_entry | Get fuzz results and payloads |
caido_automate_task_control | Start/pause/resume/cancel fuzzing tasks |
caido_list_findings | List security findings |
caido_create_finding | Create finding linked to a request |
caido_delete_findings | Delete findings by IDs or reporter name |
caido_export_findings | Export findings for reporting |
caido_get_sitemap | Browse the sitemap tree: root domains, children, or a whole subtree, with optional request counts |
caido_list_scopes | List target scopes |
caido_is_in_scope | Check whether a host or URL is in the project scope; returns the matching scope and the allow/deny rule that decided it |
caido_create_scope | Create new scope with allow/deny lists |
caido_rename_scope | Rename a scope |
caido_update_scope | Change a scope's name, allowlist or denylist; addAllow / addDeny append without restating the lists |
caido_delete_scope | Delete a scope |
caido_list_projects | List projects, marks current |
caido_select_project | Switch active project |
caido_create_project | Create a new project |
caido_rename_project | Rename a project |
caido_delete_project | Delete a project |
caido_list_workflows | List automation workflows |
caido_run_workflow | Execute an active or convert workflow |
caido_toggle_workflow | Enable or disable a workflow |
caido_list_tamper_rules | List Match & Replace rule collections |
caido_create_tamper_rule | Create a tamper rule in a collection |
caido_update_tamper_rule | Update an existing tamper rule |
caido_test_tamper_rule | Dry-run a tamper rule against a raw request |
caido_toggle_tamper_rule | Enable or disable a tamper rule |
caido_delete_tamper_rule | Delete a tamper rule |
caido_get_instance | Get Caido version and platform info |
caido_intercept_status | Get intercept status (PAUSED/RUNNING) |
caido_intercept_control | Pause or resume intercept |
caido_list_intercept_entries | List queued intercept entries with HTTPQL filtering |
caido_forward_intercept | Forward intercepted request, optionally with modifications |
caido_drop_intercept | Drop intercepted request |
caido_list_environments | List environments and their variables |
caido_select_environment | Switch active environment |
caido_update_environment | Set, overwrite or delete environment variables by name, or rename the environment. Returns names and kinds, never values |
caido_create_environment | Create a new environment |
caido_delete_environment | Delete an environment |
caido_list_filters | List saved HTTPQL filter presets |
caido_create_filter | Save an HTTPQL query as a named filter preset |
caido_delete_filter | Delete a filter preset |
caido_list_hosted_files | List hosted payload files |
caido_list_tasks | List running background tasks |
caido_cancel_task | Cancel a running task by ID |
caido_list_plugins | List installed plugin packages with manifestId and backend state (id, enabled, running, error) |
caido_list_ws_streams | List WebSocket streams (connections) from the WebSocket tab |
caido_list_ws_messages | List WebSocket frames for a stream (direction/format/decoded body) |
caido_ws_connect | Open a WebSocket through a WS Replay session (url + headers/subprotocols, raw, or a history request); logged in history (Caido 0.59+) |
caido_ws_send | Send frames in order on a session's open WebSocket |
caido_ws_read | Long-poll a session's WebSocket for new (pushed) frames, with until/skip rules and a resume cursor |
caido_ws_close | Close a session's open WebSocket |
caido_set_ws_message_draft | Stage a pending text or base64 message draft on a WebSocket replay entry (Caido 0.59+) |
caido_clear_ws_message_draft | Remove the pending message draft from a WebSocket replay entry (Caido 0.59+) |
caido_convert_body | Convert a request body between JSON, form-urlencoded, XML, and multipart |
caido_race_pipeline | Race requests through a Caido Replay Pipeline (single-packet, last-byte or sequential; Caido 0.59+); logged in history |
caido_race_window_send | Fire raw HTTP/1.1 requests with synchronized last-byte send for race-condition testing (bypasses Caido proxy) |
caido_passthrough_options | Read or update pass-through options (tunnel without recording; keep history to in-scope only; Caido 0.59+) |
Opt-in MCP Tools (not registered by default):
| Tool | Flag | Description |
|---|---|---|
caido_search | --code-mode | Search registered caido.* methods and return compact TypeScript signatures |
caido_execute | --code-mode | Execute a sandboxed JS script against the inner Caido tools with util.* and store.* |
caido_call_plugin | --plugins | Call an operator-allowlisted plugin backend function (withheld under --read-only / --enforce-scope) |
Read-only data exposed via the MCP resources protocol. Agents can read these without consuming tool calls.
| URI | Description |
|---|---|
caido://requests/{id} | Full HTTP request and response for a given request ID |
caido://replay-sessions/{id} | Replay session details with entry list |
caido://sitemap | Root domains from the sitemap |
caido://findings | Security finding summaries (up to 100) |
caido://scopes | All target scopes with their allow/deny rules |
caido://project | Current project, instance version, and connection status |
The caido_send_request tool maintains an in-memory http.CookieJar per replay session. Cookies set via Set-Cookie in any response are stored and auto-injected into subsequent requests targeting the same RFC 6265 domain/path. Pass useCookieJar: false to a single call to disable injection (useful for session-fixation testing or to verify auth gates). Use caido_clear_session_cookies to wipe a session jar between test runs and caido_get_session_cookies to introspect what is stored (cookie values are not returned, only metadata).
The output of caido_send_request includes a cookieJar block with injectedCookies (names sent on this call) and storedCookies (names captured from Set-Cookie), so the LLM can verify the chain stayed authenticated.
Every caido_send_request / caido_batch_send response includes a compact fingerprint so an agent can reason about a response without the full body:
title - HTML <title>, if presentredirectTarget - Location target on a 3xxsetCookies - names set via Set-Cookie (values are never included)wordCount - body word count, for size/diff comparisonnotableHeaders - non-standard response headers (Server, X-Powered-By, custom X-*). App and flag signal often hides here - check these on every response, including 4xx/5xx.The fingerprint stays populated even when includeBody: false.
| Parameter | Type | Description |
|---|---|---|
httpql | string | HTTPQL filter query (Caido 0.58+: req.header["Name"].cont:"x", resp.body.cont:"x") |
limit | int | Max requests (default 20, max 100) |
after | string | Pagination cursor |
orderBy | string | Sort field: id, createdAt, host, method, path, query, fileExtension, source, statusCode, roundtripTime, responseLength. Omit for Caido's default order |
order | string | asc or desc (default desc when orderBy is set; desc without orderBy sorts by id, i.e. newest first) |
scopeId | string | Only requests inside this scope (ID from caido_list_scopes); totalCount then counts in-scope matches |
snippet | object | Regex scan over the returned rows: {regex, context, maxPerRequest, parts}. parts is any of responseBody (default), requestBody, responseHeaders, requestHeaders |
fields | string[] | Extra per-row fields: createdAt, host, path, query, source, responseLength, roundtripTime |
totalCount in the response is every request matching httpql, not just the rows on the page, so {"httpql": "...", "limit": 1} counts matches in one call. The newest N is {"limit": N, "order": "desc"}. nextCursor keeps the requested order, so after pages contiguously.
snippet finds a value without pulling bodies into the model's context: each returned row gets up to 3 matches (max 10), each with its part, byte offset and an excerpt (40 bytes each side by default, max 200). httpql still selects the rows; the scan only annotates them, searching up to 1 MiB per part. Header parts are searched after credential redaction, so a snippet cannot return an Authorization, Cookie or Set-Cookie value. Rows that did not come from the proxy always carry source (REPLAY, AUTOMATE, WORKFLOW, PLUGIN, IMPORT).
| Parameter | Type | Description |
|---|---|---|
ids | string[] | Request IDs (required) |
include | string[] | requestHeaders, requestBody, responseHeaders, responseBody |
bodyOffset | int | Byte offset |
bodyLimit | int | Byte limit (default 2000) |
bodyEncoding | string | auto (default), text or base64 |
With auto, a UTF-8 body comes back as text in body and anything else as base64 in bodyBase64 with bodyEncoding: "base64", the full bodySize and the slice's bodyOffset, so images, protobuf and compressed bodies can be rebuilt byte for byte. bodyOffset and bodyLimit count bytes. A character cut by bodyLimit is returned whole with the page it starts in, so paging with bodyOffset += bodyLimit loses nothing.
| Parameter | Type | Description |
|---|---|---|
parentId | string | Entry to list children of. Omit for root domains |
depth | string | With parentId: direct (default) or all for the whole subtree |
limit | int | Max entries to return. Caido has no cursor here, so this truncates locally and sets truncated; totalEntries is the full count |
includeRequestCounts | bool | Add requestCount per entry and, on root domains, capturedRequests |
A root domain is one host on one port and scheme, so rows carry port and isTls and the same label can appear more than once. capturedRequests is the number of captured requests for that host, port and scheme. Counts cost one lookup per entry, so pair includeRequestCounts with limit on a large project.
| Parameter | Type | Description |
|---|---|---|
raw | string | Full HTTP request (this or curl is required) |
curl | string | A cURL command to send instead of raw (bash form, e.g. browser "Copy as cURL"); sets host/port/tls from its URL |
host | string | Target host (overrides Host header) |
port | int | Target port |
tls | bool | Use HTTPS (default true) |
sessionId | string | Replay session (auto-managed if omitted) |
collectionId | string | File the request as a new session in this collection (not with sessionId) |
name | string | Title for that new session (not with sessionId) |
bodyLimit | int | Response body byte limit (default 2000) |
bodyOffset | int | Response body byte offset (default 0) |
useCookieJar | bool | Auto-inject session cookies and persist Set-Cookie (default true); set false to disable for this call only |
includeBody | bool | Include response body text (default true); the fingerprint is always populated |
marker | string | String to search for in the response body; when set, output.reflected reports whether it was found |
| Parameter | Type | Description |
|---|---|---|
host | string | Target host (required) |
port | int | Target port (default 443 with TLS, 80 without) |
tls | bool | Use TLS (default true) |
requests | array | 1..50 {label, raw} requests; repeat one request N times to race it (required) |
strategy | string | last-byte (default), single-packet (needs Caido's experimental v2 network stack), or sequential |
convertToHttp2 | bool | single-packet: send over one HTTP/2 connection (default true) |
fireOnPartial | bool | single-packet/last-byte: release the requests that prepared even if some failed (default false) |
abortOnFailure | bool | sequential: stop at the first failure |
collectionId / name | string | File and title the pipeline session |
bodyLimit | int | Per-response body bytes (default 256, max 4096) |
timeoutSec | int | Seconds to wait for all responses (default 30, max 120) |
Returns statusCounts (e.g. {"200":2,"409":18}) plus per-request status, timing and body.
Drive a WebSocket (e.g. a graphql-ws subscription) through Caido: the socket is opened from a WS Replay session, so every frame lands in WS history and the named replay tab. The tools take the session's sessionId; caido_ws_read also reads any stream by streamId.
| Tool | Parameter | Description |
|---|---|---|
caido_ws_connect | url + headers + subprotocols | Build the upgrade request from a ws:///wss:// URL; headers override generated ones by name |
raw + host/port/tls | Or a full raw upgrade request | |
requestId | Or a captured upgrade request from history | |
sessionId | Reuse a WS session with the new handshake (closes an open connection on it). Some Caido plans allow a single WS session | |
reuse | When the plan's WS session limit blocks creating one and exactly one WS session exists, reuse it (moved into collectionId, renamed to name) | |
collectionId / name | File and title the session | |
connect | false only prepares the tab (default true) | |
timeoutSec | Handshake wait, and on a reused session the wait for its open connection to close (default 10, max 60) | |
caido_ws_send | frames | 1..50 {body, format: TEXT|BINARY, base64} sent in order |
delayMs | Pause between frames (max 10000) | |
caido_ws_read | after | Cursor from the previous read; drop it after reconnecting |
waitMs | Long-poll time (default 3000, max 120000) | |
untilContains / untilCount | Stop at a matching frame / after N frames (at most one; default: return as soon as frames arrive) | |
skipBodies | Drop exact bodies such as keep-alives; PING/PONG are always dropped | |
includeSent | Also return client frames (default: server frames only) | |
limit / bodyLimit | Frames per read (default 50, max 200) / bytes per frame body (default 4096, max 65536) | |
caido_ws_close | timeoutSec | Wait for Caido to close the socket (default 10, max 60). closed: false means nothing was open; timedOut: true that the close was not confirmed and the socket may still be open. Caido's API sends no status code or reason |
caido_ws_connect returns statusCode (101 on success), response headers, open, and the body of a rejected handshake; error when the connection failed before any response (refused, DNS, TLS), pending when timeoutSec passed first. It also returns the name, collectionId and collectionName the session is filed under; on a reused session, previousStreamId is the earlier run the tab no longer shows (read it with caido_ws_read streamId), movedFrom the collection it left, and reused that reuse=true took it. caido_ws_read frames carry direction sent/received; more: true means the read hit its scan cap with frames left (read again with the cursor), open: false that the connection closed; skippedSent / skippedBodies / skippedControl count frames left out as client frames, skipBodies matches and PING/PONG. caido_list_ws_streams adds replaySessionId to streams opened from a WS replay session. Caveat: Caido 0.59.1 replay recording drops server frames that arrive back to back (under ~20ms apart).
| Parameter | Type | Description |
|---|---|---|
id | string | Replay entry ID (required) |
sessionKind | string | auto (default; tries HTTP then WS), HTTP, or WS |
bodyOffset | int | Byte offset |
bodyLimit | int | Byte limit (default 2000; WS frames capped at 65536) |
bodyEncoding | string | auto (default), text or base64, as for caido_get_request |
messageLimit | int | Recorded WS frames to return (default 20, max 100; use streamId with caido_list_ws_messages to page further) |
| Tool | Parameter | Type | Description |
|---|---|---|---|
caido_set_ws_message_draft | id | string | WebSocket replay entry ID (required) |
payload | string | Frame payload: text, or base64 when payloadEncoding:"base64" (required) | |
payloadEncoding | string | text (default) or base64 | |
direction | string | SERVER (default, masked client frame) or CLIENT (unmasked) | |
format | string | TEXT (default), BINARY, PING, PONG, or CLOSE | |
serverTimeoutMs | int | Server wait per message in ms (default 5000, max 120000) | |
caido_clear_ws_message_draft | id | string | WebSocket replay entry ID (required) |
| Parameter | Type | Description |
|---|---|---|
id | string | Entry ID (required) |
limit | int | Max results |
after | string | Pagination cursor |
| Parameter | Type | Description |
|---|---|---|
requestId | string | Associated request (required) |
title | string | Finding title (required) |
description | string | Finding description |
| Parameter | Type | Description |
|---|---|---|
name | string | Scope name (required) |
allowlist | string[] | Hostnames to include, e.g. example.com, *.example.com (required) |
denylist | string[] | Hostnames to exclude |
| Parameter | Type | Description |
|---|---|---|
id | string | Project ID to switch to (required) |
| Parameter | Type | Description |
|---|---|---|
action | string | pause or resume (required) |
| Parameter | Type | Description |
|---|---|---|
filter | string | HTTPQL filter query |
limit | int | Max entries (default 20, max 100) |
after | string | Pagination cursor |
| Parameter | Type | Description |
|---|---|---|
id | string | Intercept entry ID (required) |
raw | string | Modified raw HTTP request (base64-encoded, optional) |
| Parameter | Type | Description |
|---|---|---|
id | string | Intercept entry ID (required) |
| Parameter | Type | Description |
|---|---|---|
action | string | start, pause, resume, or cancel (required) |
session_id | string | Automate session ID (required for start) |
task_id | string | Automate task ID (required for pause/resume/cancel) |
| Parameter | Type | Description |
|---|---|---|
ids | string[] | Finding IDs to delete |
reporter | string | Delete all findings by this reporter |
| Parameter | Type | Description |
|---|---|---|
ids | string[] | Finding IDs to export |
reporter | string | Export all findings by this reporter |
No parameters required. Returns all environments with variables and selected/global context.
| Parameter | Type | Description |
|---|---|---|
id | string | Environment ID (required, empty string to deselect) |
| Parameter | Type | Description |
|---|---|---|
id | string | Workflow ID (required) |
type | string | active or convert (required) |
request_id | string | Request ID (required for active workflows) |
input | string | Input data (required for convert workflows) |
| Parameter | Type | Description |
|---|---|---|
id | string | Workflow ID (required) |
enabled | bool | Enable or disable (required) |
No parameters required. Returns all tamper rule collections with nested rules
(id, name, section, enabled, condition, sources).
| Parameter | Type | Description |
|---|---|---|
collection_id | string | Collection ID (required) |
name | string | Rule name (required) |
section | string | Section to match (required), see below |
operation | object | Operation mode and parameters, see below |
match | string | Legacy shorthand for operation.match |
replace | string | Legacy shorthand for operation.value |
condition | string | HTTPQL filter condition |
sources | string[] | Traffic sources: INTERCEPT, REPLAY, AUTOMATE, IMPORT, PLUGIN, WORKFLOW, SAMPLE |
operation.kind | Meaning | Fields |
|---|---|---|
updateRaw | Pattern match over the raw section text | match, match_kind, value |
updateValue | Set the value of a named header or query param | name, value |
add | Insert a new header or query param | name, value |
remove | Delete a named header or query param | name |
match_kind selects how match is read: regex (default), value (literal
substring, no escaping) or full (the entire section, match must be omitted).
Use workflow_id instead of value to supply the replacement from a convert
workflow.
All four modes are available on requestHeader, responseHeader and
requestQuery. Every other section supports exactly one mode, and asking for
another returns an error naming the modes it does support:
requestAll, requestBody, requestFirstLine, requestPath, responseAll,
responseBody, responseFirstLine take updateRaw; requestMethod,
requestSNI, responseStatusCode take updateValue (they always apply, so
they accept no match or name).
Omitting operation entirely falls back to the section's default mode with the
legacy match/replace fields, so existing callers keep working unchanged.
Full update: pass the complete rule state, not a partial patch. Accepts the same
section, operation and legacy match/replace parameters as
caido_create_tamper_rule.
| Parameter | Type | Description |
|---|---|---|
id | string | Tamper rule ID (required) |
name | string | Rule name (required) |
section | string | Section to match (required) |
operation | object | Operation mode and parameters |
match | string | Legacy shorthand for operation.match |
replace | string | Legacy shorthand for operation.value |
condition | string | HTTPQL filter condition |
sources | string[] | Traffic sources |
Dry-run a rule against a raw HTTP request or response and return the transformed
result. Nothing is persisted and no traffic is sent. Accepts the same section,
operation and legacy match/replace parameters as
caido_create_tamper_rule.
| Parameter | Type | Description |
|---|---|---|
raw | string | Raw HTTP request or response to transform (required) |
section | string | Section to match (required) |
operation | object | Operation mode and parameters |
Returns raw (the transformed message) and changed (whether the rule matched
anything at all), which is the quickest way to catch a rule that silently
matches nothing.
| Parameter | Type | Description |
|---|---|---|
id | string | Tamper rule ID (required) |
enabled | bool | Enable or disable (required) |
| Parameter | Type | Description |
|---|---|---|
id | string | Tamper rule ID (required) |
Standalone terminal client for Caido. No MCP required - use it directly from your shell.
curl -fsSL https://raw.githubusercontent.com/c0tton-fluff/caido-mcp-server/main/install.sh | TOOL=cli bash
Or download from Releases.
Or install with the Go toolchain (Go 1.25+):
go install github.com/c0tton-fluff/caido-mcp-server/v4/cmd/caido-cli@latest
git clone https://github.com/c0tton-fluff/caido-mcp-server.git
cd caido-mcp-server
go build -o caido-cli ./cmd/caido-cli
Requires authentication - either set CAIDO_ACCESS_TOKEN (same static access token the MCP server accepts; legacy CAIDO_PAT is also accepted) or run caido-mcp-server login first to store an OAuth token. Sensitive headers in CLI output are redacted by default; set CAIDO_ALLOW_SENSITIVE_HEADERS=true to reveal them.
# Check connection and auth
caido-cli status -u http://127.0.0.1:8080
# Send structured requests
caido-cli send GET https://target.com/api/users
caido-cli send POST https://target.com/api/login -j '{"user":"admin","pass":"test"}'
caido-cli send PUT https://target.com/api/profile -H "Authorization: Bearer tok" -j '{"role":"admin"}'
# Send raw HTTP requests
caido-cli raw 'GET /api/users HTTP/1.1\r\nHost: target.com\r\n\r\n'
caido-cli raw -f request.txt --host target.com --port 8443
echo -n 'GET / HTTP/1.1\r\nHost: example.com\r\n\r\n' | caido-cli raw -
# Parallel requests via Replay (BAC sweeps, param fuzzing, endpoint sweeps)
caido-cli batch sweep https://target.com/api/profile -t "owner=eyJ1...,cross=eyJ2...,noauth"
caido-cli batch fuzz "https://target.com/api/search?q=test" -p q -v "test,test',1 OR 1=1" -H "Authorization: Bearer eyJ..."
caido-cli batch ep -t eyJ... https://target.com/dashboard https://target.com/admin
caido-cli batch file batch.json
# Browse proxy history
caido-cli history
caido-cli history -f 'req.host.eq:"target.com"' -n 20
# Get full request/response details
caido-cli request 12345
# Run sandboxed JS scripts against Caido (Code Mode on the CLI)
caido-cli exec --search "replay"
caido-cli exec -c 'const r = await caido.listRequests({ limit: 5 }); return r.requests.map(x => x.path);'
caido-cli exec sweep.js --enforce-scope --json
# Encode/decode
caido-cli encode base64 "hello world"
caido-cli decode url "%3Cscript%3E"
caido-cli encode hex "test"
| Command | Description |
|---|---|
status | Check Caido instance health and auth token |
send METHOD URL | Send structured HTTP request via Replay API |
raw | Send raw HTTP request (argument, file with -f, or stdin with -) |
batch MODE | Parallel requests via Replay: sweep (N tokens), fuzz (N values), ep (N URLs), file (JSON spec) |
exec [FILE | -] | Run a sandboxed JS script (-c, file, or - stdin) against all Caido tools, or --search API signatures offline |
history | List proxy history with HTTPQL filtering |
request ID | Get full request/response by ID |
encode TYPE VALUE | Encode value (url, base64, hex) |
decode TYPE VALUE | Decode value (url, base64, hex) |
| Flag | Description |
|---|---|
-u, --url | Caido instance URL (or set CAIDO_URL) |
-b, --body-limit | Response body byte limit (default 2000) |
caido-mcp-server/
cmd/
caido-mcp-server/ MCP server (stdio transport)
caido-cli/ Standalone CLI
internal/
auth/ OAuth device flow, static access token (CAIDO_ACCESS_TOKEN), token store, serialized auto-refresh
buildinfo/ Version resolution (ldflag or go-install module version)
codemode/ QuickJS-NG WASM sandbox (Wazero), TypeScript API search, operator guardrails, util.*/store.*
httputil/ HTTP parsing, credential redaction, fingerprinting, response diff, CRLF normalization
raceattack/ Raw-socket synchronized last-byte race engine
replay/ Replay session management, WS replay, cookie jar, response polling
resources/ MCP read-only resources (requests, sessions, sitemap, findings, scopes, project)
scope/ Host/URL allowlist/denylist scope matching
tools/ MCP tool definitions (one file per tool)
testutil/ Mock GraphQL + plugin server, vendored schema validation, MCP test helpers
The cmd/ directory names match the installed binary names so go install .../cmd/caido-mcp-server@latest produces a correctly-named binary. Both commands share internal/ packages. The project uses caido-community/sdk-go for all GraphQL communication with Caido.
| Error | Fix |
|---|---|
Invalid token | CAIDO_ACCESS_TOKEN must be the local Caido access token (not a Cloud PAT) - re-grab it from the GUI console, or run caido-mcp-server login again |
token expired, no refresh token | The static access token expires after ~7 days; re-grab it into CAIDO_ACCESS_TOKEN, or use caido-mcp-server login (OAuth auto-refreshes) |
poll failed: timed out | Target server slow; use get_replay_entry with the returned entryId |
no authentication token found | Set CAIDO_ACCESS_TOKEN env var or run caido-mcp-server login before serve |
MCP server logs: ~/.cache/claude-cli-nodejs/*/mcp-logs-caido/
Sensitive HTTP headers (Authorization, Cookie, Set-Cookie, CSRF/session tokens, API keys) are redacted everywhere output leaves the server - structured tool output, raw HTTP and WebSocket handshake dumps, replay entries, fuzz templates, and the caido://requests/{id} resource all pass through a single redaction choke-point to prevent credential leakage to LLM context. On an authorized engagement you can opt out with CAIDO_ALLOW_SENSITIVE_HEADERS (see Revealing sensitive headers). All string inputs are length-validated server-side, and request batch sizes are capped.
Opt-in --code-mode executes scripts in a fresh QuickJS-NG WebAssembly sandbox (Wazero) mounted on an empty 0500 WASI directory with operator-only call, weighted outbound-request, memory, timeout, and output caps, inheriting --enforce-scope, --read-only, --toolsets, and --plugins. Opt-in --plugins enforces an operator allowlist against the resolved package manifestId and is always withheld under --enforce-scope and --read-only. Release installs via install.sh verify SHA-256 checksums against sha256sums.txt before replacing binaries.
Access tokens (via CAIDO_ACCESS_TOKEN) and OAuth tokens are stored atomically with 0600 permissions and never appear in process arguments or log output.
To report a security issue, open a GitHub issue or contact the maintainer directly.
go build ./... and go test ./... -raceA tracked .githooks/pre-push runs the same checks as CI's lint + test jobs (gofmt, go vet, golangci-lint run ./..., go test ./... -race) so failures are caught before they reach CI. Enable it once per clone:
git config core.hooksPath .githooks
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.12.2
Built with caido-community/sdk-go and modelcontextprotocol/go-sdk.
Loading reviews...
GitHub checked 16h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.