Skip to main content
Glama
Monarch MCP

Monarch MCP

by frapbod

Monarch MCP

A small TypeScript MCP server for Monarch Money. Its TypeScript Monarch client is pinned to a tested fork so upstream GraphQL changes can be fixed and verified without waiting for an npm release.

The server uses the stable MCP TypeScript SDK v2 and serves both the modern 2026-07-28 protocol and older MCP clients over stdio. Every successful call returns concise text plus a schema-declared structuredContent envelope; clients read the envelope for the data rather than parsing the text. Transaction pagination exposes total, returned, and next_offset; compact records always keep their IDs.

Run

Node 22 is pinned in .node-version and versions.env.

npm ci
npm run build
MONARCH_EMAIL='you@example.com' \
MONARCH_PASSWORD='...' \
MONARCH_MFA_SECRET='BASE32_TOTP_SECRET' \
node dist/server.js

MONARCH_TOKEN can replace the three credential variables. Optional settings:

  • MONARCH_SESSION_DIR — token-cache directory; defaults to ~/.monarch-mcp

  • MONARCH_TIMEOUT_SECONDS — upstream request timeout; defaults to 30

  • MONARCH_MCP_EVENT_LOG — optional JSONL path for privacy-safe tool outcome and latency events

  • MONARCH_CHANGE_DIR — durable change journal; defaults to MONARCH_SESSION_DIR/changes

The image is built with make image; its stdio entrypoint is the server.

Related MCP server: Monarch Money MCP Server

Tool surface

Accounts and institutions

  • get_accounts — IDs, Monarch-reported balances, types, institutions, and sync metadata

  • get_account_holdings — investment positions for an account

  • get_account_history — historical balance snapshots for an account

  • get_recent_account_balances — balance arrays across accounts from a date

  • get_net_worth_history — aggregate balance history

  • get_account_snapshots_by_type — monthly or yearly balances by account type

  • get_account_type_options — valid types/subtypes for manual accounts

  • get_institutions — linked credentials and connection state

  • get_subscription — plan and entitlement metadata

  • get_refresh_status — whether Monarch's refresh operation (when it names none, any account sync; with account_ids, those accounts' sync) is still running

  • refresh_accounts — start a sync and return at once; wait=true blocks until the sync is done (up to timeout_seconds, default 300) and re-reads the accounts

  • create_manual_account, update_account, delete_account

  • upload_account_balance_history — import CSV balances for a manual account

Account reads and refresh results include per-account available_balance_supported and available_balance. The latter comes from Monarch's read-only displayBalancePreview(useAvailableBalance: true, invertSyncedBalance: false), in the existing accounts query. Unsupported accounts and missing values return null; current balance is never substituted. use_available_balance reports the account's display preference, which this read does not change or depend on.

The shared balance_context identifies the source as monarch, pending_transactions_included as unknown, and bank_freshness as unverified. Version 0.6.0 removes the incorrect global available_balance_provided: false; capability and values belong to each account. get_transactions exposes pending on each item; pending debits can explain a discrepancy, but subtracting them automatically could double-count amounts already reflected by a provider.

In 0.5.0, compact account fields are renamed: balance → current_balance, connection_status → institution_status, and last_updated_at → monarch_last_updated_at. These retain the original upstream values. Institution status is institution-wide, not an account connection verdict. detail=full retains upstream fields with the same balance_context alongside the accounts.

refresh_accounts and get_refresh_status identify completion_scope as monarch_sync. Even complete: true does not verify newer bank data: Monarch may finish a sync with unchanged balances. Neither Monarch's displayed update time nor the MCP's meta.retrieved_at proves bank freshness. See Monarch's refresh explanation and pending-transaction guidance.

Without account_ids, refresh_accounts does what Monarch's web "Refresh all" does: one forceRefreshAllAccounts request, which returns a refresh operation. refresh_operation reports its state and each account's state (for example SKIPPED, REQUESTING_DATA, COMPLETED, timed_out); wait=true and get_refresh_status (with operation_id, or the latest operation when it is omitted) follow that operation. Monarch refuses a new refresh shortly after another one with TOO_MANY_REQUESTS ("A force refresh has been recently performed"); the tool then lists the refusal in refused and reports Monarch's latest operation, if it still names one, instead of failing. Monarch names its latest operation only for a few minutes; when it names none, both tools answer from Monarch's household hasAccountsSyncing flag (accounts_syncing), the flag the web client polls until false.

With account_ids, the tool sends Monarch's per-account forceRefreshAccount for each selected account whose canBeForceRefreshed flag allows it. Monarch often refuses these with TOO_MANY_REQUESTS; each refusal is listed in refused with its account ID, while accepted requests appear in requested_account_ids. Waiting and status for account_ids use the per-account hasSyncInProgress flags, which never clear for some accounts, so a wait that includes such an account ends only at its timeout. Network failures and other HTTP errors may have reached Monarch and stay errors, so a mutation is never replayed after an unknown outcome. Status polling uses the read client independently of the mutation, so reauthentication cannot resubmit a refresh or reset the remaining polling budget.

Transactions

  • get_transactions — complete filters, including review state, and explicit offset pagination

  • get_transactions_summary — aggregate totals, averages, counts, and date bounds

  • get_transaction, get_transaction_splits

  • get_transaction_categories, get_transaction_category_groups

  • get_transaction_tags

  • create_transaction, update_transaction, bulk_update_transactions, delete_transaction

  • set_transaction_splits, set_transaction_tags

  • create_transaction_tag, delete_transaction_tag

  • create_transaction_category, delete_transaction_category

  • get_transaction_rules, preview_transaction_rule

  • create_transaction_rule, update_transaction_rule, delete_transaction_rule

Planning

  • get_budgets, get_goals, set_budget_amount

  • get_cashflow, get_cashflow_summary

  • get_recurring_transactions, update_recurring_merchant

Change history

  • get_change_history — inspect change IDs, affected counts, status, and saved inverse operations

  • undo_change — idempotently reverse a journaled change

History lists preserve data.changes and add data.offset, data.next_offset, and data.has_more. Start with offset=0 (the default), then pass next_offset until it is null and has_more is false. limit defaults to 20 and accepts 1–100. Empty or past-end pages return an empty list, null next_offset, and false has_more. Records sort newest first, with descending change ID breaking timestamp ties. Pagination is not a snapshot: new journal entries between calls can shift offsets. Supplying change_id still returns only data.change, including saved recovery operations, and ignores pagination.

Transaction edits, bulk review work, recurring corrections, and rule changes are journaled before the upstream write as atomic mode-0600 records. The local chg_<UUID> identifies that private record; it is not a Monarch object ID. Completed results include their change_id and affected count, and ambiguous responses retain an uncertain journal entry. Before undo, state guards detect newer edits and require force=true rather than silently overwriting them. Undo verifies the restored state. There is no redo: to reapply an undone change, make the edit again with the normal update tool. Retroactive rule application snapshots matching transactions before the rule runs, including their tags and splits. If Monarch's reported applied count differs from the previewed set, the change is explicitly marked as requiring manual review rather than claiming an unsafe automatic undo.

get_transactions provides the client's paged and all-transactions behavior without an unbounded MCP result. delete_transaction_category provides the client's single and batch-helper behavior one exact result at a time. Authentication, session, and timeout methods remain server internals.

Mutation tools are not hidden behind a server-specific flag. Their MCP annotations accurately distinguish reads, updates, creates, and deletes so the host can apply its normal interaction policy without making the toolset less useful.

Account refreshes, bulk transaction updates, retroactive rules, and undo emit standard MCP progress notifications. Standard cancellation stops work before a write when possible, bounds already-started transaction writes to the existing concurrency limit, and records the exact attempted set. If Monarch has already accepted a retroactive rule, the server finishes its recovery journal before stopping so a disconnected caller cannot leave an untracked change.

Development

make check

The check runs formatting, lint, strict type checking, exact handler-contract tests for every tool, and a production build. A separate self-cleaning live suite validates the same surface against Monarch because CI has no account credentials.

Status

Monarch does not currently provide a supported public API for this integration. The MCP is therefore an intentionally replaceable adapter around Monarch's web API. It is not affiliated with or endorsed by Monarch Money.

License

MIT

Available Tools

33 tools
create_manual_accountCreate manual accountC

Create a manual Monarch account.

Inputs: name (required), account_type (required), account_subtype (required), balance, +1 more. Returns: data, meta

create_transactionCreate transactionC

Create a manual transaction in an account.

Inputs: date (required), amount (required), account_id (required), category_id (required), +3 more. Returns: data, meta

create_transaction_categoryCreate transaction categoryC

Create a category in an existing category group.

Inputs: name (required), group_id (required), icon, rollover_enabled, +1 more. Returns: data, meta

create_transaction_tagCreate transaction tagC

Create a reusable transaction tag.

Inputs: name (required), color (required). Returns: data, meta

delete_accountDelete accountA
DestructiveIdempotent

Delete a Monarch account by ID.

Inputs: account_id (required). Returns: data, meta

delete_transactionDelete transactionB
DestructiveIdempotent

Delete a transaction by ID.

Inputs: transaction_id (required). Returns: data, meta

delete_transaction_categoryDelete transaction categoryA
DestructiveIdempotent

Delete a category, optionally moving its transactions to another category first.

Inputs: category_id (required), move_to_category_id. Returns: data, meta

get_account_historyGet account balance historyB
Read-onlyIdempotent

Get the complete available daily balance history for one account.

Inputs: account_id (required). Returns: data, meta

get_account_holdingsGet account holdingsA
Read-onlyIdempotent

Get securities and positions for one investment account.

Inputs: account_id (required). Returns: data, meta

get_accountsList Monarch accountsA
Read-onlyIdempotent

List bank, credit, investment, loan, and manual accounts. Compact output always includes account IDs, balances, institutions, and freshness.

Inputs: detail. Returns: data, meta

get_account_snapshots_by_typeGet balances by account typeB
Read-onlyIdempotent

Get monthly or yearly balance snapshots grouped by account type.

Inputs: timeframe (required), start_date (required). Returns: data, meta

get_account_type_optionsGet account type optionsA
Read-onlyIdempotent

List valid Monarch account types and subtypes for manual-account operations.

Inputs: no named parameters. Returns: data, meta

get_budgetsGet budgetsA
Read-onlyIdempotent

Get planned, actual, remaining, and rollover amounts by category and month. Omit both dates for the previous through next month.

Inputs: end_date, start_date. Returns: data, meta

get_cashflowGet cash flowA
Read-onlyIdempotent

Get income and expense aggregates grouped by category, category group, and merchant. Omit both dates for the current month.

Inputs: end_date, start_date. Returns: data, meta

get_cashflow_summaryGet cash flow summaryA
Read-onlyIdempotent

Get exact aggregate income, expenses, savings, and savings rate for a date range. Omit both dates for the current month.

Inputs: end_date, start_date. Returns: data, meta

get_institutionsGet linked institutionsA
Read-onlyIdempotent

List linked institutions, credentials, accounts, and connection state.

Inputs: no named parameters. Returns: data, meta

get_net_worth_historyGet net worth historyA
Read-onlyIdempotent

Get daily aggregate balances across accounts, optionally filtered by account type.

Inputs: end_date, start_date, account_type. Returns: data, meta

get_recent_account_balancesGet recent account balancesA
Read-onlyIdempotent

Get daily balance arrays for every account starting on a date.

Inputs: start_date. Returns: data, meta

get_recurring_transactionsGet recurring transactionsA
Read-onlyIdempotent

Get upcoming recurring bills, subscriptions, transfers, and income. Omit both dates for the current month.

Inputs: end_date, start_date. Returns: data, meta

get_refresh_statusCheck account refresh statusB
Read-onlyIdempotent

Check whether a prior institution refresh has completed.

Inputs: account_ids. Returns: data, meta

get_subscriptionGet Monarch subscriptionA
Read-onlyIdempotent

Get the Monarch plan, entitlement, trial, and payment-source metadata.

Inputs: no named parameters. Returns: data, meta

get_transactionGet transactionA
Read-onlyIdempotent

Get full details for one transaction.

Inputs: transaction_id (required). Returns: data, meta

get_transaction_categoriesList transaction categoriesA
Read-onlyIdempotent

List all transaction categories with IDs and category groups.

Inputs: no named parameters. Returns: data, meta

get_transaction_category_groupsList category groupsA
Read-onlyIdempotent

List all transaction category groups with IDs.

Inputs: no named parameters. Returns: data, meta

get_transactionsSearch transactionsB
Read-onlyIdempotent

Search and filter transactions with exact pagination. Compact results retain transaction, account, category, merchant, and tag IDs.

Inputs: limit, detail, offset, search, +12 more. Returns: data, meta

get_transaction_splitsGet transaction splitsB
Read-onlyIdempotent

Get the split legs for one transaction.

Inputs: transaction_id (required). Returns: data, meta

get_transaction_tagsList transaction tagsA
Read-onlyIdempotent

List all transaction tags with IDs, names, colors, and usage counts.

Inputs: no named parameters. Returns: data, meta

refresh_accountsRefresh linked accountsA
Idempotent

Ask linked institutions for current balances and transactions, wait for completion by default, then return fresh account metadata. Omit account_ids to refresh every account.

Inputs: wait, account_ids, poll_seconds, timeout_seconds. Returns: data, meta

set_budget_amountSet budget amountA
Idempotent

Set a monthly budget for exactly one category or category group. Use amount 0 to clear it.

Inputs: amount (required), start_date, category_id, apply_to_future, +1 more. Returns: data, meta

set_transaction_splitsSet transaction splitsA
Idempotent

Replace all split legs on a transaction. Amounts must sum to the parent amount; pass an empty splits array to remove splits.

Inputs: splits (required), transaction_id (required). Returns: data, meta

set_transaction_tagsSet transaction tagsA
Idempotent

Replace all tags on a transaction. Pass an empty tag_ids array to remove all tags.

Inputs: tag_ids (required), transaction_id (required). Returns: data, meta

update_accountUpdate accountA
Idempotent

Update the supplied fields on an existing Monarch account.

Inputs: account_id (required), name, balance, account_type, +4 more. Returns: data, meta

update_transactionUpdate transactionA
Idempotent

Update only the supplied transaction fields: category, merchant, goal, amount, date, notes, report visibility, or review state.

Inputs: transaction_id (required), date, notes, amount, +5 more. Returns: data, meta

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 33 tools

    Disambiguation4/5

    Tool purposes are largely distinct with clear separation between account, transaction, and budget resources. However, there is a cluster of balance-history tools (get_recent_account_balances, get_account_history, get_account_snapshots_by_type, get_net_worth_history) that could trip up an agent seeking general balance data despite detailed descriptions.

    Naming Consistency5/5

    All tools use snake_case and consistently follow a verb_noun pattern (get/refresh/create/update/delete/set). Even qualifiers are placed predictably, making the set easy to navigate.

    Tool Count2/5

    33 tools is well above the 25 threshold for an MCP surface, making selection and discovery cumbersome. The server wraps a full finance API, but for agent use it would benefit from consolidation (e.g., generic balance retrieval) and removing metadata endpoints like get_subscription or get_account_type_options as separate tools.

    Completeness4/5

    The lifecycle coverage is strong for accounts and transactions, including splits and tags, plus budgets and cashflow reporting. Minor gaps exist: tags can only be created and assigned, with no delete/update operation, and category updates are missing, creating some dead ends.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP server providing 30 tools to access and manage Monarch Money financial data, including accounts, transactions, budgets, and more, enabling AI assistants to interact with personal finances.
      30
      51 npm
      2
      MIT
    • F
      license
      C
      quality
      D
      maintenance
      Enables interaction with Monarch Money data via MCP tools for accounts, budgets, and transactions.
      6
      4
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides read-only access to Monarch Money financial data, enabling AI assistants to analyze transactions, budgets, and cashflow.
      4
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to manage personal finances through MCP tools for transaction management, spending analytics, and goal tracking.
      1
      -