Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

create_stream

Create TCP/UDP stream proxies in Nginx Proxy Manager by specifying incoming ports and forwarding destinations to route network traffic.

Instructions

Create a new TCP/UDP stream proxy

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
incoming_portYesPort to listen on (1-65535)
forwarding_hostYesHost to forward to
forwarding_portYesPort to forward to (1-65535)
tcp_forwardingNo
udp_forwardingNo
certificate_idNo

Implementation Reference

  • The actual API call implementation for the 'create_stream' tool.
    async def create_stream(self, stream: Stream) -> Stream:
        response = await self._request(
            "POST", "/api/nginx/streams",
            json=stream.model_dump(exclude_none=True, exclude={"id", "created_on", "modified_on"}),
        )
        return Stream(**response.json())
  • Registration of the 'create_stream' tool, including its input schema.
        name="create_stream",
        description="Create a new TCP/UDP stream proxy",
        inputSchema={
            "type": "object",
            "properties": {
                "incoming_port": {"type": "integer", "description": "Port to listen on (1-65535)"},
                "forwarding_host": {"type": "string", "description": "Host to forward to"},
                "forwarding_port": {"type": "integer", "description": "Port to forward to (1-65535)"},
                "tcp_forwarding": {"type": "boolean", "default": True},
                "udp_forwarding": {"type": "boolean", "default": False},
                "certificate_id": {"type": "integer"},
            },
            "required": ["incoming_port", "forwarding_host", "forwarding_port"],
        },
    ),
  • Dispatcher logic in the MCP server that invokes the client implementation.
    elif name == "create_stream":
        return _model_response(await npm_client.create_stream(Stream(**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