mcp-caddy
Provides tools for inspecting routes, upstream health, certificates, and reloading configuration via the Caddy admin API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-caddy show me the upstream health"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-caddy
MCP server for Caddy web server management. Exposes 7 tools for inspecting routes, upstream health, certificates, and reloading configuration via the Caddy admin API.
Quick Start
With uvx (recommended):
CADDY_HOST=http://10.0.0.31:2019 uvx mcp-caddyWith Docker:
docker run -i \
-e CADDY_HOST=http://10.0.0.31:2019 \
ghcr.io/aaronckj/mcp-caddy:latestAdd to Claude Code:
claude mcp add caddy -s user -e CADDY_HOST=http://10.0.0.31:2019 -- uvx mcp-caddyRelated MCP server: Identity Admin MCP Server
Configuration
Variable | Required | Default | Description |
| No |
| Caddy admin API URL |
| No |
| HTTP timeout in seconds |
Finding Your CADDY_HOST
The Caddy admin API binds to localhost:2019 by default. Depending on your setup:
MCP server on same host as Caddy → use the default
http://localhost:2019Caddy in Docker, MCP server on the same Docker host → add
ports: ["127.0.0.1:2019:2019"]to your Caddy compose service, then usehttp://localhost:2019Remote Caddy host → SSH tunnel:
ssh -L 2019:localhost:2019 user@caddy-host, then usehttp://localhost:2019Caddy exposes admin via reverse proxy → set
CADDY_HOST=https://caddy-admin.example.com
The Caddy admin API has no authentication by default. If you expose it beyond localhost, add Caddy basic auth to that route.
Tools
Tool | Description |
| Caddy version and loaded modules |
| Full configuration as JSON |
| All virtual hosts with upstream targets |
| Upstream proxy health status |
| TLS automation policies and ACME issuers |
| Convert a Caddyfile snippet to JSON |
| Reload config from a JSON string or file path |
Development
git clone https://github.com/aaronckj/mcp-caddy
cd mcp-caddy
uv sync --extra dev
uv run pytest -vAvailable Tools
16 toolsadapt_configC
Convert a Caddyfile snippet to JSON config using Caddy's built-in adapter.
Inputs: caddyfile (required).
add_redirectA
Add an HTTP redirect route. from_host: domain to redirect (e.g. 'old.example.com'). to_url: destination URL. status_code: 301 (permanent), 302 (temporary), 307, or 308.
Inputs: to_url (required), from_host (required), server_name, status_code.
add_reverse_proxy_routeB
Add a reverse proxy route to Caddy. host: domain (e.g. 'app.example.com'). upstream: backend dial address (e.g. 'localhost:3000'). server_name: Caddy server block (auto-detects first server if empty).
Inputs: host (required), upstream (required), server_name.
add_static_file_serverA
Add a static file server route to Caddy. path: URL path to match (e.g., '/files/*'). root: filesystem directory to serve. server_name: auto-detects first server if empty.
Inputs: path (required), root (required), server_name.
delete_config_pathA
Delete a specific Caddy config node at the given path. config_path: e.g. '/apps/http/servers/srv0'. Changes take effect immediately.
Inputs: config_path (required).
delete_routeA
Delete a route by index from an HTTP server's route list. Use list_routes to find the index. Changes take effect immediately.
Inputs: route_index (required), server_name (required).
get_certificatesA
List TLS certificate automation policies: subjects, ACME issuers, and CAs.
Inputs: no named parameters.
get_configA
Get the full Caddy configuration as JSON.
Inputs: no named parameters.
get_config_pathB
Get a specific Caddy config node by path. config_path: e.g. '/apps/http/servers' or '/apps/tls'.
Inputs: config_path (required).
get_routeA
Get the full configuration of a specific route by index. Use list_routes to find server_name and index.
Inputs: route_index (required), server_name (required).
list_routesA
List all configured routes (virtual hosts) with hosts, handler, upstreams, listen addresses, and route index.
Inputs: no named parameters.
list_serversA
List all Caddy HTTP server blocks with their names, listen addresses, and route counts.
Inputs: no named parameters.
list_upstreamsA
List all reverse proxy upstreams with their health status and request counts.
Inputs: no named parameters.
reloadB
Reload Caddy config. source: raw JSON string (starts with '{') or path to a JSON config file.
Inputs: source (required).
server_infoA
Get Caddy server version and list of loaded modules.
Inputs: no named parameters.
update_config_pathA
Update a specific Caddy config path with a new value via PATCH. config_path: e.g. '/apps/http/servers/srv0/listen'. value: JSON string of the new value.
Inputs: value (required), config_path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool targets a distinct operation: adding different route types, listing different resources, getting specific config nodes, etc. No overlapping purposes; descriptions clearly differentiate.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., add_reverse_proxy_route, list_servers, delete_route). Only 'reload' is a single verb but it's standard and fits the pattern.
With 16 tools, the server is well-scoped for managing Caddy configurations. Each tool serves a clear purpose without excessive granularity or missing essential operations.
The set covers full lifecycle: create (add_*), read (list, get), update (update_config_path), delete (delete_route/delete_config_path), plus reload, config adaptation, and certificate info. No obvious gaps for typical Caddy management.
Maintenance
Related MCP Connectors
Hipcamp MCP server for ChatGPT, Claude and any AI agent: sync calendar, update pricing, reply to guest and list bookings in your own Hipcamp account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Hipcamp yourself; Cotlet does not store your password and you need no Hipcamp API key. About the official Hipcamp API: Hipcamp has no public API (checked 11 Oct 2026). Its own agent file says it does not document a public booking API. Setup and FAQ: https://cotlet.dev/integrations/hipcamp-api-mcp-server
Toast MCP server for ChatGPT, Claude and any AI agent: list menus, list menu items, 86 a menu item, set menu hours, get sales summary, list time entries, fix time entry and create shift in your own Toast account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Toast yourself; Cotlet does not store your password and you need no Toast API key. About the official Toast API: Toast has an API, but the access a restaurant creates for itself is read-only (checked 28 Oct 2026). Standard API access needs Restaurant Management Suite (RMS) Essentials or higher and the Manage Integrations permission, and it cannot write. Setup and FAQ: https://cotlet.dev/integrations/toast-api-mcp-server
Flickr MCP server for ChatGPT, Claude and any AI agent: list albums, upload photo, edit title and tags, move photos between albums, change privacy, reply to comment and add photo to group in your own Flickr account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Flickr yourself; Cotlet does not store your password and you need no Flickr API key. About the official Flickr API: Flickr has a full REST API with methods for photos, albums, comments, groups and uploads, but no official MCP server (checked 17 Oct 2026). Only Flickr Pro subscribers can request new API keys, and commercial use needs a separate commercial key, by prior arrangement with Flickr. Setup and FAQ: https://cotlet.dev/integrations/flickr-api-mcp-server
Rently MCP server for ChatGPT, Claude and any AI agent: list tours, get prospect details, update listing availability, create lock code and export leads in your own Rently account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Rently yourself; Cotlet does not store your password and you need no Rently API key. About the official Rently API: Rently has a public API for smart home devices and lock codes, but no on-demand API for leads, showings or listing status (checked 11 Oct 2026). Tour webhooks, lead data exports and partner credentials are set up by Rently staff, and the property feed is pulled once an hour. Setup and FAQ: https://cotlet.dev/integrations/rently-api-mcp-server
Related MCP Servers
- AlicenseAqualityBmaintenanceManage Caddy web servers from Claude Code, Cursor, and any MCP client with 18 tools + 4 resources covering every endpoint of Caddy's admin API — config, routes, reverse proxies, TLS, PKI, metrics, snapshots.18397 npm15MIT
- FlicenseNot gradedqualityDmaintenanceEnables admin operations for an Identity-Service, including user management, role assignments, and approval decisions via Cloudflare Workers.-
- AlicenseAqualityCmaintenanceEnables administrators to manage Keycloak realms, users, roles, clients, groups, and more through its Admin REST API, with safe-by-default configuration and destructive operation confirmation.5677 npm3MIT
- AlicenseNot gradedqualityBmaintenanceEnables inspection and management of Caddy reverse proxy configuration via CaddyUI's REST API, including proxy hosts, redirection hosts, raw routes, and TLS certificates.3MIT