Monarch Money MCP server

Monarch Money MCP server

monarch-mcp•bymartinamps

An MCP server packaged with the monarchmoney SDK that lets AI agents query Monarch Money accounts, transactions, budgets, and cashflow data.

License: MIT•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Provides MCP tools for retrieving all accounts and account holdings and history.
  • •Offers tools to fetch transactions with filters and transaction categories.
  • •Exposes tools for budgets over a date range and cashflow data with filters.
  • •Includes an authentication check tool and authenticates automatically via the MONARCH_TOKEN environment variable.

BEST FOR

  • •Reviewing spending by having an AI agent pull account transactions with date filters.
  • •Analyzing budgets across a chosen date range through an MCP client.
  • •Inspecting brokerage holdings and account history for a specific account.

ABOUT MONARCH-MCP

Monarch Money MCP server is cataloged as an MCP server attributed to martinamps. An MCP server packaged with the monarchmoney SDK that lets AI agents query Monarch Money accounts, transactions, budgets, and cashflow data. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Monarch Money MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the MCP server support filtered transaction queries?

Yes, the get_transactions tool retrieves transactions with filters.

How does the MCP server authenticate?

It automatically authenticates using the MONARCH_TOKEN environment variable.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 007c5506479e · 采集于 2026-11-13 10:45:27 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Monarch Money TypeScript SDK

A TypeScript library for accessing Monarch Money data.

Installation

bun add monarchmoney

or

npm install monarchmoney

Usage

Quick Start with Browser Token

The easiest way to get started is by using a token directly from your browser session:

import MonarchMoney from 'monarchmoney';

// You can get this token from your browser's localStorage or Cookies after logging in
// to Monarch Money on the web
const token = process.env.MONARCH_TOKEN;

// Create a client with the token
const mm = new MonarchMoney(token);

// Now you can use the API without logging in
const accounts = await mm.getAccounts();

Standard Authentication

If you don't have a token, you can log in with your credentials:

import MonarchMoney, { RequireMFAError } from 'monarchmoney';

// Create a new client
const mm = new MonarchMoney();

// Login using environment variables
const email = process.env.MONARCH_USER;
const password = process.env.MONARCH_PASSWORD;

if (!email || !password) {
  throw new Error('MONARCH_USER and MONARCH_PASSWORD environment variables must be set');
}

// Login
try {
  await mm.login({
    email,
    password
  });
} catch (error) {
  if (error instanceof RequireMFAError) {
    // Get MFA code from user
    const mfaCode = process.env.MONARCH_MFA || prompt('Enter MFA code:');
    
    await mm.authenticateWithMFA({
      email,
      password,
      mfaCode
    });
  } else {
    throw error;
  }
}

Using a Saved Session

You can save your session for later use:

// After logging in, save the session
mm.saveSession();

// Later, load the session
const mm = new MonarchMoney();
mm.loadSession();

// Now you can access data without logging in again
const accounts = await mm.getAccounts();

Accessing Data

// Get accounts
const accounts = await mm.getAccounts();
console.log(accounts);

// Get transactions for current month
const today = new Date();
const firstDayOfMonth = new Date(today.getFullYear(), today.getMonth(), 1);
const lastDayOfMonth = new Date(today.getFullYear(), today.getMonth() + 1, 0);

const transactions = await mm.getTransactions({
  limit: 10,
  filters: {
    startDate: firstDayOfMonth.toISOString().split('T')[0],
    endDate: lastDayOfMonth.toISOString().split('T')[0]
  }
});
console.log(transactions);

// Get budgets
const budgets = await mm.getBudgets();
console.log(budgets);

// Get account holdings
const holdings = await mm.getAccountHoldings('account-id-here');
console.log(holdings);

Running the Example

To run the included example, you have two options:

Option 1: Using a Browser Token (Easiest)

# Get the token from your browser after logging in to Monarch Money
# In Chrome: DevTools > Application > Storage > Local Storage > monarchmoney.com > find the auth token
export MONARCH_TOKEN="your-token-from-browser"

# Run the example
bun run example

Option 2: Using Username/Password

# Set your credentials as environment variables
export MONARCH_USER="your.email@example.com"
export MONARCH_PASSWORD="your-password"
# Optional: Set MFA code if required
export MONARCH_MFA="123456"

# Run the example
bun run example

Available Methods

This SDK provides read-only access to Monarch Money data:

  • getAccounts() - Get all accounts
  • getAccountTypeOptions() - Get all account types and subtypes
  • getAccountHoldings(accountId) - Get securities in a brokerage account
  • getAccountHistory(accountId) - Get daily account history
  • getInstitutions() - Get linked institutions
  • getBudgets(startDate, endDate) - Get budgets and actual amounts
  • getSubscriptionDetails() - Get account subscription status
  • getTransactionsSummary() - Get transaction summary data
  • getTransactions(options) - Get transaction data
  • getTransactionCategories() - Get transaction categories
  • getTransactionCategoryGroups() - Get transaction category groups
  • getTransactionDetails(transactionId) - Get details for a transaction
  • getTransactionSplits(transactionId) - Get transaction splits
  • getTransactionTags() - Get transaction tags
  • getCashflow(options) - Get cashflow data
  • getCashflowSummary(options) - Get cashflow summary
  • getRecurringTransactions(startDate, endDate) - Get recurring transactions

MCP Server for AI Agents

This SDK includes a Model Context Protocol (MCP) server that allows AI agents to interact with Monarch Money. The MCP server provides tools for querying accounts, transactions, budgets, and more.

To start the MCP server:

# Set up authentication via environment variables
export MONARCH_TOKEN="your-token-from-browser"

# Start the MCP server
bun run mcp

The MCP server will automatically authenticate using the MONARCH_TOKEN environment variable and provides the following tools:

  • check_authentication - Check if already authenticated
  • get_accounts - Get all accounts
  • get_account_holdings - Get holdings for an account
  • get_account_history - Get history for an account
  • get_transactions - Get transactions with filters
  • get_transaction_categories - Get transaction categories
  • get_budgets - Get budgets for a date range
  • get_cashflow - Get cashflow data with filters

Claude Desktop Configuration

To use this with Claude Desktop, add the following to your Claude Desktop configuration file (located at ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "monarchMoney": {
      "command": "bun",
      "args": ["run", "mcp"],
      "env": {
        "MONARCH_TOKEN": "your-monarch-token-here"
      },
      "cwd": "/path/to/your/monarch-ts"
    }
  }
}

Replace /path/to/your/monarch-ts with the actual path to your project directory and your-monarch-token-here with your Monarch Money token from your browser.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Monarch Money MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/monarch-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics