Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

create_access_list

Create access control lists in Nginx Proxy Manager to manage authentication and authorization for proxy hosts.

Instructions

Create a new access list

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the access list
satisfy_anyNo
pass_authNo

Implementation Reference

  • The implementation of create_access_list that performs the API call.
    async def create_access_list(self, access_list: AccessList) -> AccessList:
        response = await self._request(
            "POST",
            "/api/nginx/access-lists",
            json=access_list.model_dump(exclude_none=True, exclude={"id", "created_on", "modified_on"}),
        )
  • Registration of the create_access_list tool in the server.
    Tool(
        name="create_access_list",
        description="Create a new access list",
        inputSchema={
            "type": "object",
            "properties": {
                "name": {"type": "string", "description": "Name of the access list"},
                "satisfy_any": {"type": "boolean", "default": False},
                "pass_auth": {"type": "boolean", "default": True},
            },
            "required": ["name"],
        },
    ),
  • Handler that calls the client method when the tool is invoked.
    elif name == "create_access_list":
        return _model_response(await npm_client.create_access_list(AccessList(**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