.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/jmagar/swag-mcp
home/mcp-servers/jmagar/swag-mcp
jmagar avatar

swag-mcp

byjmagar· 1 MCP server

Stars

4

Category

DevOps & CI/CD

View on GitHub

TL;DR

MCP server for SWAG reverse proxy configuration generation and management.

How to install swag-mcp?

jmagar/swag-mcp
$git clone https://github.com/jmagar/swag-mcp

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install swag-mcp by running `git clone https://github.com/jmagar/swag-mcp`, then use it for the current task and follow its documentation at https://github.com/jmagar/swag-mcp.

Files · 1

View on GitHub
README.md
1# SWAG MCP
2 
3<!-- mcp-name: tv.tootie/swag-mcp -->
4 
5[![PyPI](https://img.shields.io/pypi/v/swag-mcp)](https://pypi.org/project/swag-mcp/) [![ghcr.io](https://img.shields.io/badge/ghcr.io-jmagar%2Fswag--mcp-blue?logo=docker)](https://github.com/jmagar/swag-mcp/pkgs/container/swag-mcp)
6 
7MCP 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.
8 
9## Overview
10 
11SWAG MCP generates and manages nginx subdomain proxy configurations for [SWAG (Secure Web Application Gateway)](https://github.com/linuxserver/docker-swag). Every generated config includes MCP-compatible security headers unconditionally, making configs suitable for both standard web services and MCP/AI services.
12 
13## What this repository ships
14 
15- `swag_mcp/`: server, config, middleware, models, services, tools, and templates
16- `config/`: local config and test assets
17- `docs/`: template notes, test commands, and design records
18- `.claude-plugin/`, `.codex-plugin/`, `gemini-extension.json`: client manifests
19- `docker-compose.yaml`, `Dockerfile`, `entrypoint.sh`: container deployment
20 
21## MCP surface
22 
23### Tool
24 
25| Tool | Purpose |
26| --- | --- |
27| `swag` | Unified action router for config, logs, backups, and health checks |
28| `swag_help` | Return help for the SWAG MCP server — lists all available actions and sub-actions |
29 
30### Actions
31 
32| Action | Purpose | Required params |
33| --- | --- | --- |
34| `list` | List config files | none |
35| `create` | Create a new reverse-proxy config | `config_name`, `server_name`, `upstream_app`, `upstream_port` |
36| `view` | View config contents | `config_name` |
37| `edit` | Replace config contents | `config_name`, `new_content` |
38| `update` | Update a specific field | `config_name`, `update_field`, `update_value` |
39| `remove` | Remove a config | `config_name` |
40| `logs` | Read SWAG logs | none |
41| `backups` | List or clean up backup files | `backup_action` |
42| `health_check` | Probe a service endpoint | `domain` |
43 
44### Resources
45 
46| URI | Type | Description |
47| --- | --- | --- |
48| `swag://` | Directory | All active `.conf` files (excluding `.sample`) |
49| `swag://configs/live` | Stream | Real-time config change events |
50| `swag://health/stream` | Stream | Real-time health status for monitored services |
51| `swag://logs/stream` | Stream | Live nginx error log tail |
52 
53## Installation
54 
55### Plugin (recommended)
56 
57Install as a Claude Code plugin. You will be prompted for:
58 
59- **SWAG Proxy Configs Path** -- local path to proxy-confs directory
60- **SWAG MCP Server URL** -- base URL of the running HTTP server
61- **SWAG MCP API Token** -- bearer token for the HTTP server
62 
63The plugin connects to the server's native streamable-HTTP endpoint.
64 
65```bash
66/plugin marketplace add jmagar/claude-homelab
67/plugin install swag-mcp @jmagar-claude-homelab
68```
69 
70The plugin uses native HTTP transport and appends `/mcp` to the configured server URL.
71 
72### Docker Compose
73 
74```bash
75cp .env.example .env
76chmod 600 .env
77# Edit .env with your paths and token
78docker compose up -d
79```
80 
81The container always runs on internal port 8000. Compose publishes it on
82`127.0.0.1:49152` by default; set `SWAG_MCP_PORT` to control the host port and
83`SWAG_MCP_BIND_ADDRESS` only when you intentionally expose it beyond loopback.
84 
85### Local development
86 
87```bash
88just setup # copies .env.example and runs uv sync
89just dev # starts the server
90```
91 
92## Configuration
93 
94Two deployment paths are supported:
95 
96| Path | Transport | Credentials | Auth |
97|------|-----------|-------------|------|
98| **Plugin (HTTP)** | http | `userConfig` in plugin settings | Bearer token |
99| **Docker (HTTP)** | http | `.env` file | Bearer token |
100 
101See [docs/CONFIG.md](docs/CONFIG.md) for full variable reference. All variables use the `SWAG_MCP_` prefix.
102 
103### Core
104 
105| Variable | Required | Default | Description |
106| --- | --- | --- | --- |
107| `SWAG_MCP_PROXY_CONFS_PATH` | no | `/swag/nginx/proxy-confs` | Local path to SWAG proxy confs directory |
108| `SWAG_MCP_PROXY_CONFS_URI` | no | `` | Overrides `PROXY_CONFS_PATH` when set. Accepts a local path or SSH URI. |
109| `SWAG_MCP_SWAG_LOG_BASE_PATH` | no | `/swag/log` | Base path for SWAG log files (local or remote) |
110| `SWAG_MCP_TEMPLATE_PATH` | no | `templates` | Path to Jinja2 templates directory |
111 
112### Server
113 
114| Variable | Required | Default | Description |
115| --- | --- | --- | --- |
116| `SWAG_MCP_HOST` | no | `127.0.0.1` | Bind address for the MCP server |
117| `SWAG_MCP_BIND_ADDRESS` | no | `127.0.0.1` | Docker host bind address for the published MCP port |
118| `SWAG_MCP_PORT` | no | `49152` | Host-side port (Docker only; container always uses 8000) |
119| `SWAG_MCP_TOKEN` | recommended | `` | Bearer token enforced by FastMCP for direct MCP server access |
120| `SWAG_MCP_NO_AUTH` | no | `false` | Set `true` only for loopback/proxy-isolated deployments without server auth |
121 
122### Defaults
123 
124| Variable | Required | Default | Description |
125| --- | --- | -

Preview

jmagar/swag-mcpjmagar/swag-mcp
Repojmagar/swag-mcp
TypeMCP Servers
CategoryDevOps & CI/CD
UpdatedJul 2026
LicenseMIT
First seenJul 27, 2026

Tags

MCPaiclaude-code

Related

6 picks
Type
  1. circleci-public avatarmcp-server-circleciA Model Context Protocol (MCP) server implementation for CircleCI, enabling natural language interactions with CircleCI functionality through MCP-enabled clientsMCP ServersJul 2026141k86
  2. argoproj-labs avatarmcp-for-argocdArgo CD MCP ServerMCP ServersJul 202690k547
  3. flux159 avatarmcp-server-kubernetesMCP server for interacting with Kubernetes clusters via kubectlMCP ServersJul 202664k1.5k
  4. hookdeck avatarhookdeck-cliCLI for Hookdeck: forward webhooks to localhost (ngrok alternative), manage and query Event Gateway resources (sources, connections, destinations, events), run the MCP server for AI agents. Free for dev.MCP ServersJul 202647k358
  5. heroku avatarheroku-mcp-serverHeroku Platform MCP ServerMCP ServersJul 202626k80
  6. tiberriver256 avatarmcp-server-azure-devopsAzure DevOps reference server for the Model Context Protocol (MCP)MCP ServersJul 202624k381