caido-mcp
caido-mcp
Model Context Protocol (MCP) server for Caido (GET /health + POST /graphql). Connect Claude Desktop, Cursor, Cline / VS Code, Windsurf, or n8n to your local or remote Caido instance to query captured HTTP traffic with HTTPQL, inspect raw request/response pairs, manage project scopes, and record structured security findings.
Built on the official @modelcontextprotocol/sdk stdio transport and @caido/server-auth Personal Access Token (caido_…) exchange, with JSON Schema 2020-12 validated tools, sensitive HTTP header redaction (CAIDO_REDACT_AUTH_HEADERS=1), preview-first mutations (confirm: false by default), and a hard read-only lock (CAIDO_READ_ONLY=1).
Features
Official Caido GraphQL & PAT contract: Supports both
CAIDO_PAT(caido_…Personal Access Tokens exchanged and refreshed automatically via@caido/server-auth) and static/sessionCAIDO_ACCESS_TOKENBearer tokens againstPOST /graphqlandGET /health.JSON Schema 2020-12 & Anthropic API verified: Every tool's
inputSchemais validated in CI withAjv2020(strict: true) and checked against Anthropic's strict tool-use schema rules.Context-safe raw HTTP inspection & DLP: Decodes Base64
Request.raw/Response.rawpayloads, masksAuthorization,Cookie,Set-Cookie, andX-Api-Keyheader values by default (CAIDO_REDACT_AUTH_HEADERS=1), and bounds payload size viaCAIDO_MAX_RAW_BYTES(default8192).Safe-by-default mutations:
select_project,create_scope, andcreate_findingdefault toconfirm: false(dry-run preview), andCAIDO_READ_ONLY=1removes and blocks all write tools completely.
Related MCP server: prd-ops-lens-mcp
Tools
Tool | Caido Endpoint / Operation | Mode | Description |
|
| Read | Instance version, readiness, viewer identity/plan, and workspace project summary. |
|
| Read | Lists all Caido projects ( |
|
| Write ( | Switches the active Caido workspace project. Hidden when |
|
| Read | Lists target scopes with |
|
| Write ( | Creates a target scope with |
|
| Read | Lists saved |
|
| Read | Searches captured HTTP history via Caido |
|
| Read | Fetches a full HTTP request & response by ID with Base64 decoding and header DLP redaction. |
|
| Read | Paginated security findings with optional |
|
| Write ( | Attaches a structured security finding ( |
Environment Variables
Variable | Required | Default | Description |
| No |
| Base URL of your local or remote Caido instance. |
| One of | — | Caido Personal Access Token ( |
| One of | — | Direct Bearer access token (for offline/CI or pre-authenticated sessions). |
| No | — | Optional file path to cache PAT-exchanged tokens ( |
| No |
| Set to |
| No |
| Set to |
| No |
| Masks |
| No |
| Maximum decoded bytes per raw HTTP request/response ( |
| No |
| Per-request HTTP timeout in milliseconds ( |
Client Configuration
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"caido": {
"command": "npx",
"args": ["-y", "github:khoap1220-hue/caido-mcp"],
"env": {
"CAIDO_URL": "http://127.0.0.1:8080",
"CAIDO_PAT": "caido_your_pat_here"
}
}
}
}Cursor (.cursor/mcp.json)
{
"mcpServers": {
"caido": {
"command": "npx",
"args": ["-y", "github:khoap1220-hue/caido-mcp"],
"env": {
"CAIDO_URL": "http://127.0.0.1:8080",
"CAIDO_PAT": "caido_your_pat_here"
}
}
}
}Cline / VS Code (.vscode/mcp.json)
{
"servers": {
"caido": {
"type": "stdio",
"command": "npx",
"args": ["-y", "github:khoap1220-hue/caido-mcp"],
"env": {
"CAIDO_URL": "http://127.0.0.1:8080",
"CAIDO_PAT": "caido_your_pat_here"
}
}
}
}Windsurf (~/.codeium/windsurf/mcp_config.json)
{
"mcpServers": {
"caido": {
"command": "npx",
"args": ["-y", "github:khoap1220-hue/caido-mcp"],
"env": {
"CAIDO_URL": "http://127.0.0.1:8080",
"CAIDO_PAT": "caido_your_pat_here"
}
}
}
}n8n (MCP Client Tool Node — Command-line / Stdio)
Field | Value |
Connection Type |
|
Command |
|
Arguments |
|
Environment |
|
Development & Verification
Requires Node.js >= 20.
npm install
npm run lint
npm run typecheck
npm run build
npm testLicense
MIT © 2026 Khoa Phan
Available Tools
10 toolscreate_findingB
Attach a structured security finding to a captured Caido request ID. Defaults to confirm=false (dry-run preview).
Inputs: title (required), requestId (required), confirm, reporter, +2 more.
create_scopeA
Create a new target scope with allowlist and denylist host/glob rules. Defaults to confirm=false (dry-run preview).
Inputs: name (required), allowlist (required), confirm, denylist.
get_instance_statusA
Check Caido instance health, version, readiness, authenticated viewer profile/plan, and total workspace projects.
Inputs: no named parameters.
get_requestA
Fetch a captured HTTP request and its paired response by Caido request ID, with Base64 decoding and sensitive header redaction.
Inputs: requestId (required), includeRequestRaw, includeResponseRaw.
list_filter_presetsA
List saved HTTPQL and StreamQL filter presets in Caido with their IDs, names, aliases, and query clauses.
Inputs: no named parameters.
list_findingsA
List security findings recorded in the active Caido project with cursor pagination, optional reporter filter, and ordering.
Inputs: after, first, orderBy, ordering, +1 more.
list_projectsA
List all Caido workspace projects with their IDs, status, size in bytes, version, and read-only state.
Inputs: no named parameters.
list_requestsA
Search captured HTTP traffic history in Caido using HTTPQL filters, optional scopeId, cursor pagination, and sort order.
Inputs: after, first, filter, orderBy, +4 more.
list_scopesA
List all target scopes configured in the active Caido project, including allowlist and denylist glob patterns.
Inputs: no named parameters.
select_projectA
Switch the active Caido project by ID. Defaults to confirm=false (dry-run preview) before changing workspace state.
Inputs: projectId (required), confirm.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct resource+action pair: instance status, projects, scopes, filter presets, requests, and findings are all clearly separated. The list/get pairing on requests (list_requests vs get_request) and scopes vs presets are unambiguous from descriptions.
All ten tools follow a clean verb_noun snake_case pattern (get_instance_status, list_projects, create_scope, create_finding, etc.). No mixed conventions or vague single-word verbs.
Ten tools is well within the ideal 3-15 range and each maps to a meaningful operation in the Caido workflow. Nothing feels padded or redundant.
The server covers read-heavy discovery plus create for scopes and findings, but lacks update/delete operations for scopes and findings, and filter presets are list-only. Agents cannot fully manage the lifecycle of the artifacts they create, which are notable gaps.
Maintenance
Related MCP Connectors
Query metrics, targets, entities, and team data in your Steep workspace via MCP.
Access New Relic observability data through MCP - query metrics, logs, traces, entities, and more
n8n MCP — query your own n8n instance (BYO).
Find, document and execute authenticated API calls across 1000+ apps via one MCP server
Related MCP Servers
- AlicenseBqualityDmaintenanceExposes local Reqable network capture traffic to MCP clients for real-time monitoring and analysis of HTTP requests. It enables developers to query, search, and generate code from captured traffic stored locally within a private SQLite database.1734 PyPI236MIT
- AlicenseNot gradedqualityBmaintenanceEnables incident responders to query and correlate observability and DevOps evidence across Grafana, Prometheus, Loki, Uptime Kuma, CloudWatch, IAM, and PostHog from a local MCP client, with bounded reads and redacted audit records.MIT
- AlicenseNot gradedqualityAmaintenanceEnables authorized penetration testers to run reconnaissance, scanning, brute-force, exploitation, traffic capture, wordlist generation, and client-report workflows through MCP clients, with stdio/HTTP/SSE transport and OIDC bearer authentication.157 npmGPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables professional penetration testers to run reconnaissance, exploitation, brute-force, traffic-capture, and reporting workflows through MCP tools over STDIO/HTTP/SSE transports with bearer/OIDC authentication and Dockerized host tooling.157 npmGPL 3.0