CY

calebl/ynab-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

170 stars 82 forks 质量 85 趋势 20MIT

calebl/ynab-mcp-server 是从 https://github.com/calebl/ynab-mcp-server. 导入的 MCP 服务器候选

概览

calebl/ynab-mcp-server 是从 https://github.com/calebl/ynab-mcp-server. 导入的 MCP 服务器候选

概述(AI 翻译)

一个用于与你的 YNAB 计划交互的模型上下文协议(MCP)服务器,位于 https://ynab.com

为了让AI与该工具交互,你需要获得个人访问令牌 来自 YNAB 的:https://api.ynab.com/#personal-access-tokens. 在将此 MCP 服务器添加到任意 客户端,您需要提供个人访问令牌作为YNAB_API_TOKEN。此令牌 从不直接发送到LLM。 它私有地存储在环境变量中,为 使用YNAB API。

一个模型上下文协议服务器,允许 AI 助理阅读并修改YNAB计划。

服务器通过官方与YNAB API通信 ynabSDK。你的个人访问令牌 存在于环境变量中,且从未发送到模型。

它从一个代码库出发有两种方式:

  • 本地(stdio) — Claude Code 或 Claude Desktop 在你的子进程中 自有机器。最简单,但只能在机器运行时工作。
  • 远程(Cloudflare Worker) — 部署在GitHub登录后方并添加到 claude.ai 自定义连接器,所以网页和移动应用都能用 电脑关机时。看 DEPLOY.md。

两个入口点都注册了从’src/registry.“注册的共享工具。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

ynab-mcp-server

A Model Context Protocol (MCP) server for interacting with your YNAB plans at https://ynab.com

In order to have an AI interact with this tool, you will need to get your Personal Access Token from YNAB: https://api.ynab.com/#personal-access-tokens. When adding this MCP server to any client, you will need to provide your personal access token as YNAB_API_TOKEN. This token is never directly sent to the LLM. It is stored privately in an environment variable for use with the YNAB api.

A Model Context Protocol server that lets an AI assistant read and modify a YNAB plan.

The server talks to the YNAB API through the official ynab SDK. Your Personal Access Token lives in an environment variable and is never sent to the model.

It runs two ways from one codebase:

  • Local (stdio) — a child process of Claude Code or Claude Desktop on your own machine. Simplest, but only works on that machine while it is running.
  • Remote (Cloudflare Worker) — deployed behind a sign-in of your choice, Cloudflare Access or GitHub, and added to any MCP client that supports remote servers, such as claude.ai as a custom connector, so it works from the web and your phone with your computer switched off. See DEPLOY.md.

Both entry points register the shared tools from src/registry.ts. The Worker can also run an optional scheduled auto-budget service that records what it would categorize, approve and assign without changing your plan and delivers spending alerts; see Auto-budget service.

Other providers:

Setup

Get a Personal Access Token from , then:

npm install
npm run build

Environment variables:

Variable Required Purpose
YNAB_API_TOKEN yes Personal Access Token used for every API call
YNAB_PLAN_ID no Default plan, so tools can omit planId. Find it with ynab_list_plans.
TYPESAFE_API_KEY no Operator-owned TypeSafe credential. Required, but not sufficient, to enable category suggestions.
YNAB_AI_CATEGORIZATION no Set to "true" together with TYPESAFE_API_KEY to expose the opt-in suggestion tool.
YNAB_AI_TYPICAL_PAYEES no Set to "true" to send each category’s most frequent payee names from the last 12 months with each model request. Off by default because it discloses aggregated payee history to TypeSafe.
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "ynab": { "command": "node", "args": ["/absolute/path/to/ynab-mcp-server/dist/index.js"], "env": { "YNAB_API_TOKEN": "your-token", "YNAB_PLAN_ID": "your-plan-id" } } } }