Skip to main content
Glama
YNAB MCP Server

YNAB MCP Server

by auzroz

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTP port used when `MCP_TRANSPORT=http`.3000
PUBLIC_URLNoPublic URL of the server, used for multi-user YNAB OAuth mode and as the default host/origin for remote HTTP mode.
CACHE_TTL_MSNoTTL for the in-memory read cache used for accounts, categories, payees, and the budget list (default 5 minutes).300000
ALLOWED_HOSTSNoComma-separated `Host` allowlist for DNS-rebinding protection. Defaults to the `PUBLIC_URL` host, plus localhost when `PUBLIC_URL` is unset or loopback; an explicit list replaces the defaults.
MCP_TRANSPORTNoTransport mode: `stdio` (default) or `http` for remote Streamable HTTP.stdio
ENCRYPTION_KEYNoEncryption key for multi-user YNAB OAuth mode, used for AES-256-GCM at-rest token encryption.
YNAB_BUDGET_IDNoDefault budget UUID (uses "last-used" if not set).last-used
YNAB_READ_ONLYNoSet to `false` to enable write operations. Default is `true` (read-only).true
ALLOWED_ORIGINSNoComma-separated `Origin` allowlist for `/mcp`. Defaults to the `PUBLIC_URL` origin; without `PUBLIC_URL`, `https://` for each allowed host, plus `http://` for localhost. Requests with no `Origin` header aren't checked.
MCP_MAX_SESSIONSNoGlobal cap on concurrent sessions. At the cap, `initialize` gets `503` + `Retry-After`.100
MCP_RESOURCE_URLNoResource URL (default: `PUBLIC_URL`/mcp).
YNAB_ACCESS_TOKENYesYour YNAB Personal Access Token.
MCP_MAX_SESSIONS_PER_USERNoPer-user cap on concurrent sessions; past it, the user's least recently used session is closed.10
MCP_SESSION_IDLE_TIMEOUT_MSNoIdle time before a session is closed (default 30 min). A session with an open request or SSE stream is not idle.1800000
ENABLE_DNS_REBINDING_PROTECTIONNoEnables Origin/Host checks for DNS-rebinding protection. On by default; set `false` to disable them (unsafe). Behind a proxy, forward `Host` or set `ALLOWED_HOSTS`.true

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