Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

create_dead_host

Configure a 404 error page host in Nginx Proxy Manager to handle invalid domain requests with optional SSL settings.

Instructions

Create a new 404 dead host

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domain_namesYesList of domain names
certificate_idNo
ssl_forcedNo
hsts_enabledNo
hsts_subdomainsNo
http2_supportNo
advanced_configNo

Implementation Reference

  • The implementation of the create_dead_host method in the NPMClient class, which makes the actual API call to the backend.
    async def create_dead_host(self, host: DeadHost) -> DeadHost:
        response = await self._request(
            "POST", "/api/nginx/dead-hosts",
            json=host.model_dump(exclude_none=True, exclude={"id", "created_on", "modified_on"}),
        )
        return DeadHost(**response.json())
  • The tool registration for 'create_dead_host' in the MCP server, including its input schema.
    Tool(
        name="create_dead_host",
        description="Create a new 404 dead host",
        inputSchema={
            "type": "object",
            "properties": {
                "domain_names": {"type": "array", "items": {"type": "string"}, "description": "List of domain names"},
                "certificate_id": {"type": "integer"},
                "ssl_forced": {"type": "boolean", "default": False},
                "hsts_enabled": {"type": "boolean", "default": False},
                "hsts_subdomains": {"type": "boolean", "default": False},
                "http2_support": {"type": "boolean", "default": False},
                "advanced_config": {"type": "string", "default": ""},
            },
            "required": ["domain_names"],
        },
    ),
  • The MCP server call_tool handler block for 'create_dead_host', which validates arguments and calls the client method.
    elif name == "create_dead_host":
        return _model_response(await npm_client.create_dead_host(DeadHost(**arguments)))

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/VeryBigSad/nginx-proxy-manager-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server