Skip to main content
Glama
dough-mcp

dough-mcp

by rollecode

Dough MCP server

Version Node TypeScript OAuth MCP

Read and write your Dough finances from Claude.ai and Claude Code. It offers every tool the Dough instance it points at has, because it takes them from that instance. It runs over stdio for Claude Code, or behind an OAuth 2.1 login so it can be added to Claude.ai as a custom connector.

Since Dough 4.4.0 every instance is an MCP server itself at /mcp, and a client that can connect to a remote MCP server with OAuth can use that directly. dough-mcp is for the rest: a local process over stdio, or a separately hosted endpoint.

Dough is a standalone self-hosted budget app with its own ledger (bank-synced or manual). It is not a YNAB frontend: Dough's data is corrected through these tools or Dough's own UI, never in YNAB.

WARNING

Using this server with a paid AI service costs money. Tool definitions and results are billed as input tokens, and an agent can call tools repeatedly on its own. You are responsible for every charge, so set spending limits with your provider. The author accepts no liability for any costs. SeeDISCLAIMER.md.

How it fits together

dough (web app)  ──  /mcp  (the instance's own tools, API-key auth)
                       ▲  HTTPS + Bearer key
dough-mcp  ──  stdio (Claude Code)  ──or──  HTTP + OAuth 2.1 (Claude.ai connector)

The server never sees your database. It passes each tool call to the instance's /mcp with an API key you supply through the environment, so the key stays on your machine and nothing about your ledger is exposed on the internet. Needs Dough 4.4.0 or later.

Related MCP server: LunchMoney MCP Server

Tools

Whatever the instance offers, which is one tool for every part of its API: accounts, transactions and splits, budget and targets, categories, bills, subscriptions, income, savings goals, debts, investments, payees, budget links, settings, Dougie and more. An instance that gains a tool gains it here without a new dough-mcp. Read tools work with any key; write tools need a key minted with --scopes write and return 403 otherwise.

Add to Claude.ai

Settings, Connectors, Add custom connector, and paste the MCP URL of your deployment, for example:

https://dough-mcp.example.com/mcp

Leave client ID and secret blank. The OAuth 2.1 login in front (auth-server.cjs) handles registration and sign-in, and issues the token.

Claude Code

Over HTTP, with the fixed token the login also accepts:

claude mcp add --transport http dough https://dough-mcp.example.com/mcp \
  --header "Authorization: Bearer $(cat ~/.config/dough-mcp/token)" --scope user

Or over stdio, with DOUGH_API_URL and DOUGH_API_KEY set in the environment.

Install

git clone git@github.com:rollecode/dough-mcp.git
cd dough-mcp
npm install && npm run build   # dist/ is committed; rebuild only when changing src/

Configure via environment:

  • DOUGH_API_URL — base URL of the Dough instance, e.g. https://dough.example.com

  • DOUGH_API_KEY — an API key minted in the Dough repo (see below)

Get an API key

In the Dough repo, on the host that owns the database:

npx tsx scripts/create-api-key.ts --name "dough-mcp" --scopes write

The key is printed once. Use --scopes read for a query-only key. See Dough's docs/public-api.md for details.

Available Tools

8 tools
dough_accountsB

All accounts with balances. Set include_closed to also return closed accounts.

Inputs: include_closed.

dough_billsB

Recurring bills with amount and due day of month.

Inputs: no named parameters.

dough_budgetB

The month's budget: income, total budgeted, Ready to Assign, age of money and every active category's budgeted / activity / available.

Inputs: month.

dough_net_worthA

Current net worth by kind (checking, savings, investments, debts) plus the snapshot history.

Inputs: no named parameters.

dough_savings_goalsD

Active savings goals with target and derived saved amount.

Inputs: month.

dough_subscriptionsC

Subscriptions with amount and due day of month.

Inputs: no named parameters.

dough_summaryA

Compact financial snapshot: total balance and this month's income, spending, budgeted and Ready to Assign.

Inputs: month.

dough_transactionsC

Transactions newest first, with optional filters.

Inputs: q, limit, month, category, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool targets a distinct financial data domain (accounts, bills, budget, net worth, savings goals, subscriptions, transactions) with no overlapping purposes. Descriptions clearly differentiate them.

    Naming Consistency5/5

    All tools follow a consistent 'dough_' prefix with a plural noun representing the resource (e.g., dough_accounts, dough_bills). This pattern makes it predictable for an agent.

    Tool Count5/5

    With 8 tools covering core personal finance areas, the count feels well-scoped for a finance data provider. Each tool serves a distinct purpose without redundancy.

    Completeness5/5

    The tool set covers major financial categories: accounts, bills, budget, net worth, savings, subscriptions, and transactions. For a read-only data access server, it offers a comprehensive snapshot without obvious gaps.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides access to personal financial data from Monarch Money, allowing users to retrieve account information, transactions, budgets, goals, and net worth through natural language queries.
      16
      -
    • A
      license
      A
      quality
      B
      maintenance
      An MCP server implementation that provides programmatic access to personal finance data through LunchMoney's API, enabling AI assistants to manage transactions, budgets, categories, and assets.
      59
      934 npm
      115
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for accessing and managing Banktivity personal finance data, enabling account, transaction, and budget operations through natural language.
      3
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server for programmatic read-only access to RiseUp cashflow data, allowing AI assistants to retrieve budget information via natural language.
      7
      1,180 npm
      40
      MIT