Skip to content

Environment variables ​

VariableApplies toDescription
MEALIE_URLallRequired. Base URL of your Mealie instance
MEALIE_API_TOKENstdio, HTTPRequired for stdio. Over HTTP, selects server-key mode. Can't be combined with login
MEALIE_MCP_PASSWORD_LOGINHTTPtrue or 1 enables the login form and turns off API keys
MCP_TOKEN_KEYloginRequired, 32+ characters. Encrypts stored tokens and must stay the same
MCP_BASE_URLloginPublic origin, with no path. Required off loopback, and must be https:// there
MCP_DATA_DIRloginWhere the database lives. /data in the Docker image, otherwise ./data
MCP_TRUST_PROXY_HOPSloginNumber of reverse proxies in front, so rate limits see client IPs. Default 0
MCP_ALLOWED_REDIRECT_PREFIXESloginExtra allowed OAuth redirect URI prefixes, comma-separated
MCP_PRESETallminimal, default or full. Fallback for --preset
MCP_GROUPSallComma-separated tool groups. Fallback for --groups
MCP_READ_ONLYalltrue or 1 registers only read tools. Fallback for --read-only

CLI flags: --transport stdio|http, --host, --port, --preset, --groups, --read-only.

Released under the MIT License.