Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

request_certificate

Request Let's Encrypt SSL certificates for domains to secure web traffic through Nginx Proxy Manager.

Instructions

Request a new Let's Encrypt SSL certificate

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domain_namesYesList of domains for the certificate
nice_nameYesFriendly name for the certificate

Implementation Reference

  • The implementation of the `request_certificate` tool, which sends a POST request to the NPM API to create a new certificate.
    async def request_certificate(self, cert: Certificate) -> Certificate:
        response = await self._request(
            "POST",
            "/api/nginx/certificates",
            json=cert.model_dump(exclude_none=True, exclude={"id", "created_on", "modified_on"}),
        )
        return Certificate(**response.json())
  • The MCP tool registration for `request_certificate`, including its description and input schema.
    Tool(
        name="request_certificate",
        description="Request a new Let's Encrypt SSL certificate",
        inputSchema={
            "type": "object",
            "properties": {
                "domain_names": {"type": "array", "items": {"type": "string"}, "description": "List of domains for the certificate"},
                "nice_name": {"type": "string", "description": "Friendly name for the certificate"},
            },
            "required": ["domain_names", "nice_name"],
        },
    ),
    Tool(name="delete_certificate", description="Delete an SSL certificate by ID", inputSchema=_id_schema("certificate_id", "The ID of the certificate to delete")),
  • The tool execution handler in `server.py` that maps the request to `npm_client.request_certificate`.
    elif name == "request_certificate":
        return _model_response(await npm_client.request_certificate(Certificate(**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