MCP.Market

Caddy MCP Server

by YawLabs·io.github.YawLabs/caddy-mcp·v2.6.1·11 stars

MCP server for managing Caddy web servers via the admin API

A91/100grade A
What users say
No reviews yet
Be the first
Safety scan
A91/100

not scanned yet

Adoption
Growing

11 stars1.1k downloads/wk

Reviews

Write one

Nobody has reviewed Caddy MCP Server yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Caddy MCP Server tools

No tool declarations could be read from the package source. They show once the server is installed.

Not scanned yet. New listings are scanned within a day or two of arriving.

How Caddy MCP Server compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
91/100
higher than 85% of 48,255 servers
GitHub stars
11
more than 88% of 28,688 servers
Downloads a week
1,053
more than 95% of 12,191 servers with a package

Release history: 9 versions in the registry since 2026-09-14, latest 2026-10-30, typically one every 5 days.

Install Caddy MCP Server in Claude Code, Cursor or VS Code

Runs npx -y @yawlabs/caddy-mcp on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add caddy-mcp -- npx -y @yawlabs/caddy-mcp
Add to Cursor

What the publisher says

From the Caddy MCP Server repository's README, as published. We do not edit it. Read it on GitHub

@yawlabs/caddy-mcp

Manage Caddy web servers from Claude Code, Cursor, and any MCP client. 18 tools + 4 resources covering every endpoint in Caddy's admin API reference — config, routes, reverse proxies, TLS, PKI, metrics, snapshots.

Built and maintained by Yaw Labs.

One click adds this to your local Yaw MCP config so it's available in every Yaw Terminal session. Or install manually below.

Why this one?

Other Caddy MCP servers wrap half the admin API and silently swallow errors. This one doesn't.

  • Complete admin API coverage — every endpoint in Caddy's admin API reference: /load, /config/, /id/, /stop, /adapt, /pki/ca/, /reverseproxy/upstreams, /metrics. No placeholder tools that 404. Caddy's Go runtime debug endpoints (/debug/pprof/, /debug/vars) are deliberately not wrapped — for leak trends use caddymetrics with filter: "gogoroutines" or "gomemstats", which come from the same admin registry; for stack dumps, CPU profiles and traces, curl the admin endpoint directly (Caddy profiling docs).
  • Safe concurrent writes — uses ETags (If-Match) so your changes never silently overwrite someone else's. Surfaces HTTP 412 Precondition Failed as a clear message, not a cryptic error.
  • Safe-by-default mutations — caddyconfigset defaults to idempotent overwrite (PATCH), not append (POST). Calling twice doesn't duplicate your route.
  • Defensive parsing — caddylistroutes never crashes on malformed config, even if routes are null, handlers are strings, or matchers are non-arrays. Regression-tested.
  • No leaked credentials in errors — if CADDYADMINURL contains a token in the path/query, the connect-failed message shows only the origin.
  • Fallback error surfacing — when a TLS write PATCH fails and the PUT fallback also fails, both error bodies are returned so you know what actually went wrong.
  • Tool annotations — every tool declares readOnlyHint, destructiveHint, and idempotentHint, so MCP clients can skip confirmations for safe ops.
  • Instant startup — ships as a single bundle with two runtime deps (the MCP SDK + Zod). No 5-minute node_modules install.
  • Input hardening — adapter names, @id values, server names, and CA ids are all regex-validated with length caps. Blocks CRLF header injection and ReDoS.

Quick start

1. Enable the Caddy admin API

Caddy ships with the admin API enabled on localhost:2019 by default. If you're running Caddy in Docker or on a remote host, expose it via CADDYADMINURL.

2. Create .mcp.json in your project root

macOS / Linux / WSL:

{
  "mcpServers": {
    "caddy": {
      "command": "npx",
      "args": ["-y", "@yawlabs/caddy-mcp@latest"]
    }
  }
}

Windows:

{
  "mcpServers": {
    "caddy": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@yawlabs/caddy-mcp@latest"]
    }
  }
}

Why the extra step on Windows? Since Node 20, child_process.spawn cannot directly execute .cmd files (that's what npx is on Windows). Wrapping with cmd /c is the standard workaround. This file is safe to commit — it contains no secrets.

3. Restart and approve

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Caddy MCP Server: common questions

Is Caddy MCP Server safe?
Yes, by our scan: it is graded A (91/100). Read the Caddy MCP Server safety report
How do I install Caddy MCP Server?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Caddy MCP Server need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Caddy MCP Server maintained?
The last commit was 35 days ago (2026-09-30). The latest release is v2.6.1.
How does Caddy MCP Server compare with other MCP servers?
safety score 91/100 (higher than 85% of 48,255 servers); github stars 11 (more than 88% of 28,688 servers); downloads a week 1,053 (more than 95% of 12,191 servers with a package). Full comparison.

More from YawLabs →