Ynab MCP F1e9dc6d

MCP金融服务

提供方 EdgeCaseLabs

金融服务 stdio · 本地进程 API Key 社区 / 第三方 Claude DesktopClaude
查看接入方式

YNAB MCP服务器提供对YNAB(You Need A Budget)API的全面访问,将API功能作为MCP工具公开,允许AI助手和其他MCP客户端与YNAB预算、账户、交易等进行交互。

一句话选型结论

按资料字段整理

Ynab MCP F1e9dc6d 属于金融服务类 MCP 服务器,stdio · 本地进程,API Key,可直接接入 Claude Desktop、Claude,有可直接执行的安装命令。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类金融服务 传输方式stdio · 本地进程 鉴权API Key 部署方式本地部署
GitHub 星标 2 仓库热度,无公开仓库时显示未标注
工具数 28 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

金融服务
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量28暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

支持客户端

适用场景

预算管理Python本地部署API集成金融服务自动化工具个人财务管理

安装与配置

stdio · 本地进程 API Key
客户端在本机拉起子进程,数据不出本机
uvx ynab-mcp-server

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    stdio 服务在本地起进程,需要先装好 Python,再按安装命令拉取依赖。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后客户端会列出约 28 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
行情与财务数据

查行情、财报、汇率等金融数据。

支付与账务查询

查订单、账单与交易流水。

风控与核验

做身份、信用与风险信息核验。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注 28 个工具,覆盖面较广,能满足多种调用。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已适配 Claude Desktop、Claude,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 使用前要准备好API Key对应的凭据,并按最小权限配置。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在金融服务场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop、Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Ynab MCP F1e9dc6d当前 28 stdio · 本地进程 本地部署 有 2026-05-17
Alpaca MCP 62 stdio · 本地进程 支持远程部署 有 2026-05-18
OpenNews MCP 11 stdio · 本地进程 支持远程部署 有 2026-05-17
MCP Server 273df76d 未标注 stdio · 本地进程 本地部署 有 2026-05-17
tradingview-mcp 未标注 stdio · 本地进程 本地部署 有 2026-04-19
goat (Goat SDK) 未标注 未标注 未标注 无 2026-05-17

服务器档案

金融服务
字段来自项目仓库与公开索引,中文说明由本站标注
提供方EdgeCaseLabs上游标注的维护方 EdgeCaseLabs
分类金融服务本站按上游分类展示
连接方式stdio · 本地进程客户端在本机拉起子进程,数据不出本机
鉴权方式API Key远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · Python本地安装时用到的包标识与运行时
部署类型本地部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

12.0 KB
来自项目仓库与上游目录的原文,未做删改

YNAB MCP Server

A Model Context Protocol (MCP) server that provides comprehensive access to the YNAB (https://www.ynab.com) aka You Need A Budget API. This server exposes all YNAB API functionality as MCP tools, allowing AI assistants and other MCP clients to interact with YNAB budgets, accounts, transactions, and more.

Features

  • Complete YNAB API Coverage: All YNAB API methods are exposed as MCP tools
  • uv Integration: Fast dependency management with uv
  • Type-Safe: Built with Python type hints and Pydantic models
  • Error Handling: Comprehensive error handling and logging
  • Debug Logging: Optional tool call logging for debugging MCP interactions
  • Environment Configuration: Simple configuration via environment variables
  • Organized Tool Structure: Tools are logically grouped by category (budgets, accounts, transactions, etc.)

Prerequisites

  • Python 3.10+ with uv installed
  • A YNAB account with a Personal Access Token

Getting Your YNAB API Key

  1. Log in to your YNAB account at https://app.ynab.com
  2. Navigate to Account Settings
  3. Go to the Developer Settings section
  4. Create a new Personal Access Token
  5. Save this token securely - you'll need it for configuration

Installation

> Reconciling with Amazon purchases? If you're using this alongside the
> Amazon Transaction Scraper and the amazon-ynab-correlator skill, follow the
> combined end-to-end guide in the scraper's SETUP.md instead — it covers
> installing and wiring both MCP servers into Claude Desktop.

> Which install method? Prefer Install from Source below. It uses the
> pinned SDK version (uv.lock) this server is tested against. The PyPI/uvx
> builds may lag behind and can break tools such as create_transaction when
> the upstream YNAB SDK renames models.

Quick Install

If you have uv installed, you can run the server directly without cloning:```bash

Install uv if you haven't already

curl -LsSf https://astral.sh/uv/install.sh | sh

Run the server directly from PyPI

uvx ynab-mcp-server

Or with debug logging

uvx ynab-mcp-server --logging


### Install from PyPI```bash
# Using pip
pip install ynab-mcp-server

# Or using uv
uv pip install ynab-mcp-server

# Run the server
ynab-mcp-server

Install from Source

  1. Clone the repository:```bash
    git clone https://github.com/EdgeCaseLabs/ynab-mcp.git
    cd ynab-mcp

2. Install dependencies:```bash
uv sync
  1. Copy and configure environment:```bash
    cp .env.sample .env

Edit .env with your YNAB API key


4. Test the server:```bash
# Run normally
uv run python -m ynab_mcp_server

# Run with debug logging enabled
uv run python -m ynab_mcp_server --logging

Configuration

Environment Variables

Variable Required Description Default
YNAB_API_KEY Yes Your YNAB Personal Access Token -
DEFAULT_BUDGET_ID No Default budget ID to use when not specified last-used
LOG_LEVEL No Logging level (DEBUG, INFO, WARNING, ERROR) INFO
MCP_SERVER_NAME No Name of the MCP server YNAB MCP Server

Available Tools

User Tools

  • get_user() - Get authenticated user information
  • verify_api_key() - Verify API key validity

Budget Tools

  • get_budgets(include_accounts) - Get list of budgets
  • get_budget_by_id(budget_id, last_knowledge_of_server) - Get detailed budget information
  • get_budget_settings(budget_id) - Get budget settings

Account Tools

  • get_accounts(budget_id, last_knowledge_of_server, include_closed, include_deleted) - Get accounts (excludes closed/deleted by default)
  • get_account_by_id(account_id, budget_id) - Get specific account
  • create_account(name, type, balance, budget_id) - Create new account
  • get_account_balance(account_id, budget_id) - Get account balance

Transaction Tools

  • get_transactions(budget_id, since_date, type, last_knowledge_of_server) - Get transactions
  • get_transaction_by_id(transaction_id, budget_id) - Get specific transaction
  • create_transaction(...) - Create new transaction
  • update_transaction(...) - Update existing transaction
  • delete_transaction(transaction_id, budget_id) - Delete transaction
  • import_transactions(budget_id) - Import transactions from linked accounts

Category Tools

  • get_categories(budget_id, last_knowledge_of_server) - Get all categories
  • get_category_by_id(category_id, budget_id) - Get specific category
  • get_month_category(category_id, month, budget_id) - Get category for specific month
  • update_category(category_id, name, note, hidden, budget_id) - Update category
  • update_month_category(category_id, month, budgeted, budget_id) - Update monthly budget
  • get_category_balance(category_id, month, budget_id) - Get category balance

Payee Tools

  • get_payees(budget_id, last_knowledge_of_server) - Get all payees
  • get_payee_by_id(payee_id, budget_id) - Get specific payee
  • update_payee(payee_id, name, budget_id) - Update payee name
  • search_payees(search_term, budget_id) - Search payees by name
  • get_payee_locations(budget_id) - Get all payee locations
  • get_payee_location_by_id(payee_location_id, budget_id) - Get specific location
  • get_payee_locations_by_payee(payee_id, budget_id) - Get locations for payee

Usage Examples

Claude Code Plugin (Recommended)

The easiest way to use this with Claude Code is to install it as a plugin:```bash

Option 1: Install from local directory

cd /path/to/ynab-mcp
uv sync
cp .env.sample .env

Edit .env with your YNAB API key

claude plugin install .

Option 2: Install from GitHub (once published)

claude plugin install https://github.com/EdgeCaseLabs/ynab-mcp.git

Then create .env file in ~/.claude/plugins/repos/ynab/


After installation, the YNAB tools will be automatically available in all your Claude Code sessions. See .claude-plugin/README.md for more details.

### Claude Desktop Configuration

To connect this YNAB MCP server to Claude Desktop, you need to configure it in your Claude Desktop settings.

#### Configure Claude Desktop

Create or edit your Claude Desktop configuration file:

**macOS/Linux**: `~/.config/claude/claude_desktop_config.json`
**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`

Add the YNAB MCP server configuration (see `claude_desktop_config.json` for a complete example):```json
{
  "mcpServers": {
    "ynab": {
      "command": "uvx",
      "args": ["ynab-mcp-server"],
      "env": {
        "YNAB_API_KEY": "your_ynab_api_key_here",
        "DEFAULT_BUDGET_ID": "optional_default_budget_id"
      }
    }
  }
}

Alternative configurations:

If you installed from source:```json
{
"mcpServers": {
"ynab": {
"command": "/path/to/uv",
"args": ["run", "--directory", "/absolute/path/to/ynab-mcp", "python", "-m", "ynab_mcp_server"],
"env": {
"YNAB_API_KEY": "your_ynab_api_key_here",
"DEFAULT_BUDGET_ID": "optional_default_budget_id"
}
}
}
}


To enable debug logging, add `"--logging"` to the args array:```json
"args": ["ynab-mcp-server", "--logging"]

Important:
- Replace /path/to/uv with the output of which uv on your system
- Replace /absolute/path/to/ynab-mcp with the actual absolute path to your project directory

Restart Claude Desktop

After updating the configuration, restart Claude Desktop. You should now see YNAB tools available in your conversations.

Test the Connection

Try asking Claude to help with your budget:

  • "Show me my current budgets"
  • "What's the balance in my checking account?"
  • "Create a transaction for $25 coffee at Starbucks"
  • "How much have I spent on groceries this month?"

Using with Other MCP Clients

Once the server is running, you can connect to it using any MCP-compatible client. Here are some example tool calls:```python

Get all budgets

result = await client.call_tool("get_budgets", {"include_accounts": True})

Get transactions for current month

result = await client.call_tool("get_transactions", {
"budget_id": "default",
"since_date": "2024-01-01"
})

Create a new transaction

result = await client.call_tool("create_transaction", {
"account_id": "account-uuid",
"amount": -25000, # $25.00 in milliunits
"date": "2024-01-15",
"payee_name": "Coffee Shop",
"category_id": "category-uuid",
"memo": "Morning coffee",
"cleared": "cleared"
})

Update category budget for current month

result = await client.call_tool("update_month_category", {
"category_id": "category-uuid",
"month": "2024-01-01",
"budgeted": 500000 # $500.00 in milliunits
})


### Understanding Milliunits

YNAB uses milliunits for all monetary values:
- 1 dollar = 1000 milliunits
- $10.50 = 10500 milliunits
- -$25.00 = -25000 milliunits (negative for expenses)

## Development

### Running Tests```bash
uv run pytest

Linting and Formatting```bash

Format code

uv run black ynab_mcp_server/

Lint code

uv run ruff ynab_mcp_server/

Type checking

uv run mypy ynab_mcp_server/


### Adding New Tools

To add new tools, create or modify files in `ynab_mcp_server/tools/` and register them in `ynab_mcp_server/server.py`:

1. Create tool function with MCP decorator
2. Add comprehensive docstring
3. Handle errors appropriately
4. Register in the main server

## Architecture```
ynab-mcp/
├── ynab_mcp_server/        # Main package
│   ├── __init__.py         # Package initialization
│   ├── __main__.py         # Module entry point
│   ├── server.py           # Main MCP server
│   ├── debug_utils.py      # Debug logging utilities
│   └── tools/              # Tool implementations
│       ├── budgets.py      # Budget-related tools
│       ├── accounts.py     # Account tools
│       ├── transactions.py # Transaction tools
│       ├── categories.py   # Category tools
│       ├── payees.py       # Payee tools
│       └── user.py         # User tools
├── pyproject.toml          # uv dependencies
├── uv.lock                 # Locked dependencies
├── claude_desktop_config.json # Sample Claude Desktop config
├── CLAUDE.md               # Development guide for Claude Code
└── .env.sample            # Environment template

Debugging

Debug Logging

The server supports debug logging to help troubleshoot MCP tool calls:```bash

Enable debug logging (if installed from PyPI)

ynab-mcp-server --logging

Or using uvx

uvx ynab-mcp-server --logging

Or from source

uv run python -m ynab_mcp_server --logging


When enabled, all tool calls are logged to stderr in the format:```
TOOL_CALL: function_name(param1='value', param2=42)

This is especially useful when:
- Debugging Claude Desktop integration issues
- Understanding which tools are being called with what parameters
- Troubleshooting unexpected tool behavior

Troubleshooting

API Key Issues

  • Ensure your API key is correctly set in the .env file
  • Verify the key using the verify_api_key tool
  • Check that the key has not expired in your YNAB settings

Connection Issues

  • Check network connectivity
  • Ensure the YNAB API is accessible
  • Verify Claude Desktop can find the uv command (use full path)

Rate Limiting

The YNAB API has rate limits. This server handles rate limit responses appropriately, but be mindful of:
- Maximum of 200 requests per hour
- Rate limit resets on the hour
- Consider caching frequently accessed data

Security

  • Never commit your .env file with real API keys
  • Store API keys securely in environment variables
  • Rotate API keys regularly
  • Use read-only keys when possible

Contributing

Contributions are welcome! Please:
1. Fork the repository
2. Create a feature branch
3. Add tests for new functionality
4. Ensure all tests pass
5. Submit a pull request

License

MIT License - See LICENSE file for details

Support

For issues and questions:
- Check the YNAB API documentation
- Review MCP documentation
- Open an issue on GitHub

Acknowledgments

  • Built with the official YNAB Python SDK
  • Powered by Model Context Protocol
  • Fast dependency management with uv

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
Ynab MCP F1e9dc6d 怎么安装?

在客户端按下面的安装命令接入:uvx ynab-mcp-server。装完在客户端配置里引用同一个包或端点。

Ynab MCP F1e9dc6d 怎么在 Claude Desktop、Claude 里配置?

它的传输方式是stdio · 本地进程,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

Ynab MCP F1e9dc6d 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Ynab MCP F1e9dc6d 需要 API Key 吗?

资料标注需要API Key认证,使用前准备好对应凭据,并按最小权限配置。

Ynab MCP F1e9dc6d 支持哪些客户端?

资料标注支持 Claude Desktop、Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

Ynab MCP F1e9dc6d 能提供哪些能力?

资料显示约 28 个工具;能力标签包括 Python、Claude、金融服务。具体工具清单以官方文档为准。

Ynab MCP F1e9dc6d 需要什么运行环境?

运行时为 Python;属于本地进程,需要在本机装好运行环境。

Ynab MCP F1e9dc6d 是本地还是远程?

它是本地进程(stdio),由客户端在本机拉起。传输方式为stdio · 本地进程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。