Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By jmagarv1.1.6MITIn 1 marketplace
Creates, edits and removes nginx reverse-proxy configs for SWAG, plus log reads, backups and health checks. Needs a running SWAG MCP server and an API token; every generated config includes MCP security headers.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
swag, reverse-proxy, homelab, proxy-config, health-check, backups, mcp
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
SWAG MCP URLswag_mcp_url
Public HTTP MCP endpoint including /mcp, e.g. https://swag.example.com/mcp.
string
SWAG MCP Hostswag_mcp_host
Host interface the MCP server binds to. Docker deployments normally use 0.0.0.0.
string
SWAG MCP Portswag_mcp_port
Published host port for the HTTP MCP server.
string
SWAG MCP Tokenswag_mcp_token
Bearer token used to authenticate HTTP MCP requests.
Sensitivestring
Log Levelswag_mcp_log_level
Server log level: DEBUG, INFO, WARNING, ERROR, or CRITICAL.
string
FastMCP Auth Providerfastmcp_server_auth
Optional FastMCP auth provider class, e.g. fastmcp.server.auth.providers.google.GoogleProvider.
string
SWAG MCP Log Directoryswag_mcp_log_directory
Directory for SWAG MCP server logs.
string
Rate Limit RPSswag_mcp_rate_limit_rps
Requests per second limit when rate limiting is enabled.
string
SWAG Proxy Configs URIswag_mcp_proxy_confs_uri
Optional local path or SSH URI for SWAG proxy configs. Overrides SWAG_MCP_PROXY_CONFS_PATH when set.
string
SWAG Proxy Configs Pathswag_mcp_proxy_confs_path
Container/local path where SWAG proxy configurations are mounted, e.g. /proxy-confs.
string
Rate Limit Burstswag_mcp_rate_limit_burst
Burst capacity above the configured requests-per-second limit.
string
Rate Limit Enabledswag_mcp_rate_limit_enabled
Whether request rate limiting middleware is enabled.
string
SWAG Log Base Pathswag_mcp_swag_log_base_path
Base path for SWAG log files on the SWAG host or container.
string
Default QUIC Enabledswag_mcp_default_quic_enabled
Whether generated SWAG configs enable QUIC by default.
string
Backup Retention Daysswag_mcp_backup_retention_days
Number of days to retain generated config backup files.
string
Health Check Insecureswag_mcp_health_check_insecure
Disable TLS verification for health checks. Use only for development/internal networks.
string
Default Web Endpoint Auth Methodswag_mcp_default_web_auth_method
Default SWAG/nginx auth method for generated web endpoints. This is not MCP server authentication.
string
Google OAuth Base URLfastmcp_server_auth_google_base_url
Public OAuth/MCP endpoint, including /mcp for path-mounted deployments.
string
Google OAuth Client IDfastmcp_server_auth_google_client_id
Google OAuth client ID for FastMCP authentication.
string
OAuth Resource Base URLfastmcp_server_auth_resource_base_url
Public resource origin used for protected resource metadata.
string
Google OAuth Client Secretfastmcp_server_auth_google_client_secret
Google OAuth client secret for FastMCP authentication.
Sensitivestring
Google OAuth Redirect Pathfastmcp_server_auth_google_redirect_path
Redirect callback path for FastMCP Google OAuth.
string
Google OAuth Required Scopesfastmcp_server_auth_google_required_scopes
Comma-separated OAuth scopes required by FastMCP Google authentication.
string
MCP server for managing SWAG reverse-proxy configuration files, backups, logs, and health checks. Uses a single swag action router backed by local filesystem or SSH-accessible SWAG config storage.
SWAG MCP generates and manages nginx subdomain proxy configurations for SWAG (Secure Web Application Gateway). Every generated config includes MCP-compatible security headers unconditionally, making configs suitable for both standard web services and MCP/AI services.
swag_mcp/: server, config, middleware, models, services, tools, and templatesconfig/: local config and test assetsdocs/: template notes, test commands, and design records.claude-plugin/, .codex-plugin/, gemini-extension.json: client manifestsdocker-compose.yaml, Dockerfile, entrypoint.sh: container deployment| Tool | Purpose |
|---|---|
swag | Unified action router for config, logs, backups, and health checks |
swag_help | Return help for the SWAG MCP server — lists all available actions and sub-actions |
| Action | Purpose | Required params |
|---|---|---|
list | List config files | none |
create | Create a new reverse-proxy config | config_name, server_name, upstream_app, upstream_port |
view | View config contents | config_name |
edit | Replace config contents | config_name, new_content |
update | Update a specific field | config_name, update_field, update_value |
remove | Remove a config | config_name |
logs | Read SWAG logs | none |
backups | List or clean up backup files | backup_action |
health_check | Probe a service endpoint | domain |
| URI | Type | Description |
|---|---|---|
swag:// | Directory | All active .conf files (excluding .sample) |
swag://configs/live | Stream | Real-time config change events |
swag://health/stream | Stream | Real-time health status for monitored services |
swag://logs/stream | Stream | Live nginx error log tail |
Install as a Claude Code plugin. You will be prompted for:
The plugin connects to the server's native streamable-HTTP endpoint.
/plugin marketplace add jmagar/claude-homelab
/plugin install swag-mcp @jmagar-claude-homelab
The plugin uses native HTTP transport and appends /mcp to the configured server URL.
cp .env.example .env
chmod 600 .env
# Edit .env with your paths and token
docker compose up -d
The container always runs on internal port 8000. Compose publishes it on
127.0.0.1:49152 by default; set SWAG_MCP_PORT to control the host port and
SWAG_MCP_BIND_ADDRESS only when you intentionally expose it beyond loopback.
just setup # copies .env.example and runs uv sync
just dev # starts the server
Two deployment paths are supported:
| Path | Transport | Credentials | Auth |
|---|---|---|---|
| Plugin (HTTP) | http | userConfig in plugin settings | Bearer token |
| Docker (HTTP) | http | .env file | Bearer token |
See docs/CONFIG.md for full variable reference. All variables use the SWAG_MCP_ prefix.
| Variable | Required | Default | Description |
|---|---|---|---|
SWAG_MCP_PROXY_CONFS_PATH | no | /swag/nginx/proxy-confs | Local path to SWAG proxy confs directory |
SWAG_MCP_PROXY_CONFS_URI | no | `` | Overrides PROXY_CONFS_PATH when set. Accepts a local path or SSH URI. |
SWAG_MCP_SWAG_LOG_BASE_PATH | no | /swag/log | Base path for SWAG log files (local or remote) |
SWAG_MCP_TEMPLATE_PATH | no | templates | Path to Jinja2 templates directory |
| Variable | Required | Default | Description |
|---|---|---|---|
SWAG_MCP_HOST | no | 127.0.0.1 | Bind address for the MCP server |
SWAG_MCP_BIND_ADDRESS | no | 127.0.0.1 | Docker host bind address for the published MCP port |
SWAG_MCP_PORT | no | 49152 | Host-side port (Docker only; container always uses 8000) |
SWAG_MCP_TOKEN | recommended | `` | Bearer token enforced by FastMCP for direct MCP server access |
SWAG_MCP_NO_AUTH | no | false | Set true only for loopback/proxy-isolated deployments without server auth |
7-day copy clicks
swag-mcp@claude-homelab is listed by jmagar/claude-homelab — review the source before installing
npx claudepluginhub jmagar/claude-homelab --plugin swag-mcpBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground