Manage Nginx Proxy Manager hosts, certificates, streams and access lists with dry-run previews.
Runs on your machine from its package; the steps are below.

At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx nginx-proxy-manager-mcp-server
MCP client config
{
"mcpServers": {
"nginx-proxy-manager": {
"command": "uvx",
"args": [
"nginx-proxy-manager-mcp-server"
]
}
}
}An MCP server for Nginx Proxy Manager. It lets Claude and other MCP clients manage reverse-proxy hosts, Let's Encrypt certificates, and access lists through typed tools instead of clicking through the NPM admin UI.
"Point blog.example.com at the container on port 3000 with HTTPS"
│
▼
Claude / MCP client ──► Nginx Proxy Manager MCP ──HTTP + JWT──► NPM API

The demo calls create_proxy_host_with_letsencrypt(dry_run=True) against a mocked NPM API and prints both request previews. No real NPM instance or credentials are used. To record it again, install the development dependencies and VHS, then run vhs docs/demo.tape from the repository root; docs/demo.py uses the same respx mocking approach as the tests.
Reverse-proxy changes are repetitive homelab work: create a host, point it at a container, attach a certificate, maybe restrict it to an access list. That is exactly the kind of operational task an AI assistant can handle well when it has narrow, typed tools and a local admin boundary.
This server runs either:
dry_run on all mutating tools to preview NPM requests before applying them;create_proxy_host_with_letsencrypt requests a certificate, then creates an HTTPS-forced proxy host.401.| Category | Tools |
|---|---|
| Workflows | create_proxy_host_with_letsencrypt |
| Proxy hosts | list_proxy_hosts, get_proxy_host, create_proxy_host, update_proxy_host, delete_proxy_host, enable_proxy_host, disable_proxy_host |
| Redirection hosts | list_redirection_hosts, get_redirection_host, create_redirection_host, update_redirection_host, delete_redirection_host, enable_redirection_host, disable_redirection_host |
| Streams | list_streams, get_stream, create_stream, update_stream, delete_stream, enable_stream, disable_stream |
| SSL certs | list_certificates, create_letsencrypt_cert, renew_certificate |
| Access lists | list_access_lists, get_access_list, create_access_list, update_access_list, delete_access_list |
All mutating tools expose dry_run=True. Previews contain method and path, plus json when the request has a body; the HTTPS workflow returns two previews in steps. The flag suppresses mutating requests, though some previews read current state. Update tools send only the fields in NPM's PUT schema (fixes #19); this is covered by mocked tests and not yet checked against a live NPM instance.
Competitor facts below come only from their linked READMEs fetched with gh api repos/<owner>/nginx-proxy-manager-mcp/readme on 2026-10-13. “not documented” means the README does not establish the capability, not that it is absent. Auth guard means inbound MCP client authentication, distinct from NPM API login.
| Repository | Tool count documented | Dry-run support | Transport | Auth guard |
|---|---|---|---|---|
| euisuh (this server) | 30 | dry_run on all mutating tools | stdio, SSE | Optional SSE bearer token (MCP_BEARER_TOKEN); /healthz exempt |
| b3nw | 14 named tools (13 catalog rows plus list_instances) | not documented | stdio, HTTP | HTTP bearer token (NPM_MCP_AUTH_TOKEN) |
| omichelbraga | 66 | DELETE without confirm: true previews affected resources; general dry_run not documented | stdio, Streamable HTTP | Optional bearer token (NPM_MCP_BEARER_TOKEN); unset means no inbound auth |
| drmogie | 4 named tools (npm_status, npm_hosts, npm_audit_log, npm_call) | Changes show what will be sent and require confirm; dry_run not documented | not documented | not documented |
This server's implementations expose dry_run on every mutating tool, provide the one-shot create_proxy_host_with_letsencrypt workflow, and publish the Docker sidecar at 127.0.0.1:8000:8000. These are verified in tools/, server.py, and docker-compose.yml. They do not establish that other servers lack equivalent capabilities.
The bundled docker-compose.yml starts both Nginx Proxy Manager and this MCP sidecar from source. If you already run NPM, copy only the nginx-proxy-manager-mcp service into your existing compose file.
git clone https://github.com/euisuh/nginx-proxy-manager-mcp.git
cd nginx-proxy-manager-mcp
cp .env.example .env
# edit .env — NPM_EMAIL / NPM_PASSWORD must be an existing NPM admin account
docker compose up -d
NPM_URL defaults to http://app:81, the NPM admin API on the internal Docker network. Leave it as-is when both services share a compose stack; point it at your NPM host otherwise.
To use the published GHCR image instead of building locally:
services:
nginx-proxy-manager-mcp:
image: ghcr.io/euisuh/nginx-proxy-manager-mcp:latest
restart: unless-stopped
environment:
NPM_URL: http://app:81
NPM_EMAIL: ${NPM_EMAIL}
NPM_PASSWORD: ${NPM_PASSWORD}
MCP_TRANSPORT: sse
MCP_HOST: 0.0.0.0
MCP_PORT: 8000
MCP_BEARER_TOKEN: ${MCP_BEARER_TOKEN:-}
ports:
- "127.0.0.1:8000:8000"
Register the SSE server with Claude Code:
claude mcp add npm http://localhost:8000/sse
Or add it manually to an MCP client config:
{
"mcpServers": {
"nginx-proxy-manager": {
"url": "http://localhost:8000/sse"
}
}
}
More examples live in examples/: Claude Desktop, Claude Code, Cursor, and Windsurf.
If you do not want Docker, run it from PyPI (package nginx-proxy-manager-mcp-server):
NPM_URL=http://localhost:81 \
NPM_EMAIL=admin@example.com \
NPM_PASSWORD=... \
MCP_TRANSPORT=stdio \
uvx nginx-proxy-manager-mcp-server
Or from a local checkout:
git clone https://github.com/euisuh/nginx-proxy-manager-mcp.git
cd nginx-proxy-manager-mcp
NPM_URL=http://localhost:81 \
NPM_EMAIL=admin@example.com \
NPM_PASSWORD=... \
MCP_TRANSPORT=stdio \
uvx --from . nginx-proxy-manager-mcp
Or install it into an isolated environment:
pipx install nginx-proxy-manager-mcp-server
Use stdio when you want the MCP client to launch the server process directly instead of talking to a sidecar.
python -m venv .venv
. .venv/bin/activate
pip install -e .
NPM_URL=http://localhost:81 \
NPM_EMAIL=admin@example.com \
NPM_PASSWORD=... \
MCP_TRANSPORT=stdio \
nginx-proxy-manager-mcp
Example client config:
{
"mcpServers": {
"nginx-proxy-manager": {
"command": "/path/to/nginx-proxy-manager-mcp/.venv/bin/python",
"args": ["-m", "nginx_proxy_manager_mcp.server"],
"env": {
"NPM_URL": "http://localhost:81",
"NPM_EMAIL": "admin@example.com",
"NPM_PASSWORD": "...",
"MCP_TRANSPORT": "stdio"
}
}
}
}
| Variable | Required | Default | Description |
|---|---|---|---|
NPM_URL | yes | — | Base URL of the NPM admin API (http://app:81 inside Docker) |
NPM_EMAIL | yes | — | NPM admin account email |
NPM_PASSWORD | yes | — | NPM admin account password |
MCP_TRANSPORT | no | sse | MCP transport: sse or stdio |
MCP_HOST | no | 127.0.0.1 | Bind address for SSE mode; Docker Compose sets 0.0.0.0 inside the container while publishing only to localhost |
MCP_PORT | no | 8000 | Bind port for SSE mode |
MCP_BEARER_TOKEN | no | — | Optional bearer token required for SSE HTTP requests |
Missing required variables make the server exit with a clear error at startup rather than fail on the first API call.
SSE mode also exposes GET /healthz, an unauthenticated liveness endpoint that returns a small JSON response. It does not contact NPM or validate credentials; use it for container and reverse-proxy health checks only.
┌───────────────┐ MCP over SSE/stdio ┌──────────────────────────┐
│ Claude/Cursor │ ─────────────────────► │ Nginx Proxy Manager MCP │
│ / MCP client │ │ server.py + tools/ │
└───────────────┘ └───────────┬──────────────┘
│ HTTP + Bearer JWT
▼
┌──────────────────────────┐
│ Nginx Proxy Manager API │
│ app:81 / localhost:81 │
└──────────────────────────┘
nginx_proxy_manager_mcp/server.py validates required env vars, builds the FastMCP app, registers every tool module, and serves either SSE or stdio.nginx_proxy_manager_mcp/npm_client.py wraps httpx, exchanges the admin email/password for a JWT on first use, caches the token in memory, and re-authenticates on 401.nginx_proxy_manager_mcp/tools/ keeps one module per NPM resource. Adding a resource means adding one register_*_tools(mcp, client) function and one registration line.python -m venv .venv
. .venv/bin/activate
pip install -e . -r requirements-dev.txt
pytest -q
Tests mock the NPM API with respx, so the suite runs offline and touches no real infrastructure. CI runs the same command on every push and pull request.
Tagged releases (vX.Y.Z) publish the nginx-proxy-manager-mcp-server package to PyPI via trusted publishing (.github/workflows/publish.yml) and multi-architecture Docker images to GitHub Container Registry:
ghcr.io/euisuh/nginx-proxy-manager-mcp:<version> for tags such as v0.2.0ghcr.io/euisuh/nginx-proxy-manager-mcp:<major>.<minor> for semver tagsghcr.io/euisuh/nginx-proxy-manager-mcp:latest for the newest tagged releaseThe Docker workflow also builds pull requests without pushing an image, so packaging changes are validated before release.
Anything that can reach this MCP server has admin-level control over your proxy hosts and certificates.
127.0.0.1 unless you have another trusted network boundary.127.0.0.1 by default; set MCP_HOST=0.0.0.0 only behind a trusted network boundary.MCP_BEARER_TOKEN for SSE deployments that can be reached by anything beyond the local machine, and configure clients to send Authorization: Bearer YOUR_TOKEN..env.See SECURITY.md for reporting and deployment guidance.
See ROADMAP.md. Near-term priorities are PyPI publishing, MCP directory submission, broader NPM resource coverage, and integration tests.
smithery.yaml describes stdio launch configuration for Smithery-style MCP directories.glama.json declares the repository maintainer for Glama MCP registry verification./healthz reports only process liveness, not NPM reachability.Issues and pull requests are welcome. See CONTRIBUTING.md. Adding a new NPM resource follows a fixed shape:
nginx_proxy_manager_mcp/tools/<resource>.py with a register_<resource>_tools(mcp, client) function.build_server() in nginx_proxy_manager_mcp/server.py.tests/test_<resource>.py covering each tool with respx-mocked NPM responses.ruff check . and pytest -q.Commits follow Conventional Commits.
Built and maintained by Euisuh Jeong to manage a homelab reverse proxy from Claude Code.
MIT — see LICENSE.