YNAB MCP Server
by auzroz
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP port used when `MCP_TRANSPORT=http`. | 3000 |
| PUBLIC_URL | No | Public URL of the server, used for multi-user YNAB OAuth mode and as the default host/origin for remote HTTP mode. | |
| CACHE_TTL_MS | No | TTL for the in-memory read cache used for accounts, categories, payees, and the budget list (default 5 minutes). | 300000 |
| ALLOWED_HOSTS | No | Comma-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_TRANSPORT | No | Transport mode: `stdio` (default) or `http` for remote Streamable HTTP. | stdio |
| ENCRYPTION_KEY | No | Encryption key for multi-user YNAB OAuth mode, used for AES-256-GCM at-rest token encryption. | |
| YNAB_BUDGET_ID | No | Default budget UUID (uses "last-used" if not set). | last-used |
| YNAB_READ_ONLY | No | Set to `false` to enable write operations. Default is `true` (read-only). | true |
| ALLOWED_ORIGINS | No | Comma-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_SESSIONS | No | Global cap on concurrent sessions. At the cap, `initialize` gets `503` + `Retry-After`. | 100 |
| MCP_RESOURCE_URL | No | Resource URL (default: `PUBLIC_URL`/mcp). | |
| YNAB_ACCESS_TOKEN | Yes | Your YNAB Personal Access Token. | |
| MCP_MAX_SESSIONS_PER_USER | No | Per-user cap on concurrent sessions; past it, the user's least recently used session is closed. | 10 |
| MCP_SESSION_IDLE_TIMEOUT_MS | No | Idle 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_PROTECTION | No | Enables 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
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues