MCP server for managing Caddy configurations

MCP server for managing Caddy configurations

caddy-mcp•bylum8rjack

caddy-mcp is a Model Context Protocol server that lets clients retrieve and update a Caddy server's configuration and monitor reverse proxy upstreams.

License: Not specified•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Gets the current Caddy server configuration in JSON format and updates it by providing a full JSON configuration.
  • •Converts Caddyfile, Nginx, and YAML configurations to Caddy JSON format.
  • •Reports the current status of configured reverse proxy upstreams as JSON.
  • •The server can run over stdio, SSE, or HTTP stream transports with a configurable port and Caddy server URL.

BEST FOR

  • •Inspect or update the configuration of a running Caddy server through an MCP client.
  • •Migrating existing Nginx, Caddyfile, or YAML configurations into Caddy JSON.
  • •Monitoring reverse proxy upstream status for a Caddy deployment.

ABOUT CADDY-MCP

MCP server for managing Caddy configurations is cataloged as an MCP server attributed to lum8rjack. caddy-mcp is a Model Context Protocol server that lets clients retrieve and update a Caddy server's configuration and monitor reverse proxy upstreams. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for managing Caddy configurations are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What transports can the server run over?

The server can run over stdio, SSE, or HTTP stream transports.

Can the server work with custom-built Caddy versions that include extra modules?

Yes; for custom Caddy builds with extra modules, the corresponding Go module must be added to the project so the MCP server can work with that custom build.

Upstream README

View this exact version on GitHub

README.md · 9f3b57eff1bb · Fetched 2026-11-13 11:58:57 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

caddy-mcp

Overview

caddy-mcp is a server that provides a Model Context Protocol (MCP) interface for managing a Caddy server instance using the Caddy API. It exposes tools for retrieving, updating, and converting Caddy configurations (in JSON, Caddyfile, YAML, or Nginx formats) and for monitoring reverse proxy upstreams. The server can run over different transports: stdio, SSE, or HTTP stream.

Tools

  • get_caddy_config - Get the current Caddy server configuration in JSON format
  • update_caddy_config - Update the Caddy server configuration by providing a full JSON configuration
  • convert_caddyfile_to_json - Convert a Caddyfile configuration to JSON format
  • convert_nginx_to_json - Convert an Nginx configuration to Caddy JSON format
  • convert_yaml_to_json - Convert a YAML configuration to Caddy JSON format
  • upstream_proxy_statuses - Get the current status of configured reverse proxy upstreams as JSON

Build Steps

  1. Prerequisites:

  2. Clone the repository:

    git clone https://github.com/lum8rjack/caddy-mcp.git
    cd caddy-mcp
    
  3. Build the server:

    make
    # or
    go build -o caddy-mcp .
    

    This will produce a caddy-mcp binary in the project root.

Running the MCP Server

You can run the server with different transports and ports:

./caddy-mcp -h
Usage of ./caddy-mcp:
  -port int
        Port to run the MCP server on (default 7000)
  -transport string
        The transport to use for the MCP server (stdio, sse, httpstream) (default "stdio")
  -url string
        The URL of the caddy server (default "http://127.0.0.1:2019")

Example MCP Settings:

{
    "mcpServers": {
        "caddy-mcp": {
            "command": "~/caddy-mcp",
            "args": ["-transport", "stdio", "-url", "http://127.0.0.1:2019"]
        }
    }
}

Caddyfile Example

A sample Caddyfile to test with that exposed the admin API:

{
    admin :2019
}

:8080 {
    respond "I am 8080"
}

:8081 {
    respond "I am 8081"
}

Adding Additional Caddy Modules

If you are using a custom-built version of Caddy with extra modules (for example, the Cloudflare DNS module), you need to add the corresponding Go module to your project. This ensures the MCP server can work with your custom Caddy build.

Steps:

  1. Add the module import to main.go:

    For example, to add the Cloudflare DNS module, add the following import (anywhere among the imports, typically with other Caddy modules):

    import _ "github.com/caddy-dns/cloudflare"
    
  2. Update dependencies:

    Run:

    go mod tidy
    
  3. Rebuild the server:

    make
    # or
    go build -o caddy-mcp .
    

This process can be repeated for any other Caddy modules you need. For a list of official and community modules, see the Caddy Modules Directory.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for managing Caddy configurations from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/caddy-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps