Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-auzroz-ynab-mcp": {
"command": "npx",
"args": [
"-y",
"ynab-mcp"
],
"env": {
"YNAB_ACCESS_TOKEN": "<YOUR_VALUE>",
"YNAB_BUDGET_ID": "last-used",
"YNAB_READ_ONLY": "true",
"PORT": "3000",
"PUBLIC_URL": "<VALUE>",
"CACHE_TTL_MS": "300000",
"ALLOWED_HOSTS": "<VALUE>",
"MCP_TRANSPORT": "stdio",
"ENCRYPTION_KEY": "<VALUE>",
"ALLOWED_ORIGINS": "<VALUE>",
"MCP_MAX_SESSIONS": "100",
"MCP_RESOURCE_URL": "<VALUE>",
"MCP_MAX_SESSIONS_PER_USER": "10",
"MCP_SESSION_IDLE_TIMEOUT_MS": "1800000",
"ENABLE_DNS_REBINDING_PROTECTION": "true"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-auzroz-ynab-mcp": {
"command": "npx",
"args": [
"-y",
"ynab-mcp"
],
"env": {
"YNAB_ACCESS_TOKEN": "<YOUR_VALUE>",
"YNAB_BUDGET_ID": "last-used",
"YNAB_READ_ONLY": "true",
"PORT": "3000",
"PUBLIC_URL": "<VALUE>",
"CACHE_TTL_MS": "300000",
"ALLOWED_HOSTS": "<VALUE>",
"MCP_TRANSPORT": "stdio",
"ENCRYPTION_KEY": "<VALUE>",
"ALLOWED_ORIGINS": "<VALUE>",
"MCP_MAX_SESSIONS": "100",
"MCP_RESOURCE_URL": "<VALUE>",
"MCP_MAX_SESSIONS_PER_USER": "10",
"MCP_SESSION_IDLE_TIMEOUT_MS": "1800000",
"ENABLE_DNS_REBINDING_PROTECTION": "true"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-auzroz-ynab-mcp": {
"command": "npx",
"args": [
"-y",
"ynab-mcp"
],
"env": {
"YNAB_ACCESS_TOKEN": "<YOUR_VALUE>",
"YNAB_BUDGET_ID": "last-used",
"YNAB_READ_ONLY": "true",
"PORT": "3000",
"PUBLIC_URL": "<VALUE>",
"CACHE_TTL_MS": "300000",
"ALLOWED_HOSTS": "<VALUE>",
"MCP_TRANSPORT": "stdio",
"ENCRYPTION_KEY": "<VALUE>",
"ALLOWED_ORIGINS": "<VALUE>",
"MCP_MAX_SESSIONS": "100",
"MCP_RESOURCE_URL": "<VALUE>",
"MCP_MAX_SESSIONS_PER_USER": "10",
"MCP_SESSION_IDLE_TIMEOUT_MS": "1800000",
"ENABLE_DNS_REBINDING_PROTECTION": "true"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-auzroz-ynab-mcp": {
"command": "npx",
"args": [
"-y",
"ynab-mcp"
],
"env": {
"YNAB_ACCESS_TOKEN": "<YOUR_VALUE>",
"YNAB_BUDGET_ID": "last-used",
"YNAB_READ_ONLY": "true",
"PORT": "3000",
"PUBLIC_URL": "<VALUE>",
"CACHE_TTL_MS": "300000",
"ALLOWED_HOSTS": "<VALUE>",
"MCP_TRANSPORT": "stdio",
"ENCRYPTION_KEY": "<VALUE>",
"ALLOWED_ORIGINS": "<VALUE>",
"MCP_MAX_SESSIONS": "100",
"MCP_RESOURCE_URL": "<VALUE>",
"MCP_MAX_SESSIONS_PER_USER": "10",
"MCP_SESSION_IDLE_TIMEOUT_MS": "1800000",
"ENABLE_DNS_REBINDING_PROTECTION": "true"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-auzroz-ynab-mcp": {
"command": "npx",
"args": [
"-y",
"ynab-mcp"
],
"env": {
"YNAB_ACCESS_TOKEN": "<YOUR_VALUE>",
"YNAB_BUDGET_ID": "last-used",
"YNAB_READ_ONLY": "true",
"PORT": "3000",
"PUBLIC_URL": "<VALUE>",
"CACHE_TTL_MS": "300000",
"ALLOWED_HOSTS": "<VALUE>",
"MCP_TRANSPORT": "stdio",
"ENCRYPTION_KEY": "<VALUE>",
"ALLOWED_ORIGINS": "<VALUE>",
"MCP_MAX_SESSIONS": "100",
"MCP_RESOURCE_URL": "<VALUE>",
"MCP_MAX_SESSIONS_PER_USER": "10",
"MCP_SESSION_IDLE_TIMEOUT_MS": "1800000",
"ENABLE_DNS_REBINDING_PROTECTION": "true"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-auzroz-ynab-mcp": {
"command": "npx",
"args": [
"-y",
"ynab-mcp"
],
"env": {
"YNAB_ACCESS_TOKEN": "<YOUR_VALUE>",
"YNAB_BUDGET_ID": "last-used",
"YNAB_READ_ONLY": "true",
"PORT": "3000",
"PUBLIC_URL": "<VALUE>",
"CACHE_TTL_MS": "300000",
"ALLOWED_HOSTS": "<VALUE>",
"MCP_TRANSPORT": "stdio",
"ENCRYPTION_KEY": "<VALUE>",
"ALLOWED_ORIGINS": "<VALUE>",
"MCP_MAX_SESSIONS": "100",
"MCP_RESOURCE_URL": "<VALUE>",
"MCP_MAX_SESSIONS_PER_USER": "10",
"MCP_SESSION_IDLE_TIMEOUT_MS": "1800000",
"ENABLE_DNS_REBINDING_PROTECTION": "true"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| YNAB_ACCESS_TOKEN secret | Yes | Your YNAB Personal Access Token. |
| YNAB_BUDGET_ID | No | Default budget UUID (uses "last-used" if not set). Default: last-used |
| YNAB_READ_ONLY | No | Set to `false` to enable write operations. Default is `true` (read-only). Default: true |
| PORT | No | HTTP port used when `MCP_TRANSPORT=http`. Default: 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). Default: 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. Default: stdio |
| ENCRYPTION_KEY | No | Encryption key for multi-user YNAB OAuth mode, used for AES-256-GCM at-rest token encryption. |
| 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`. Default: 100 |
| MCP_RESOURCE_URL | No | Resource URL (default: `PUBLIC_URL`/mcp). |
| MCP_MAX_SESSIONS_PER_USER | No | Per-user cap on concurrent sessions; past it, the user's least recently used session is closed. Default: 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. Default: 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`. Default: true |