nginx-proxy-manager-mcp
v0.5.2Manage Nginx Proxy Manager hosts, certificates, streams and access lists with dry-run previews.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_proxy_hosts List Proxy Hosts
List proxy hosts configured in NPM, including their current status. Use this to find host IDs before get, update, enable, disable, or delete operations. It does not change NPM or request a certificate. Returns a list of host objects with IDs, domains, forwarding settings, and status.
get_proxy_host Get Proxy Host
Fetch one proxy host by ID, including its configured fields and current status. Use this for details about one host; use list_proxy_hosts to find IDs or inspect all hosts. This is read-only and does not reload Nginx. Returns the NPM host object, including domains, forwarding settings, and status.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the proxy host, from the matching list tool. |
create_proxy_host Create Proxy Host
Create a proxy host that routes the supplied domains to an HTTP or HTTPS upstream. Use this when configuring proxying without requesting a certificate; use create_proxy_host_with_letsencrypt to request one and force HTTPS. NPM stores the host configuration and applies it through its normal config handling. Returns the created host object with its ID, domains, and forwarding settings. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
domain_names * | array | Domain names routed by this host or certificate. |
forward_host * | string | Upstream hostname or IP address. |
forward_port * | integer | Upstream TCP port number. |
forward_scheme * | string | Upstream scheme: http or https. |
access_list_id | NPM access-list ID to attach; omit for no access list. | |
allow_websocket_upgrade | boolean | Whether NPM allows WebSocket upgrades. |
block_exploits | boolean | Whether NPM enables its exploit-blocking option. |
caching_enabled | boolean | Whether NPM enables proxy caching. |
certificate_id | NPM certificate ID to attach; omit for no certificate. | |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
ssl_forced | boolean | Whether NPM redirects HTTP requests to HTTPS. |
create_proxy_host_with_letsencrypt Create Proxy Host With Letsencrypt
Request a Let's Encrypt certificate, then create a proxy host using that certificate with HTTPS forced. Use this for a new TLS-enabled proxy; use create_proxy_host when a certificate already exists or HTTPS forcing is not wanted. This triggers a certificate request before creating the host; failures report failed_step and any created certificate. Returns ok plus certificate and proxy_host objects on success. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
domain_names * | array | Domain names routed by this host or certificate. |
email * | string | Email address supplied to Let's Encrypt for certificate requests. |
forward_host * | string | Upstream hostname or IP address. |
forward_port * | integer | Upstream TCP port number. |
forward_scheme * | string | Upstream scheme: http or https. |
access_list_id | NPM access-list ID to attach; omit for no access list. | |
allow_websocket_upgrade | boolean | Whether NPM allows WebSocket upgrades. |
block_exploits | boolean | Whether NPM enables its exploit-blocking option. |
caching_enabled | boolean | Whether NPM enables proxy caching. |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
update_proxy_host Update Proxy Host
Update writable settings on an existing proxy host by ID. Use this to change routing or options; use enable_proxy_host or disable_proxy_host for status only. NPM receives the merged writable host fields, without requesting a certificate. Returns the updated host object with its ID and current settings. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the proxy host, from the matching list tool. |
access_list_id | NPM access-list ID to attach. Omit to keep the current value. | |
allow_websocket_upgrade | Whether NPM allows WebSocket upgrades. For updates, omit to keep the current value. | |
block_exploits | Whether NPM enables its exploit-blocking option. For updates, omit to keep the current value. | |
caching_enabled | Whether NPM enables proxy caching. For updates, omit to keep the current value. | |
certificate_id | NPM certificate ID to attach. Omit to keep the current value. | |
domain_names | Domain names routed by this host or certificate. For updates, omit to keep the current value. | |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
forward_host | Upstream hostname or IP address. For updates, omit to keep the current value. | |
forward_port | Upstream TCP port number. For updates, omit to keep the current value. | |
forward_scheme | Upstream scheme: http or https. For updates, omit to keep the current value. | |
ssl_forced | Whether NPM redirects HTTP requests to HTTPS. For updates, omit to keep the current value. |
delete_proxy_host Delete Proxy Host
Permanently delete a proxy host by ID, removing its configured domain routing from NPM. Use disable_proxy_host to stop routing while keeping the host; list_proxy_hosts helps confirm the ID. Deletion cannot be undone and NPM applies the configuration change. Returns True on success. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the proxy host, from the matching list tool. |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
enable_proxy_host Enable Proxy Host
Enable a disabled proxy host by ID so NPM serves its configured domain routing again. Use update_proxy_host to change host settings; use list_proxy_hosts to confirm status and ID. This changes NPM host state and applies its configuration. Returns the updated host object. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the proxy host, from the matching list tool. |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
disable_proxy_host Disable Proxy Host
Disable a proxy host by ID while retaining its configuration. Use delete_proxy_host to remove it; use list_proxy_hosts to check its current status. This changes NPM host state and stops that host from serving traffic. Returns the updated host object. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the proxy host, from the matching list tool. |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
list_certificates List Certificates
List SSL certificates known to NPM, including expiry information when provided by NPM. Use this to inspect available certificates; create_letsencrypt_cert requests a new certificate and renew_certificate renews an existing one. This is read-only and makes no certificate request. Returns certificate objects with IDs, domains, provider, and expiry fields.
create_letsencrypt_cert Create Letsencrypt Cert
Request a new Let's Encrypt certificate for the supplied domains. Use this when a certificate is needed without creating a proxy host; create_proxy_host_with_letsencrypt also creates an HTTPS-forced host. This sends a certificate request to NPM and may contact Let's Encrypt. Returns the certificate object with its ID, domains, and status. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
domain_names * | array | Domain names routed by this host or certificate. |
email * | string | Email address supplied to Let's Encrypt for certificate requests. |
dns_challenge | boolean | Use DNS validation instead of HTTP validation for the certificate request. |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
renew_certificate Renew Certificate
Request renewal of an existing certificate by ID. Use this for a certificate already managed by NPM; use create_letsencrypt_cert to request a new certificate. This triggers NPM certificate renewal processing and may contact the certificate provider. Returns the certificate operation result, including available certificate fields. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the certificate to renew, from list_certificates. |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
list_access_lists List Access Lists
List access lists configured in NPM. Use this to find IDs before fetching, updating, or deleting a list; use get_access_list for one list with its rules. This is read-only and does not expose stored passwords. Returns access-list objects with IDs and names.
get_access_list Get Access List
Fetch one access list by ID, including its client rules and basic-auth user metadata. Use this for detailed rules; use list_access_lists to discover IDs. NPM does not return stored item passwords, so password values cannot be read back. Returns the access-list object with name, clients, and user entries.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the access list, from the matching list tool. |
create_access_list Create Access List
Create an access list containing optional IP allow/deny rules and basic-auth users. Use this to define access controls for hosts; use update_access_list to change an existing list. NPM stores the rules and credentials, while item passwords are write-only and cannot be read back. Returns the created list object with its ID, name, and rules. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
name * | string | Human-readable name for this access list. |
clients | IP or network rules; each directive must be allow or deny. | |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
items | Basic-auth users as username/password pairs; passwords are write-only in NPM. | |
pass_auth | boolean | Whether NPM passes basic-auth credentials upstream. |
satisfy_any | boolean | Whether satisfying any configured access rule is sufficient. |
update_access_list Update Access List
Update writable fields on an existing access list by ID, including client rules and basic-auth users. Use this to edit access controls; use delete_access_list to remove a list. NPM receives the merged writable fields; item passwords are write-only and cannot be read back. Returns the updated list object with its name and rules. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the access list, from the matching list tool. |
clients | IP or network rules; each directive must be allow or deny. For updates, omit to keep the current value. | |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
items | Basic-auth users as username/password pairs; passwords are write-only in NPM. For updates, omit to keep the current value. | |
name | Human-readable name for this access list. For updates, omit to keep the current value. | |
pass_auth | Whether NPM passes basic-auth credentials upstream. For updates, omit to keep the current value. | |
satisfy_any | Whether satisfying any configured access rule is sufficient. For updates, omit to keep the current value. |
delete_access_list Delete Access List
Permanently delete an access list by ID from NPM. Use update_access_list to retain the list and change its rules; confirm the ID with list_access_lists first. Deletion cannot be undone and may affect hosts that reference the list. Returns True on success. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the access list, from the matching list tool. |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
list_redirection_hosts List Redirection Hosts
List configured redirection hosts and their current status. Use this to find IDs before fetching, changing, enabling, disabling, or deleting a redirect; proxy hosts handle upstream reverse proxying. This is read-only and does not request certificates. Returns host objects with domains, destination, redirect code, and status.
get_redirection_host Get Redirection Host
Fetch one redirection host by ID with its configured destination and status. Use this for a single redirect; use list_redirection_hosts to discover IDs or inspect all redirects. This is read-only and does not change NPM. Returns the host object with domains, destination, redirect code, and status.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the redirection host, from the matching list tool. |
create_redirection_host Create Redirection Host
Create a host that redirects requests for domains to a destination using the selected HTTP status. Use this for URL redirection; use create_proxy_host to forward requests to an upstream server. NPM stores the redirect configuration; an attached certificate ID is referenced without requesting a certificate. Returns the created host object with its ID and redirect settings. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
domain_names * | array | Domain names routed by this host or certificate. |
forward_domain_name * | string | Destination hostname or URL for redirected requests. |
block_exploits | boolean | Whether NPM enables its exploit-blocking option. |
certificate_id | NPM certificate ID to attach; omit for no certificate. | |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
forward_http_code | integer | HTTP redirect status: 301, 302, 307, or 308. |
forward_scheme | string | Scheme of the redirect destination: http or https. |
preserve_path | boolean | Whether to preserve the original request path in the redirect. |
ssl_forced | boolean | Whether NPM redirects HTTP requests to HTTPS. |
update_redirection_host Update Redirection Host
Update writable settings on an existing redirection host by ID. Use this to change domains, destination, or redirect behavior; use enable_redirection_host or disable_redirection_host for status only. NPM receives the merged writable fields. Returns the updated host object with its redirect settings. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the redirection host, from the matching list tool. |
block_exploits | Whether NPM enables its exploit-blocking option. For updates, omit to keep the current value. | |
certificate_id | NPM certificate ID to attach. Omit to keep the current value. | |
domain_names | Domain names routed by this host or certificate. For updates, omit to keep the current value. | |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
forward_domain_name | Destination hostname or URL for redirected requests. For updates, omit to keep the current value. | |
forward_http_code | HTTP redirect status: 301, 302, 307, or 308. For updates, omit to keep the current value. | |
forward_scheme | Scheme of the redirect destination: http or https. For updates, omit to keep the current value. | |
preserve_path | Whether to preserve the original request path in the redirect. For updates, omit to keep the current value. | |
ssl_forced | Whether NPM redirects HTTP requests to HTTPS. For updates, omit to keep the current value. |
delete_redirection_host Delete Redirection Host
Permanently delete a redirection host by ID, removing its redirect configuration from NPM. Use disable_redirection_host to retain it while stopping redirects; list_redirection_hosts helps verify the ID. Deletion cannot be undone and applies the NPM configuration change. Returns True on success. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the redirection host, from the matching list tool. |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
enable_redirection_host Enable Redirection Host
Enable a disabled redirection host by ID so NPM serves its redirect again. Use update_redirection_host to edit destination or redirect code; list_redirection_hosts shows status. This changes NPM host state and applies its configuration. Returns the updated host object. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the redirection host, from the matching list tool. |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
disable_redirection_host Disable Redirection Host
Disable a redirection host by ID while keeping its configuration in NPM. Use delete_redirection_host to remove it; use list_redirection_hosts to check status. This stops the redirect from being served and applies the configuration change. Returns the updated host object. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the redirection host, from the matching list tool. |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
list_streams List Streams
List configured TCP/UDP streams and their current status. Use this to find stream IDs before fetching, changing, enabling, disabling, or deleting a port forward. This is read-only and does not change NPM. Returns stream objects with IDs, incoming and forwarding ports, protocols, and status.
get_stream Get Stream
Fetch one TCP/UDP stream by ID, including its forwarding ports and protocol settings. Use this for one stream; use list_streams to find IDs or inspect all streams. This is read-only and does not change NPM. Returns the stream object with incoming port, destination, protocol flags, and status.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the stream, from the matching list tool. |
create_stream Create Stream
Create a TCP/UDP port forward from an incoming port to a destination host and port. Use this for raw TCP or UDP forwarding; use proxy-host tools for HTTP/HTTPS domain routing. NPM stores the stream configuration and applies it through normal config handling. Returns the created stream object with its ID, ports, and protocol flags. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
forwarding_host * | string | Hostname or IP address receiving stream traffic. |
forwarding_port * | integer | Destination TCP/UDP port number. |
incoming_port * | integer | Public TCP/UDP port number accepted by this stream. |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
tcp_forwarding | boolean | Whether this stream forwards TCP traffic. |
udp_forwarding | boolean | Whether this stream forwards UDP traffic. |
update_stream Update Stream
Update writable port, destination, or protocol fields on an existing stream by ID. Use this to edit forwarding; use enable_stream or disable_stream to change status only. NPM receives the merged writable fields, preserving omitted values. Returns the updated stream object with its forwarding settings. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the stream, from the matching list tool. |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
forwarding_host | Hostname or IP address receiving stream traffic. For updates, omit to keep the current value. | |
forwarding_port | Destination TCP/UDP port number. For updates, omit to keep the current value. | |
incoming_port | Public TCP/UDP port number accepted by this stream. For updates, omit to keep the current value. | |
tcp_forwarding | Whether this stream forwards TCP traffic. For updates, omit to keep the current value. | |
udp_forwarding | Whether this stream forwards UDP traffic. For updates, omit to keep the current value. |
delete_stream Delete Stream
Permanently delete a TCP/UDP stream by ID; NPM stops forwarding that port immediately and this cannot be undone. List streams first to confirm the ID. Returns True on success. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the stream, from the matching list tool. |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
enable_stream Enable Stream
Enable a disabled TCP/UDP stream by ID so NPM forwards its incoming port again. Use update_stream to change ports or protocol flags; list_streams shows current status. This changes the stream state in NPM. Returns the updated stream object. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the stream, from the matching list tool. |
dry_run | boolean | When True, return the exact request preview without changing NPM. |
disable_stream Disable Stream
Disable a TCP/UDP stream by ID while retaining its forwarding configuration. Use delete_stream to remove it; list_streams shows current status. NPM stops forwarding this stream while disabled. Returns the updated stream object. Set dry_run=True to preview the exact request without changing NPM.
| Parameter | Type | Description |
|---|---|---|
id * | integer | ID of the stream, from the matching list tool. |
dry_run | boolean | When True, return the exact request preview without changing NPM. |