npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@juancsanchez/ynab-mcp

v1.0.0

Published

MCP server for YNAB - transaction validation and budget recommendations

Downloads

141

Readme

YNAB MCP Server

MCP server for YNAB. Use it from Claude Desktop to validate transactions against bank statements and manage budget recommendations.

Setup

1. Get your YNAB Personal Access Token

Go to YNAB Developer Settings → "New Token".

2. Build

npm install
npm run build

3. Configure Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "ynab": {
      "command": "node",
      "args": ["/Users/juan/Documents/ScriptsLocal/ynab-mcp/dist/index.js"],
      "env": {
        "YNAB_ACCESS_TOKEN": "your_token_here"
      }
    }
  }
}

Restart Claude Desktop. You should see the YNAB tools available.


Available Tools

Budget & Accounts

| Tool | Description | |---|---| | list_budgets | Lists all budgets with their IDs | | get_budget_summary | Income / budgeted / activity for a month | | list_accounts | Accounts with current balances |

Transactions

| Tool | Description | |---|---| | get_transactions | Fetch transactions (by account, date, or type) | | create_transaction | Create a new transaction | | update_transaction | Update an existing transaction | | approve_transactions | Bulk-approve a list of transaction IDs | | flag_transaction | Set/clear flag color on a transaction |

Categories

| Tool | Description | |---|---| | get_categories | All categories with budgeted/activity/balance for a month | | get_category | Single category detail | | update_category_budget | Change the budgeted amount for a category | | get_overspent_categories | Categories with negative balance |

Payees

| Tool | Description | |---|---| | get_payees | List payees (with optional name search) |

Reconciliation (Bank Statement Validation)

| Tool | Description | |---|---| | reconcile_transactions | Compare bank statement entries vs YNAB — finds matched, mismatched, missing | | import_bank_transactions | Create YNAB transactions from bank statement entries missing in YNAB |

Budget Recommendations

| Tool | Description | |---|---| | analyze_spending_trends | Analyzes N months of history and returns recommendations | | get_monthly_spending_summary | High-level income vs spending per month | | get_uncategorized_transactions | Unapproved/uncategorized transactions needing attention |


Usage Examples

Validate a bank statement

Ask Claude:

"Compare these transactions from my bank statement against my YNAB checking account for May:

  • 2025-05-01, -50.00, Supermarket
  • 2025-05-03, -120.00, Electric Company
  • 2025-05-05, 1500.00, Employer Payroll"

Claude will call reconcile_transactions and return which are matched, which are missing, and any discrepancies.

Budget recommendations

"Analyze my last 3 months of spending and recommend budget adjustments."

Claude will call analyze_spending_trends and suggest specific category budget changes.

Review unapproved transactions

"Show me all unapproved transactions this month and help me categorize them."

Claude will call get_uncategorized_transactions and help you bulk-update categories.


Development

npm run dev        # watch mode
npm run inspector  # open MCP inspector UI for testing