Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

list_proxy_hosts

Retrieve all configured proxy hosts from Nginx Proxy Manager to view current routing rules and manage web traffic forwarding.

Instructions

List all proxy hosts configured in NPM

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The method in the NPMClient class that performs the actual network request to list proxy hosts.
    async def list_proxy_hosts(self) -> List[ProxyHost]:
        response = await self._request("GET", "/api/nginx/proxy-hosts")
        return [ProxyHost(**host) for host in response.json()]
  • Registration of the list_proxy_hosts tool in the MCP server.
    Tool(name="list_proxy_hosts", description="List all proxy hosts configured in NPM", inputSchema=_empty_schema()),
  • The handler in the call_tool function that dispatches the request to the NPMClient.list_proxy_hosts method.
    if name == "list_proxy_hosts":
        return _list_response(await npm_client.list_proxy_hosts())

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