Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

get_proxy_host

Retrieve configuration details for a specific proxy host by ID to manage web routing and SSL settings in Nginx Proxy Manager.

Instructions

Get details of a specific proxy host by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
host_idYesThe ID of the proxy host

Implementation Reference

  • The implementation of the get_proxy_host method in the NPM client.
    async def get_proxy_host(self, host_id: int) -> ProxyHost:
        host_id = _validate_int_id(host_id, "host_id")
        response = await self._request("GET", f"/api/nginx/proxy-hosts/{host_id}")
        return ProxyHost(**response.json())
  • Tool registration for get_proxy_host in the server.
    Tool(name="get_proxy_host", description="Get details of a specific proxy host by ID", inputSchema=_id_schema("host_id", "The ID of the proxy host")),
  • The server-side tool handler logic for get_proxy_host.
    elif name == "get_proxy_host":
        return _model_response(await npm_client.get_proxy_host(arguments["host_id"]))

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