Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

delete_proxy_host

Remove a proxy host configuration from Nginx Proxy Manager by specifying its ID to manage web proxy infrastructure.

Instructions

Delete a proxy host by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
host_idYesThe ID of the proxy host to delete

Implementation Reference

  • The actual implementation of the tool, which makes the DELETE request to the NPM API.
    async def delete_proxy_host(self, host_id: int) -> None:
        host_id = _validate_int_id(host_id, "host_id")
        await self._request("DELETE", f"/api/nginx/proxy-hosts/{host_id}")
  • Registration of the delete_proxy_host tool in the MCP server.
    Tool(name="delete_proxy_host", description="Delete a proxy host by ID", inputSchema=_id_schema("host_id", "The ID of the proxy host to delete")),
  • The call_tool handler that routes delete_proxy_host to the NPMClient.
    elif name == "delete_proxy_host":
        await npm_client.delete_proxy_host(arguments["host_id"])
        return _msg_response("Proxy host deleted successfully")

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