Skip to main content
Glama
MCP Azure Storage Server

MCP Azure Storage Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoServer listen port3000
MCP_API_KEYNoAPI key for client authentication
CORS_ENABLEDNoEnable CORS headers for browser-based clients (MCP Inspector, web chat). Set false in production if only non-browser clients connect.true
MAX_SESSIONSNoMaximum concurrent stateful MCP sessions (returns 503 when full)100
SAS_PROTOCOLNoControls the spr (signed protocol) in generated SAS tokens. "https" (default) — HTTPS-only, recommended for production. "https,http" — allow both; required for Azurite / local emulator which serves over plain HTTP. Case-insensitive; "http,https" is also accepted.https
TLS_KEY_FILENoPath to a PEM-encoded TLS private key file. Must be set together with TLS_CERT_FILE.
TLS_CERT_FILENoPath to a PEM-encoded TLS certificate file. When set together with TLS_KEY_FILE, the server starts HTTPS directly instead of plain HTTP. Supports certificate hot-reload (SIGHUP or file-watch).
DISABLED_TOOLSNoComma-separated list of tool names to disable at runtime. Disabled tools are omitted from tools/list and return a structured "forbidden" error (code "forbidden", data.reason: "disabled_tool") when invoked via tools/call. Values are case-insensitive and whitespace is trimmed. Unknown names trigger a startup warning but do not prevent the server from starting. Example: DISABLED_TOOLS=blob-delete,fileshare-delete-share,table-delete,queue-delete.
TLS_MIN_VERSIONNoMinimum TLS protocol version. Accepts TLSv1.2 or TLSv1.3.TLSv1.3
MAX_UPLOAD_BYTESNoHard byte limit for streaming multipart uploads via /upload. Default: 5 GiB. Files exceeding this are rejected with HTTP 413 (code: "too_large").5368709120
SAS_EXPIRY_HOURSNoDefault SAS token expiry (hours)24
TRUST_PROXY_HOPSNoNumber of trusted reverse proxy hops for X-Forwarded-For resolution. Default is 0 when TLS is served directly (no proxy in front), 1 when behind a reverse proxy. Set 2 if behind both a CDN and Container Apps.
RATE_LIMIT_MCP_MAXNoMax requests per window for /mcp (JSON-RPC) per identity3000
MAX_JSON_BODY_BYTESNoHard byte limit for JSON request bodies on /mcp. Default: 50 MiB. Controls express.json({ limit }). Oversized JSON bodies return HTTP 413.52428800
OTEL_TELEMETRY_LEVELNoTelemetry preset: off, basic (10% sampling, WARN+ logs, 60s metrics), detailed (100%, INFO+, 15basic
RATE_LIMIT_UPLOAD_MAXNoMax requests per window for /upload (multipart) per identity600
SAS_MAX_EXPIRY_MINUTESNoMaximum allowed SAS token lifetime in minutes (ceiling). Requests for expiryMinutes (or expiryHours converted to minutes) exceeding this value receive a structured "invalid" error with field: "expiryMinutes" or field: "expiryHours". Default: 1440 (24 hours). Set lower (e.g. 60) for tighter security.1440
RATE_LIMIT_MAX_REQUESTSNoLegacy max requests per window. Used for both endpoints when specific *_MAX vars are unset300
SAS_DEFAULT_PERMISSIONSNoDefault SAS permissionsrl
AZURE_STORAGE_ACCOUNT_KEYNoAzure Storage account key
RATE_LIMIT_WINDOW_MINUTESNoLegacy rate limit window (minutes). Used when RATE_LIMIT_WINDOW_SECONDS is unset15
RATE_LIMIT_WINDOW_SECONDSNoRate limit window in seconds (overrides RATE_LIMIT_WINDOW_MINUTES when set)900
SSE_KEEPALIVE_INTERVAL_MSNoInterval (ms) between SSE keepalive heartbeats. Prevents Azure reverse proxy from killing idle SSE connections (~240s timeout).30000
AZURE_STORAGE_ACCOUNT_NAMENoAzure Storage account name
AZURE_USE_MANAGED_IDENTITYNoUse Azure Managed Identity instead of shared key authentication.false
OTEL_EXPORTER_OTLP_ENDPOINTNoOTLP endpoint URL (e.g. http://localhost:4318). OTel is completely disabled when unset -- zero overhead.
SESSION_RETRY_AFTER_SECONDSNoRetry hint (seconds) returned in 503 session-capacity errors30
MAX_QUEUE_VISIBILITY_SECONDSNoMaximum allowed visibility timeout (lease duration) for queue-update-message and queue-renew-lease. Default: 3600 (1 hour). Azure Queue Storage supports up to 7 days, but this server-side cap prevents accidentally setting very long leases.3600

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

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