YNAB Budget MCP

YNAB Budget MCP

Provides a read-only interface to YNAB budget data, allowing AI assistants to inspect budgets, accounts, categories, transactions, and more. Includes an experimental guarded write workflow for category assignments.

Category
访问服务器

README

YNAB Budget MCP

A local Model Context Protocol server that gives AI assistants a focused, guarded way to understand YNAB budget data.

For AI-assistant users

Use this when you want an MCP-capable assistant to help you understand your YNAB budget without giving it unrestricted control. It can inspect plans, budget snapshots, accounts, categories, transactions, scheduled transactions, and payees. It is not financial advice and does not replace your own review of your budget.

Examples of useful requests include:

  • “Which categories are overspent this month?”
  • “Show my uncategorized transactions from the last two weeks.”
  • “What scheduled transactions are due in the next 30 days?”
  • “Preview assigning $100 to Groceries, but do not apply it.”

You stay in control

All budget reads and assignment previews are read-only. The only write capability is an intentionally narrow, experimental category-assignment workflow:

  1. Your assistant creates a preview containing the exact category changes and planning-availability checks.
  2. You review and explicitly approve that exact preview.
  3. Applying it additionally requires YNAB_ENABLE_WRITES=true, a fresh single-use token, and an unchanged YNAB state.

The server runs locally, sends requests directly to YNAB, and has no telemetry or persistent storage.

Connect it to your assistant

You need Node.js 22.9+ and a YNAB Personal Access Token from YNAB developer settings.

Ask your agent to install it

If your AI assistant supports local stdio MCP servers, copy and paste this prompt into it. The linked README is the source of truth; the agent should use the instructions for its own client.

Please install YNAB Budget MCP for me, following the canonical instructions at https://github.com/Orlando-Villanueva/ynab-budget-mcp#connect-it-to-your-assistant.

Use the published npm package, not a repository clone or local source checkout. Follow the generic terminal setup unless this is Codex, in which case use the Codex CLI or Codex app instructions. When the MCP configuration requires my YNAB token, stop and tell me to enter it myself in this client's MCP server Environment variables or Secrets field, using the exact key `YNAB_ACCESS_TOKEN`. Do not ask me to paste the token into chat, a command, a project file, or any shared configuration. Leave `YNAB_ENABLE_WRITES` unset. When setup is complete, tell me how to verify the MCP connected successfully.

Generic terminal setup

Install the published package:

npm install -g ynab-budget-mcp@beta

Then add a local stdio MCP server in your assistant's settings with:

Field Value
Command ynab-mcp
Environment variable or secret YNAB_ACCESS_TOKEN = your YNAB Personal Access Token
Working directory Leave blank

Enter the token in the assistant's MCP Environment variables or Secrets field—not in a repository .env file, an issue, a screenshot, or a chat message. Every MCP client labels this screen differently, but the variable name is always YNAB_ACCESS_TOKEN.

If your MCP client uses JSON configuration, this is the generic server definition:

{
  "command": "ynab-mcp",
  "env": {
    "YNAB_ACCESS_TOKEN": "your-token"
  }
}

Codex CLI

In Terminal, run the following. It uses a hidden token prompt, then saves a local Codex MCP configuration without requiring a repository checkout:

read -s "YNAB_ACCESS_TOKEN?Paste your YNAB access token: "
echo
codex mcp add ynab \
  --env "YNAB_ACCESS_TOKEN=$YNAB_ACCESS_TOKEN" \
  -- npx -y ynab-budget-mcp@beta
unset YNAB_ACCESS_TOKEN

Restart Codex, then run codex mcp get ynab to confirm the server is configured.

Codex app

In Codex, open Plugins, choose AddMCP server, and create a stdio server with these values:

Field Value
Command npx
Arguments -y, ynab-budget-mcp@beta
Environment variable YNAB_ACCESS_TOKEN = your YNAB Personal Access Token
Working directory Leave blank

Save the server and restart Codex. This downloads the published package when needed; no repository clone, local .env, or global installation is required.

Other MCP clients

If you prefer not to install globally, configure your client to run npx -y ynab-budget-mcp@beta instead. The following JSON is one generic example; it is not a Codex configuration file:

{
  "command": "npx",
  "args": ["-y", "ynab-budget-mcp@beta"],
  "env": {
    "YNAB_ACCESS_TOKEN": "your-token"
  }
}

Keep the token private. It grants access to the YNAB data available to it; never add it to a repository, issue, screenshot, or shared configuration file.

For developers and maintainers

This section is for working on the MCP itself rather than simply using it with an assistant.

Run from source

Clone the repository, install its development dependencies, and create a local token file:

git clone https://github.com/Orlando-Villanueva/ynab-budget-mcp.git
cd ynab-budget-mcp
npm ci
cp .env.example .env

Set YNAB_ACCESS_TOKEN in your uncommitted .env. To permit a real, explicitly approved assignment apply during a local session, also set YNAB_ENABLE_WRITES=true; leave it unset for normal development and testing.

Start the local stdio server with:

npm run start

For an MCP client to use your source checkout directly, configure it with a portable path and working directory:

{
  "command": "node",
  "args": [
    "--env-file-if-exists=.env",
    "--experimental-transform-types",
    "src/index.ts"
  ],
  "cwd": "/absolute/path/to/ynab-budget-mcp"
}

This local-development configuration is separate from the published-package setup above. You can keep using an installed release while developing changes in another checkout.

Verify changes

npm test
npm run check

npm run check builds the package and runs the test suite. The project intentionally has no runtime dependencies; TypeScript build tools are development-only.

Security, privacy, and support

See SECURITY.md for security and privacy expectations, and SUPPORT.md for support expectations.

This project is not affiliated with, endorsed by, or sponsored by YNAB. YNAB is a trademark of its respective owner.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选