MCPVault

caddy_reverse_proxy

MCP tool from Caddy MCP by YawLabs

Add a reverse proxy in one call: from='api.local' to=['localhost:3000']. Pass an optional id for idempotent writes — repeat calls replace the route in place instead of duplicating.

How to use it

caddy_reverse_proxy is exposed by the Caddy MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the caddy_reverse_proxy tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

FULL CADDY MCP LISTING

Other tools in Caddy MCP (17)

caddy_adapt

Convert a config in any registered adapter format to Caddy JSON without applying it. caddyfile (built-in, default) plus any adapter module compiled into your Caddy binary — e.g., nginx (caddy-nginx-adapter), yaml (caddy-yaml). Great for previewing or porting from existing configs.

caddy_add_route

Add a route with full match/handle control (any Caddy handler).

caddy_config_by_id

Get/set/delete config by @id tag — much easier than navigating deep paths. The delete action requires confirm=true.

caddy_config_delete

Delete config at a path. Requires confirm=true (deleting a parent path also removes every descendant).

caddy_config_get

Read config at any JSON path (or the full config).

caddy_config_set

Write config at a path. Modes: overwrite (PATCH, default, idempotent), append (POST), insert (PUT, for array positions).

caddy_list_routes

Human-readable route summary. Defensive: never crashes on weird config.

caddy_list_servers

List all HTTP servers with names, addresses, route counts, and TLS status.

caddy_load

Replace the entire config atomically. 60-second timeout for cert provisioning. Auto-snapshots the prior config.

caddy_metrics

Prometheus metrics (request counts, durations, connections, TLS handshakes). Optional filter (substring match on metric name, keeps # HELP / # TYPE lines for retained metrics) and maxlines (default 500) keep responses compact on busy servers.

caddy_pki

CA info and certificate chains (default CA: local).

caddy_remove_route

Remove a route by @id (preferred) or by index. Requires confirm=true.

caddy_revert

Manage config snapshots for rollback. Actions: list, save, apply (confirm-gated). In-memory, last 10.

caddy_status

Connectivity check + config summary (server count, routes, TLS mode).

caddy_stop

Graceful shutdown. Requires confirm=true to prevent accidents.

caddy_tls

Check or set TLS settings: ACME email, ACME CA URL. PATCH first; on a fresh install, POSTs a minimal config. On an existing config it deep-merges into the issuer path and PUTs the result back, preserving siblings (custom certs, ondemand, additional policies). Refuses with a shape-specific error if t

caddy_upstreams

Reverse proxy backend health.