Skip to main content
Glama

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-caddy

With Docker:

docker run -i \
  -e CADDY_HOST=http://10.0.0.31:2019 \
  ghcr.io/aaronckj/mcp-caddy:latest

Add to Claude Code:

claude mcp add caddy -s user -e CADDY_HOST=http://10.0.0.31:2019 -- uvx mcp-caddy

Related MCP server: Identity Admin MCP Server

Configuration

Variable

Required

Default

Description

CADDY_HOST

No

http://localhost:2019

Caddy admin API URL

CADDY_TIMEOUT

No

30

HTTP timeout in seconds

Finding Your CADDY_HOST

The Caddy admin API binds to localhost:2019 by default. Depending on your setup:

  1. MCP server on same host as Caddy → use the default http://localhost:2019

  2. Caddy in Docker, MCP server on the same Docker host → add ports: ["127.0.0.1:2019:2019"] to your Caddy compose service, then use http://localhost:2019

  3. Remote Caddy host → SSH tunnel: ssh -L 2019:localhost:2019 user@caddy-host, then use http://localhost:2019

  4. Caddy 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

server_info

Caddy version and loaded modules

get_config

Full configuration as JSON

list_routes

All virtual hosts with upstream targets

list_upstreams

Upstream proxy health status

get_certificates

TLS automation policies and ACME issuers

adapt_config

Convert a Caddyfile snippet to JSON

reload

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 -v

Available Tools

16 tools
adapt_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

    A3.8/5.0

    Scored across 16 tools

    Disambiguation5/5

    Each tool targets a distinct operation: adding different route types, listing different resources, getting specific config nodes, etc. No overlapping purposes; descriptions clearly differentiate.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    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

      https://cotlet.dev/mcp/v1/hipcamp
    • 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

      https://cotlet.dev/mcp/v1/toast
    • 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

      https://cotlet.dev/mcp/v1/flickr
    • 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

      https://cotlet.dev/mcp/v1/rently

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      56
      77 npm
      3
      MIT