Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SWAG_MCP_HOSTNoBind address for the MCP server127.0.0.1
SWAG_MCP_PORTNoHost-side port (Docker only; container always uses 8000)49152
SWAG_MCP_TOKENNoBearer token enforced by FastMCP for direct MCP server access
SWAG_MCP_NO_AUTHNoSet true only for loopback/proxy-isolated deployments without server authfalse
SWAG_MCP_LOG_LEVELNoDEBUG / INFO / WARNING / ERROR / CRITICALINFO
SWAG_MCP_MAX_RETRIESNoMax retry attempts3
SWAG_MCP_BIND_ADDRESSNoDocker host bind address for the published MCP port127.0.0.1
SWAG_MCP_LOG_PAYLOADSNoInclude request/response bodies in logsfalse
SWAG_MCP_LOG_DIRECTORYNoDirectory for rotating log files/app/.swag-mcp/logs
SWAG_MCP_SSH_HOST_PATHNoPath to SSH directory for remote SWAG host access
SWAG_MCP_TEMPLATE_PATHNoPath to Jinja2 templates directorytemplates
SWAG_MCP_RATE_LIMIT_RPSNoSustained requests per second10.0
SWAG_MCP_PROXY_CONFS_URINoOverrides PROXY_CONFS_PATH when set. Accepts a local path or SSH URI.
SWAG_MCP_LOG_FILE_ENABLEDNoWrite logs to files in addition to stdouttrue
SWAG_MCP_PROXY_CONFS_PATHNoLocal path to SWAG proxy confs directory/swag/nginx/proxy-confs
SWAG_MCP_RATE_LIMIT_BURSTNoBurst capacity above the RPS limit20
SWAG_MCP_LOG_FILE_MAX_BYTESNoMax log file size before rotation (10 MB)10485760
SWAG_MCP_RATE_LIMIT_ENABLEDNoEnable the rate-limiting middlewarefalse
SWAG_MCP_SWAG_LOG_BASE_PATHNoBase path for SWAG log files (local or remote)/swag/log
SWAG_MCP_DEFAULT_QUIC_ENABLEDNoQUIC default for new configsfalse
SWAG_MCP_BACKUP_RETENTION_DAYSNoDays to keep backup files. Cleanup runs at startup and on backups action=cleanup.30
SWAG_MCP_HEALTH_CHECK_INSECURENoSkip SSL verification for health probes. Not recommended for production.false
SWAG_MCP_LOG_PAYLOAD_MAX_LENGTHNoMax payload length when LOG_PAYLOADS=true1000
SWAG_MCP_DEFAULT_WEB_AUTH_METHODNoWeb endpoint auth method used when create omits auth_method; this is not MCP server authauthelia
SWAG_MCP_ENABLE_RETRY_MIDDLEWARENoAutomatically retry failed operationstrue
SWAG_MCP_ENABLE_STRUCTURED_LOGGINGNoEmit JSON structured logsfalse
SWAG_MCP_SLOW_OPERATION_THRESHOLD_MSNoLog a warning when any operation exceeds this threshold1000

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/jmagar/swag-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server