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.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

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.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 9f3b57eff1bb · 采集于 2026-11-13 11:58:57 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

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.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

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