Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, get in touch and we’ll put it right.

Caddy MCP Server

NPM · @YAWLABS/CADDY-MCP · SCANNED SEP 20

MCP server for managing Caddy web servers via the admin API

Available components

+20 this week 85 Trust /100
Trust breakdown (7 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →

Supply Chain Security98
  • No malware found by supply-chain analysis.Pass
  • No known CVEs affecting this package version or its production dependencies.Pass
  • No install/post-install scripts declared.Pass
  • 31 of 95 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency48
  • Source repository is publicly reachable at the declared URL. View diagnostics → Pass
  • Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
  • Clear OSI-approved license (MIT).Pass
  • Actively maintained (last published 0 days ago).Pass
  • Publishes a security disclosure policy (SECURITY.md).Pass
Schema Quality & AI Usability81
  • 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).Pass
  • AI-judged instruction clarity (excellent).Pass
  • Context-footprint check failed: tool/resource definitions use about 3804 tokens (~172/item across 22 items; 18 tools + 4 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management93
  • Stability observed for 28 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
Tool Safety100
  • No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
  • All 2 tool(s) whose name or description implies an irreversible operation declare an MCP destructiveHint annotation.Pass
  • An AI judge read all 19 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Install

How do I install the Caddy MCP Server server?

Caddy MCP Server runs locally as an npm package, launched with npx -y @yawlabs/caddy-mcp. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

npm · @yawlabs/caddy-mcp

# add to Claude Code
claude mcp add yawlabs-caddy-mcp -- npx -y @yawlabs/caddy-mcp
// .cursor/mcp.json
{
  "mcpServers": {
    "yawlabs-caddy-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/caddy-mcp"
      ]
    }
  }
}
// .vscode/mcp.json
{
  "servers": {
    "yawlabs-caddy-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/caddy-mcp"
      ]
    }
  }
}
# add to Codex CLI
codex mcp add yawlabs-caddy-mcp -- npx -y @yawlabs/caddy-mcp
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "yawlabs-caddy-mcp": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@yawlabs/caddy-mcp"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add yawlabs-caddy-mcp --command npx --arg -y --arg @yawlabs/caddy-mcp
# ~/.hermes/config.yaml
mcp_servers:
  yawlabs-caddy-mcp:
    command: "npx"
    args: ["-y", "@yawlabs/caddy-mcp"]
// ~/.netclaw/config/netclaw.json
{
  "McpServers": {
    "yawlabs-caddy-mcp": {
      "Transport": "stdio",
      "Command": "npx",
      "Arguments": [
        "-y",
        "@yawlabs/caddy-mcp"
      ]
    }
  }
}
# add to Vellum
assistant mcp add yawlabs-caddy-mcp -t stdio -c npx -a -y @yawlabs/caddy-mcp
// mcp.json
{
  "mcpServers": {
    "yawlabs-caddy-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/caddy-mcp"
      ]
    }
  }
}
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 20 Sept 26 0
    • Schema quality: 141 → 172 functional
    • Package version: 2.5.3 → 2.5.4 functional
  • 19 Sept 26 +1
    • Stability: 0.87 → unverified security
    • Tool safety: pass → unverified security
    • Schema quality: 128 → 141 functional
    • Capabilities: pass → unverified functional
    • Tool coverage: 100 → unverified functional
    • Schema quality: 100 → unverified functional
    • Package version: 2.5.2 → 2.5.3 functional
  • 16 Sept 26 +8
    • Known CVEs: unverified → pass security
    • Dependency health: unverified → 0.85 functional
    • Stability: pass → 0.80 functional
  • 15 Sept 26 −10
    • Stability: 0.97 → unverified security
    • Known CVEs: pass → unverified security
    • Tool safety: pass → unverified security
    • Stability: 0.97 → pass security
    • Capabilities: pass → unverified functional
    • Dependency health: 0.84 → unverified functional
    • Tool coverage: 100 → unverified functional
    • Schema quality: 100 → unverified functional
    • Package version: 2.5.1 → 2.5.2 functional
  • 14 Sept 26 +21
    • Stability: 0.93 → unverified security
    • Tool safety: pass → unverified security
    • Known CVEs: pass → unverified security
    • Malware scan: unverified → pass security
    • Source repository: fail → pass security
    • Capabilities: pass → unverified functional
    • Tool coverage: 100 → unverified functional
    • Schema quality: 100 → unverified functional
    • Dependency health: 0.84 → unverified functional
    • Package version: 2.4.4 → 2.5.1 functional
    • Package version: 2.4.4 → 2.5.0 functional
  • 13 Sept 26 +11
    • Malware scan: unverified → pass security
    • Known CVEs: unverified → pass security
    • Dependency health: unverified → 0.84 functional
    • Package version: 2.4.1 → 2.4.4 functional
    • Package version: 2.4.1 → 2.4.3 functional
    • Package version: 2.4.1 → 2.4.2 functional
  • 12 Sept 26 −25
    • Stability: 0.87 → unverified security
    • Malware scan: pass → unverified security
    • Known CVEs: pass → unverified security
    • Tool safety: pass → unverified security
    • Capabilities: pass → unverified functional
    • Dependency health: 0.84 → unverified functional
    • Tool coverage: 100 → unverified functional
    • Schema quality: 100 → unverified functional
    • Package version: 2.4.0 → 2.4.1 functional
  • 9 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 77 to 80. That category is still filling its 30-day observation window: 23 days of observed history at the previous scan, 24 at this one. The score rises as the window fills, whether or not the server changes.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 20 Sept 2026 · Analysed npm/@yawlabs/caddy-mcp@2.5.4

Provenance No attestation

The registry publishes no build provenance for this version, so there is nothing to verify.

Result No attestation
Ecosystem npm

Background: How many MCP packages publish verified provenance →

Dependencies 95 packages
Packages resolved 95
Stale 31
Tree resolution Complete

Background: SBOMs and build attestations, explained →

MCP tools · 18 exposed · ~3,598 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →

Tool Tokens
caddy_adapt ~320

Convert a config in any registered adapter format to Caddy JSON without loading it. Useful for previewing what a Caddyfile produces, or for porting from nginx/yaml configs when Caddy is built with the matching adapter module ('caddyfile' is built-in; 'nginx', 'yaml', etc. require their adapter modules to be compiled into the Caddy binary). Returns the adapted JSON and any warnings separately. One exception to 'without loading it': on Caddy <= 2.11.4 a Caddyfile 'order' global option is not preview-only. It mutates that Caddy process's directive order, so it carries into every later Caddyfile adapt or load there, and an 'order' line that FAILS (unknown target, bad positional, extra arg) still removes the directive it names -- later Caddyfiles using that directive then fail with "directive 'X' is not an ordered HTTP handler" until another 'order' line re-places it or Caddy restarts. Fixed upstream in caddyserver/caddy#7995, unreleased as of v2.11.4.

NameTypeReqDescription
adapterstringConfig format adapter. Must match an adapter Caddy was built with. Built-in: 'caddyfile' (default). Common external adapters: 'nginx' (caddy-nginx-adapter), 'yaml' (caddy-yaml).
configstringyesThe raw config text (e.g., Caddyfile contents, nginx.conf, yaml)

No output schema declared.

No examples provided.

caddy_add_route ~134

Add a route with full control over match conditions and handlers. Supports any Caddy handler (reverse_proxy, file_server, static_response, redirect, encode, headers, etc.).

NameTypeReqDescription
handlearrayyesArray of handler objects (e.g., [{ handler: 'file_server', root: '/var/www' }])
matcharrayyesArray of match objects (e.g., [{ host: ['example.com'], path: ['/api/*'] }])
serverstringCaddy server name (default: srv0)
terminalbooleanStop processing further routes after this one matches

No output schema declared.

No examples provided.

caddy_config_by_id ~319

Access config by @id tag. Any config object with an '@id' field can be read, updated, or deleted by its ID instead of needing its full path. This is the recommended way to manage individual routes and config objects. The 'delete' action requires confirm=true.

NameTypeReqDescription
actionstringAction to perform
confirmbooleanMust be true to actually delete (only enforced for action='delete')
idstringyesThe @id value of the config object
modestringFor 'set' action: 'overwrite' = PATCH (replace the identified object, or the value at subpath; default). 'append' = POST and 'insert' = PUT behave as in caddy_config_set at the resolved path: with a…
subpathstringOptional sub-path within the identified object
valueNew value (required for 'set' action)

No output schema declared.

No examples provided.

caddy_config_delete ~258

Delete config at a JSON path. Removes the config node at the specified path. Deleting a parent node also deletes every descendant -- e.g. deleting 'apps/http/servers/srv0' removes that server and all of its routes. Requires confirm=true. Any path that addresses the config ROOT ('', '/', 'config', '/config/', and slash-only variants of those) addresses the ENTIRE config and unloads it: every app and server goes, and so does the 'admin' block, after which Caddy re-binds its admin endpoint to its default address (localhost:2019, or $CADDY_ADMIN in Caddy's environment). If CADDY_ADMIN_URL points anywhere else, neither this server nor caddy_revert can reach Caddy afterwards. A root delete is snapshotted first, so caddy_revert can restore it while Caddy is still reachable; no other path is snapshotted. To REPLACE the config rather than unload it, use caddy_load.

NameTypeReqDescription
confirmbooleanMust be true to actually delete the config node (safety)
pathstringyesConfig path to delete (e.g., 'apps/http/servers/srv0/routes/0')

No output schema declared.

No examples provided.

caddy_config_get ~70

Read Caddy config at any JSON path. Returns the full config when path is empty, or a subtree at a specific path (e.g., 'apps/http/servers/srv0/routes').

NameTypeReqDescription
pathstringConfig path (e.g., 'apps/http/servers/srv0')

No output schema declared.

No examples provided.

caddy_config_set ~275

Write config at a JSON path. Mode 'overwrite' (default) replaces existing values (PATCH) — safe and idempotent. Mode 'append' (POST) adds to an array — NOT idempotent: calling twice with the same route duplicates it — but on a non-array key it REPLACES whatever is there, and it cannot create missing parent objects. Mode 'insert' (PUT) inserts at an array index (useful for route ordering), or strictly creates an object key together with any missing parents and fails with 409 if the key already exists — the safe way to create a server or app, including on an instance with no config at all.

NameTypeReqDescription
modestring'overwrite' = PATCH (replace existing, default, idempotent; 404 if the key does not exist), 'append' = POST (appends to arrays, NOT idempotent; REPLACES an existing non-array key; cannot create missi…
pathstringyesConfig path to write to (e.g., 'apps/http/servers/srv0/routes')
valueyesThe JSON value to set at the path

No output schema declared.

No examples provided.

caddy_list_routes ~122

List all routes on a Caddy HTTP server with a human-readable summary of matchers and handlers, followed by the raw route JSON. Both halves are capped on large servers: the summary at 500 routes, the JSON at 20000 characters (truncated on whole-route boundaries, so it always parses). When either cap trims output, a note says how many routes were omitted -- read the rest with caddy_config_get at 'apps/http/servers/<server>/routes'.

NameTypeReqDescription
serverstringCaddy server name (default: srv0)

No output schema declared.

No examples provided.

caddy_list_servers ~40

List all configured HTTP servers with their names, listen addresses, route counts, and TLS status. Use this to discover server names before calling route tools.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

caddy_load ~187

Replace the entire Caddy configuration atomically. Accepts a JSON config object, or a Caddyfile string with format='caddyfile'. This is the safest way to make large config changes. Runs on CADDY_LOAD_TIMEOUT (55 s by default), like every config change; a load that times out is not retried and may still apply, so re-read the config before loading again. Requires confirm=true: this DISCARDS the entire running config, including servers and routes not present in the supplied config. The prior config is snapshotted first and can be restored with caddy_revert.

NameTypeReqDescription
configyesFull config — JSON object or Caddyfile text string
confirmbooleanMust be true to replace the running configuration (safety)
formatstringConfig format: 'json' (default) or 'caddyfile'

No output schema declared.

No examples provided.

caddy_metrics ~230

Get Prometheus metrics from Caddy. Shows request counts, durations, TLS handshake stats, active connections, and more. Output can be megabytes on busy servers -- use `filter` to keep only metrics whose name contains a substring (e.g. 'http_requests' or 'tls'); HELP/TYPE comment lines for retained metrics are kept. Filter-mode drops blank lines and free-form '# comment' lines, keeping only '# HELP'/'# TYPE' lines for matching metrics; the '# EOF' end-of-file marker is always preserved. Use `max_lines` to cap the response (default 500); a trailing comment reports how many lines were dropped.

NameTypeReqDescription
filterstringSubstring to match against metric names. Keeps sample lines whose metric name contains this substring, plus their `# HELP` and `# TYPE` comment lines. Empty/absent = no filtering. Label values are NO…
max_linesintegerMaximum number of output lines (default 500). Excess lines are dropped and a summary is appended.

No output schema declared.

No examples provided.

caddy_pki ~52

Get PKI certificate authority info or the CA certificate chain.

NameTypeReqDescription
castringCA ID (default: 'local')
certificatesbooleanIf true, return the full CA certificate chain

No output schema declared.

No examples provided.

caddy_remove_route ~252

Remove a route. Target by @id (preferred — stable across reorderings) or by array index on a specific server. Index-based removal is a two-step read-then-delete and can race against concurrent edits; prefer @id when possible. Only the @id mode is idempotent: a repeat call cannot remove a different route, it just reports the id as gone. The index mode is NOT — Caddy re-packs the routes array after a removal, so calling with index 2 twice removes TWO DIFFERENT routes. @ids are config-global in Caddy (NOT route-scoped): if `id` resolves to a non-route object (TLS issuer, server, etc.) the call refuses rather than deleting it.

NameTypeReqDescription
confirmbooleanMust be true to actually remove the route (safety)
idstringThe @id of the route to remove (preferred — stable even if routes get reordered)
indexintegerZero-based index of the route in the server's routes array (only used if id is not provided)
serverstringCaddy server name when using index (default: srv0). Ignored when id is provided.

No output schema declared.

No examples provided.

caddy_reverse_proxy ~494

Add a reverse proxy route. The most common operation — just specify where traffic comes from and where it goes. Example: from='api.local' to=['localhost:3000']. When `id` is OMITTED the route is appended to the server's routes array — calling the tool twice with the same args produces TWO duplicate routes (non-idempotent). When `id` is SUPPLIED the route is written via PATCH under that @id, so repeat calls REPLACE in place (idempotent). Strongly recommended: supply a stable `id` for any route managed from automation or production tooling. Note: @ids are config-global in Caddy (NOT route-scoped). If `id` collides with an @id used by a non-route object (TLS issuer, server, etc.) the call refuses with an error rather than clobbering it. Once an @id is registered to a route under one server, subsequent calls update that route in place regardless of the `server` argument. Upstream scheme is honored: an `https://` upstream gets a TLS transport and defaults to port 443, anything else is dialed in the clear. A `to` list that MIXES https:// and non-https entries is refused — the TLS transport applies to the whole handler, not per-upstream — so split those into two routes or use caddy_add_route.

NameTypeReqDescription
fromstringyesDomain, path, or domain/path to match (e.g., 'api.local', '/api/*', 'app.local/ws')
idstringOptional stable @id for the route. When set, repeat calls REPLACE the route in place (idempotent). When omitted, the route is APPENDED — calling twice with identical args creates a duplicate route. @…
serverstringCaddy server name (default: srv0)
toarrayyesUpstream addresses, at least one (e.g., ['localhost:3000', 'localhost:3001']). An 'https://' prefix dials the upstream over TLS (port 443 unless one is given); http:// and bare addresses are dialed i…

No output schema declared.

No examples provided.

caddy_revert ~184

Manage config snapshots for rollback. Snapshots are auto-captured before caddy_load, and before a caddy_config_delete that unloads the whole config (an empty path); no other delete is snapshotted. Last 10. By default they live in memory only and are LOST when this server restarts -- set CADDY_MCP_SNAPSHOT_DIR to a writable directory to persist them across restarts (they contain full Caddy configs, so pick the location deliberately). Actions: 'list' shows snapshots with timestamps, 'save' manually captures the current config, 'apply' restores a snapshot (requires confirm=true).

NameTypeReqDescription
actionstringyesAction to perform
confirmbooleanMust be true to actually apply a snapshot (safety)
indexintegerSnapshot index for 'apply' (0 = most recent, default)

No output schema declared.

No examples provided.

caddy_status ~30

Check Caddy connectivity and get a config summary: servers, routes, listen addresses, and TLS status.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

caddy_stop ~39

Gracefully shut down the Caddy server. Requires confirm=true to prevent accidental shutdown.

NameTypeReqDescription
confirmbooleanyesMust be true to confirm shutdown

No output schema declared.

No examples provided.

caddy_tls ~440

Get or configure TLS/HTTPS settings. Actions: 'status' shows current TLS config, 'set_email' sets the ACME email, 'set_acme_ca' sets the ACME CA URL, 'set_acme_profile' sets the ACME profile (Caddy 2.10+), 'ech_status' reads the Encrypted ClientHello config at apps/tls/encrypted_client_hello (Caddy 2.10+, read-only here). Works on both fresh and existing Caddy instances, including one with no config at all: the set_* actions create apps/tls, and any missing parents, when it is not set. Writes target policies[0].issuers[0] only, and only when that issuer's module is 'acme' -- on a multi-policy TLS config, or one whose first issuer is 'internal' (Caddy's local CA), edit the intended issuer with caddy_config_set instead.

NameTypeReqDescription
actionstringyesAction to perform
castringACME CA URL (for 'set_acme_ca' action)
emailstringACME email address (for 'set_email' action)
profilestringACME profile name (for 'set_acme_profile'). Requires Caddy 2.10+ and a CA that offers profiles; Let's Encrypt uses 'shortlived' for 6-day certificates. Valid names are defined by the CA, not by Caddy…

No output schema declared.

No examples provided.

caddy_upstreams ~152

Caddy's /reverse_proxy/upstreams array (address, num_requests, fails), returned verbatim. On Caddy 2.11.2+ it is not the configured upstream list. Dynamic-upstream backends stay listed about 1 h (up to ~65 min) after the dynamic source last returned them, even after a config change removes them, so an address may appear that no current config references. A backend with requests in flight can appear twice when its resolved address differs from the entry's text (dynamic upstreams, tcp/ or unix// dials, placeholder dials). That extra copy always shows fails 0 and repeats num_requests, so do not sum num_requests across entries.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

Common questions

What is the Caddy MCP Server server?

Caddy MCP Server is listed in the public MCP registry as io.github.YawLabs/caddy-mcp. MCP server for managing Caddy web servers via the admin API. This page covers its npm package (@yawlabs/caddy-mcp).

Is the Caddy MCP Server server safe to use?

Caddy MCP Server scores 85 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 20 September 2026. It declares no install or post-install scripts. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

What tools does the Caddy MCP Server server expose?

Caddy MCP Server exposes 18 tools: caddy_config_get, caddy_config_set, caddy_config_delete, caddy_load, caddy_revert, and 13 more. Their descriptions and schemas cost roughly 3,598 tokens of context every time the server is loaded.

Is the Caddy MCP Server server still maintained?

Caddy MCP Server is still listed as active in the MCP registry. We last reached this channel on 20 September 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

What licence is the Caddy MCP Server server under?

Caddy MCP Server declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.