YNAB MCP
YNAB 模型上下文协议 (MCP) 服务器用于 Claude Code 与 You Need A Budget (YNAB) 的集成。
概述
此仓库包含一个基于 Docker 的 MCP 服务器,使 Claude Code 能够与 YNAB(You Need A Budget)账户进行交互。它实现了 OAuth 流程,并提供了用于预算管理、交易跟踪和财务洞察的全面 API。
特征
使用 YNAB API 进行基于 OAuth 的身份验证
完整的预算和账户管理
交易创建和分类
支持多种预算(个人和家庭)
速率限制处理(YNAB API 限制:200 个请求/小时)
通过缓存提高性能
入门
先决条件
Docker
Node.js v18+(用于开发)
Claude 代码 CLI
YNAB 账户
安装
克隆此存储库
将
config/config.example.js
复制到config/config.js
并添加您的 YNAB API 凭据构建 Docker 镜像:
docker build -t ynab-mcp:latest .
为 Claude 创建 JSON 配置:
{ "command": "docker", "args": [ "run", "--rm", "-i", "-v", "/path/to/data:/app/data", "-v", "/path/to/config:/app/config", "-e", "NODE_ENV=production", "ynab-mcp:latest" ] }使用 Claude Code CLI 注册 MCP:
claude mcp add-json ynab '{"command": "docker", "args": ["run", "--rm", "-i", "-v", "/path/to/data:/app/data", "-v", "/path/to/config:/app/config", "-e", "NODE_ENV=production", "ynab-mcp:latest"]}'您还可以将 JSON 保存到文件并使用:
claude mcp add-json ynab "$(cat config.json)"当 Claude 提示时,使用您的 YNAB 帐户进行身份验证
与克劳德的整合
该 MCP 与 Claude 无缝集成,可实现:
查看预算和交易
获取财务见解
通过自然对话管理预算
安全
令牌安全地存储在已安装的 Docker 卷中
未记录任何敏感数据
身份验证使用 OAuth 2.0 标准
支持只读模式
实现细节
该实现遵循模型上下文协议标准,使用:
Node.js 和官方 MCP SDK
Docker 用于容器化和部署
用于 API 操作的 YNAB JavaScript SDK
OAuth 2.0 用于身份验证
执照
麻省理工学院
致谢
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
模型上下文协议服务器使 Claude Code 能够与 You Need A Budget (YNAB) 帐户进行交互,通过 OAuth 身份验证提供预算管理、交易跟踪和财务洞察的 API 访问。
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables Claude AI to interact with Paybyrd's payment processing API, allowing for creating payment links, processing refunds, and retrieving order information.Last updated -0
- AsecurityFlicenseAqualityProvides access to YNAB (You Need A Budget) functionality through the Model Context Protocol, allowing users to view account balances, access transaction data, and create new transactions.Last updated -10
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI-powered interaction with YNAB (You Need A Budget) data, allowing users to query their budgets through conversational interfaces.Last updated -1536MIT License
- -securityAlicense-qualityA Model Context Protocol (MCP) server for interacting with YNAB (You Need A Budget). Provides tools for accessing budget data through MCP-enabled clients like Claude Desktop.Last updated -3MIT License