Skip to main content
Glama

YNAB MCP Server

by chrisguidry

you-need-an-mcp

An MCP server providing LLMs access to a YNAB budget.

Setup

1. Install Dependencies

uv sync

2. Get YNAB Access Token

To use this MCP server, you need a YNAB Personal Access Token:

  1. Log into your YNAB account at https://app.youneedabudget.com
  2. Go to Account Settings (click your email in the top right corner)
  3. Click on Developer Settings in the left sidebar
  4. Click New Token
  5. Enter a token name (e.g., "MCP Server")
  6. Click Generate
  7. Copy the generated token (you won't be able to see it again)

3. Set Environment Variables

export YNAB_ACCESS_TOKEN=your_token_here

Optionally, set a default budget ID to avoid having to specify it in every call:

export YNAB_DEFAULT_BUDGET=your_budget_id_here

4. Run the Server

uv run python server.py

Available Tools

  • list_budgets() - Returns all your YNAB budgets
  • list_accounts(budget_id=None, limit=100, offset=0, include_closed=False) - Returns accounts with pagination and filtering
  • list_categories(budget_id=None, limit=50, offset=0, include_hidden=False) - Returns categories with pagination and filtering
  • list_category_groups(budget_id=None) - Returns category groups with totals (lighter weight overview)

Pagination

The list_accounts and list_categories tools support pagination. Use the offset parameter to get subsequent pages:

  • First page: list_categories(limit=50, offset=0)
  • Second page: list_categories(limit=50, offset=50)
  • Check pagination.has_more to see if there are more results

Security Note

Keep your YNAB access token secure and never commit it to version control. The token provides read access to all your budget data.

-
security - not tested
F
license - not found
-
quality - not tested

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.

An MCP server that provides Large Language Models with access to YNAB (You Need A Budget) budgets, allowing them to fetch budget data including accounts, categories, and category groups.

  1. Setup
    1. Install Dependencies
    2. Get YNAB Access Token
    3. Set Environment Variables
    4. Run the Server
  2. Available Tools
    1. Pagination
  3. Security Note

    Related MCP Servers

    • A
      security
      F
      license
      A
      quality
      An MCP server that allows users to interact with YNAB data, enabling access to account balances, transactions, and the creation of new transactions through the Model Context Protocol.
      Last updated -
      10
      1
      Python
    • -
      security
      F
      license
      -
      quality
      Provides 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 -
      Python
    • A
      security
      A
      license
      A
      quality
      A 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 -
      1
      15
      1
      TypeScript
      MIT License
      • Apple
    • -
      security
      A
      license
      -
      quality
      A 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 -
      Python
      MIT License

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrisguidry/you-need-an-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server