Ynab MCP D9a50b0a

MCP安全风控

提供方 Bernix01

安全风控 未标注 OAuth 授权 社区 / 第三方 Claude DesktopClaude

一个为Claude提供安全访问YNAB API的模型上下文协议(MCP)服务器,支持通过自然对话管理预算、账户、交易和类别。

一句话选型结论

按资料字段整理

Ynab MCP D9a50b0a 属于安全风控类 MCP 服务器,传输方式未标注,OAuth 授权,可直接接入 Claude Desktop、Claude,没有现成安装命令,需按官方文档接入。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类安全风控 传输方式未标注 鉴权OAuth 授权 部署方式未标注
GitHub 星标 0 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

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

能力标签

支持客户端

适用场景

预算管理TypeScript本地部署财务管理API集成OAuth认证数据加密

安装与配置

未标注 OAuth 授权
上游未给出传输方式
  1. 1
    准备运行环境

    按官方文档确认运行环境(常见为 Node.js 或 Python),装好后再执行安装命令。

  2. 2
    安装服务

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

  3. 3
    写入客户端配置

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

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
资产与漏洞排查

盘点资产、扫漏洞、看暴露面。

日志与审计

汇总日志、查异常行为。

合规检查

按规则检查配置与权限是否合规。

选择建议

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

值得选的地方

  • 已适配 Claude Desktop、Claude,换客户端不用重新研究配置。

先想清楚的地方

  • 没有现成安装命令,需要按官方文档自己填启动命令和参数。
  • 使用前要准备好OAuth 授权对应的凭据,并按最小权限配置。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

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

不太适合

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

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Ynab MCP D9a50b0a当前 未标注 未标注 未标注 无 2026-05-17
Cyber Strike AI 75 未标注 未标注 无 2026-05-17
mcp-for-beginners 未标注 stdio · 本地进程 本地部署 有 2026-04-13
casdoor 未标注 stdio · 本地进程 本地部署 有 2026-04-12
kubeshark 未标注 stdio · 本地进程 本地部署 有 2026-04-11
Modelcontextprotocol C22988b0 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

安全风控
字段来自项目仓库与公开索引,中文说明由本站标注
提供方Bernix01上游标注的维护方 Bernix01
分类安全风控本站按上游分类展示
连接方式未标注上游未给出传输方式
鉴权方式OAuth 授权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · 未标注本地安装时用到的包标识与运行时
部署类型未标注上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

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

YNAB MCP Server

A Model Context Protocol (MCP) server that provides Claude with secure access to YNAB (You Need A Budget) API.

Why This Exists

This MCP server lets Claude manage your YNAB budget data directly — create transactions, check balances, update categories, and more through natural conversation.

Example use case: YNAB's automatic bank sync isn't available in all regions. With this server, you can send Claude your bank statement (PDF, CSV, or screenshot) and have it add missing transactions, match existing ones, and keep your budget accurate. No more manual entry.

Data Privacy

What we store:
- Your email and password hash — for authentication to this MCP server
- YNAB OAuth tokens (encrypted) — so Claude can access your YNAB data on your behalf. These are encrypted with AES-256-GCM before storage

What we DON'T store:
- Your bank statements — these are sent directly to Claude and never touch our servers
- Your YNAB budget data — we only proxy requests to YNAB's API; nothing is cached or stored
- Your transactions — all transaction data flows through to YNAB and is not retained

How it works:
1. You authenticate with this server (creates a session)
2. You connect your YNAB account (we store encrypted tokens)
3. When Claude needs YNAB data, it calls our MCP tools which proxy to YNAB's API
4. Your bank statements go directly to Claude's context — we never see them

Architecture```mermaid

flowchart TB
subgraph Client["Claude Client"]
CC[Claude Code/Desktop]
end

subgraph Server["MCP Server (Vercel)"]
    MCP[MCP Handler]
    BA[BetterAuth<br/>OAuth 2.1 Provider]
    TOOLS[YNAB Tools]
    JWT[JWT Verification<br/>via JWKS]
end

subgraph Database["Neon Postgres"]
    USERS[(users)]
    SESSIONS[(sessions)]
    OAUTH[(oauth_clients)]
    YNAB_TOKENS[(ynab_tokens<br/>encrypted)]
end

subgraph External["External Services"]
    YNAB_API[YNAB API]
end

CC -->|"1. MCP OAuth 2.1<br/>(PKCE + JWT)"| BA
BA --> USERS
BA --> SESSIONS
BA --> OAUTH

CC -->|"2. MCP Requests<br/>(Bearer Token)"| MCP
MCP --> JWT
JWT -->|Verify via JWKS| BA
MCP --> TOOLS

TOOLS -->|"3. YNAB API Calls"| YNAB_API
TOOLS --> YNAB_TOKENS

## Authentication Flows

### MCP OAuth 2.1 Flow (Client to Server)```mermaid
sequenceDiagram
    participant C as Claude Client
    participant S as MCP Server
    participant BA as BetterAuth
    participant U as User Browser

    C->>S: Initial MCP Request
    S-->>C: 401 + OAuth Discovery URL
    C->>BA: GET /.well-known/oauth-authorization-server
    BA-->>C: OAuth Metadata (endpoints, PKCE support)

    alt Dynamic Registration
        C->>BA: POST /oauth2/register (Dynamic Client Registration)
        BA-->>C: client_id
    else Well-known Client
        Note over C: Use client_id "ynab"
    end

    C->>C: Generate PKCE (code_verifier + code_challenge)
    C->>U: Open Browser to /oauth2/authorize
    U->>BA: Login (email/password)
    BA->>U: Consent Screen
    U->>BA: Approve
    BA-->>C: Authorization Code (via callback)

    C->>BA: POST /oauth2/token (code + code_verifier)
    BA-->>C: Access Token (JWT) + Refresh Token

    C->>S: MCP Request + Bearer Token
    S->>S: Verify JWT via JWKS
    S-->>C: MCP Response

YNAB OAuth Flow (Server to YNAB)```mermaid

sequenceDiagram
participant C as Claude Client
participant S as MCP Server
participant DB as Database
participant Y as YNAB API
participant U as User Browser

C->>S: Call YNAB Tool (e.g., list_budgets)
S->>S: Verify MCP JWT Token
S->>DB: Check for YNAB tokens

alt No YNAB Tokens
    S-->>C: Error: "Visit /api/ynab/authorize"
    C->>U: Show authorization URL
    U->>S: GET /api/ynab/authorize
    S->>S: Generate state token
    S->>DB: Store state for CSRF protection
    S-->>U: Redirect to YNAB OAuth
    U->>Y: Authorize access
    Y-->>U: Redirect to callback with code
    U->>S: GET /api/ynab/callback?code=XXX
    S->>Y: Exchange code for tokens
    Y-->>S: Access + Refresh tokens
    S->>S: Encrypt tokens
    S->>DB: Store encrypted tokens
    S-->>U: Redirect to success page
end

S->>DB: Get YNAB tokens
S->>S: Decrypt tokens

alt Token Expired (2 hours)
    S->>Y: Refresh token
    Y-->>S: New tokens
    S->>DB: Update encrypted tokens
end

S->>Y: API Request
Y-->>S: Budget Data
S-->>C: Tool Response

### Token Lifecycle```mermaid
stateDiagram-v2
    [*] --> NoToken: First Use

    NoToken --> Authorizing: User visits /api/ynab/authorize
    Authorizing --> Valid: OAuth callback success

    Valid --> NeedsRefresh: Token expires (2 hours)
    NeedsRefresh --> Valid: Auto-refresh successful
    NeedsRefresh --> Invalid: Refresh failed

    Invalid --> NoToken: Tokens deleted

    Valid --> [*]: API calls work

Features

  • Full OAuth 2.1 authentication via BetterAuth with PKCE
  • JWT token verification via JWKS endpoint
  • YNAB OAuth integration with automatic token refresh
  • Budget, account, transaction, and category management tools
  • Encrypted token storage (AES-256-GCM)
  • Deployed on Vercel with Neon Postgres

Getting Started

You can either use the public hosted instance or run your own.

  • Hosted instance (easiest): https://ynab-mcp.vercel.app — skip ahead to Connecting Claude.
  • Self-host (full control over your data): follow Prerequisites and Quick Start, then come back here.

Connecting Claude

The wire-up has three accounts/steps, in order:

1. Create an account on the MCP server

Visit https://ynab-mcp.vercel.app (or your self-hosted URL) and click Create Account.

This account is what Claude authenticates against — it is separate from your YNAB login and is only used to identify you to this server. Your email and a password hash are stored; nothing else about you is retained.

2. Add the server to your Claude client

Pick the section that matches your client and follow the snippet:

  • Claude Desktop
  • Claude Code (CLI)
  • Manual OAuth Configuration (other MCP-compatible clients)

On first connection, Claude will open a browser so you can sign in to the MCP server (the account from step 1). After approving the OAuth consent screen, the client receives a token and the connection is live.

3. Authorize YNAB on first tool call

The MCP server still needs permission to talk to YNAB on your behalf. You have two options:

  • Recommended: Sign in at https://ynab-mcp.vercel.app (same account as step 1) and click Connect YNAB Account. You'll be redirected to YNAB, approve access, and you're done.
  • Or: Ask Claude to do anything YNAB-related (e.g. "list my YNAB budgets"). The first call returns a one-time authorization URL — open it, approve on YNAB, and retry the request.

YNAB tokens are encrypted (AES-256-GCM) before being stored and are automatically refreshed when they expire (every 2 hours).

You can check the connection at any time by asking Claude: "Check my YNAB connection status." (uses the ynab_connection_status tool).

Example Prompts

Once connected, try:

  • "List my YNAB budgets."
  • "What's my checking account balance right now?"
  • "Show me this month's transactions over $50 in the 'Groceries' category."
  • "Add a $42.18 transaction at Costco from my credit card, category Groceries, dated yesterday."
  • "Here's my latest bank statement (PDF attached). Find any transactions missing from YNAB and add them, and flag any that look like duplicates."
  • "How much do I have left to spend on Dining Out this month?"
  • "Increase my Emergency Fund category budget by $200 this month."

The bank-statement workflow is the headline use case: drop the file into Claude, and it reconciles against YNAB without you typing each line.

Prerequisites

  • Node.js 18+
  • A Neon Postgres database
  • A YNAB OAuth application

Quick Start

1. Clone and Install```bash

git clone <your-repo-url>
cd ynab-mcp
npm install


### 2. Configure Environment

Copy the example environment file and fill in your values:```bash
cp .env.example .env

Required environment variables:```bash

Database (Neon Postgres)

DATABASE_URL=postgres://user:password@host/database?sslmode=require

BetterAuth

BETTER_AUTH_SECRET=<generate-a-secure-secret>
BETTER_AUTH_URL=http://localhost:3000

YNAB OAuth

YNAB_CLIENT_ID=<your-ynab-client-id>
YNAB_CLIENT_SECRET=<your-ynab-client-secret>
YNAB_REDIRECT_URI=http://localhost:3000/api/ynab/callback


### 3. Set Up Database

Push the schema to your Neon database:```bash
npm run db:push

4. Run Development Server```bash

npm run dev


The server will be available at `http://localhost:3000`.

## YNAB OAuth Setup

1. Go to YNAB Developer Settings
2. Click &quot;New OAuth Application&quot;
3. Fill in the application details:
   - **Application Name**: Your app name
   - **Redirect URI(s)**: `http://localhost:3000/api/ynab/callback` (development) or your production URL
4. Copy the Client ID and Client Secret to your `.env` file

## Deployment

### Deploy to Vercel

1. Push your repository to GitHub
2. Import the project in Vercel
3. Configure environment variables in Vercel dashboard
4. Deploy

Remember to update:
- `BETTER_AUTH_URL` to your Vercel deployment URL
- `YNAB_REDIRECT_URI` to `https://your-domain.vercel.app/api/ynab/callback`

## MCP Configuration

### Claude Desktop

Add the server to your Claude Desktop configuration (`claude_desktop_config.json`):```json
{
  &quot;mcpServers&quot;: {
    &quot;ynab&quot;: {
      &quot;type&quot;: &quot;http&quot;,
      &quot;url&quot;: &quot;https://ynab-mcp.vercel.app/api/mcp&quot;
    }
  }
}

The server provides a well-known OAuth client (client_id: &quot;ynab&quot;) that supports:
- Localhost callbacks with any port (for MCP's dynamic port allocation)
- Public client authentication (PKCE, no client_secret required)

On first connection, Claude Desktop will open a browser for you to sign in and authorize access.

Claude Code (CLI)

For Claude Code, add to your project's .mcp.json:```json
{
"mcpServers": {
"ynab": {
"type": "http",
"url": "https://ynab-mcp.vercel.app/api/mcp"
}
}
}


### Manual OAuth Configuration (Advanced)

If your MCP client requires explicit OAuth configuration:```json
{
  &quot;mcpServers&quot;: {
    &quot;ynab&quot;: {
      &quot;url&quot;: &quot;https://your-domain.vercel.app/api/mcp&quot;,
      &quot;transport&quot;: {
        &quot;type&quot;: &quot;http&quot;
      },
      &quot;auth&quot;: {
        &quot;type&quot;: &quot;oauth2&quot;,
        &quot;client_id&quot;: &quot;ynab&quot;,
        &quot;discoveryUrl&quot;: &quot;https://your-domain.vercel.app/.well-known/oauth-authorization-server&quot;
      }
    }
  }
}

Available Tools

Connection Status

  • ynab_connection_status - Check YNAB connection and token validity

Budget Management

  • ynab_list_budgets - List all budgets
  • ynab_get_budget - Get budget details by ID
  • ynab_get_budget_settings - Get budget settings

Account Management

  • ynab_list_accounts - List all accounts in a budget
  • ynab_get_account - Get account details

Transaction Management

  • ynab_list_transactions - List transactions with filters
  • ynab_get_transaction - Get transaction details
  • ynab_create_transaction - Create a new transaction
  • ynab_update_transaction - Update existing transaction
  • ynab_delete_transaction - Delete a transaction

Scheduled Transaction Management

  • ynab_list_scheduled_transactions - List scheduled (recurring/upcoming) transactions
  • ynab_get_scheduled_transaction - Get scheduled transaction details
  • ynab_create_scheduled_transaction - Create a new scheduled transaction
  • ynab_update_scheduled_transaction - Update existing scheduled transaction
  • ynab_delete_scheduled_transaction - Delete a scheduled transaction

Category Management

  • ynab_list_categories - List all categories
  • ynab_get_category - Get category details
  • ynab_get_category_month - Get category details for a specific month
  • ynab_update_category_budget - Update budgeted amount for a category

Month Management

  • ynab_list_months - List budget months
  • ynab_get_month - Get budget month details

Tech Stack

Component Technology
Framework Next.js 16 (App Router)
Language TypeScript 5.7+
Auth BetterAuth + OAuth Provider
Database Neon Postgres + Drizzle ORM
MCP @modelcontextprotocol/sdk
YNAB Official YNAB SDK
Deployment Vercel

Security

Encryption

  • YNAB tokens encrypted at rest (AES-256-GCM)
  • PBKDF2 key derivation (100,000 iterations)

OAuth Security

  • MCP OAuth: PKCE required (S256), JWT tokens verified via JWKS
  • YNAB OAuth: State parameter for CSRF protection, encrypted token storage

API Security

  • Rate limiting on auth endpoints
  • User isolation (users only access their own data)
  • Sensitive data redaction in logs

Development

Scripts```bash

npm run dev # Start development server
npm run build # Build for production
npm run start # Start production server
npm run lint # Run Biome linter
npm run format # Format code with Biome
npm run db:generate # Generate Drizzle migrations
npm run db:migrate # Run Drizzle migrations
npm run db:push # Push schema to database
npm run db:studio # Open Drizzle Studio


### Project Structure```
src/
├── app/
│   ├── api/
│   │   ├── auth/[...all]/     # BetterAuth routes
│   │   ├── mcp/               # MCP handler
│   │   └── ynab/              # YNAB OAuth routes
│   └── .well-known/           # OAuth discovery endpoints
├── db/
│   ├── index.ts               # Database client
│   └── schema.ts              # Drizzle schema
└── lib/
    ├── auth.ts                # BetterAuth configuration
    ├── mcp/
    │   ├── helpers.ts         # MCP helper functions
    │   └── tools/             # YNAB tool implementations
    │       ├── accounts.ts
    │       ├── budgets.ts
    │       ├── categories.ts
    │       ├── months.ts
    │       ├── status.ts
    │       └── transactions.ts
    └── ynab/
        ├── client.ts          # YNAB API client
        ├── oauth.ts           # YNAB OAuth flow
        ├── state.ts           # OAuth state management
        └── tokens.ts          # Token management

License

GPL-3.0 - See LICENSE for details.

常见问题

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

资料没有给出安装命令,请到官方仓库或文档按说明接入;这类条目多数是生态应用,或尚未发布可安装包。

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

它的传输方式未标注,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

Ynab MCP D9a50b0a 收费吗?

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

Ynab MCP D9a50b0a 需要 API Key 吗?

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

Ynab MCP D9a50b0a 支持哪些客户端?

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

Ynab MCP D9a50b0a 能提供哪些能力?

资料显示能力标签包括 财务管理、TypeScript、Claude。具体工具清单以官方文档为准。

热门专题

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

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