Monarch Money MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Monarch Money MCP Server
Open-source MCP server that connects AI assistants to your Monarch Money financial data.
A TypeScript Model Context Protocol server that gives Claude, GPTs, and other AI assistants real-time access to your accounts, transactions, budgets, net worth, and more -- plus AI-powered analysis tools for spending breakdowns, anomaly detection, cash flow forecasting, subscription tracking, and financial health scoring.
Features
20+ tools covering accounts, transactions, budgets, cash flow, categories, institutions, recurring payments, and net worth
AI-powered analysis -- spending breakdowns, anomaly detection, cash flow forecasting, subscription tracking, trend detection, and a composite financial health score
Dual transport -- stdio for Claude Desktop / Claude Code and HTTP (Streamable HTTP) for Claude Custom Connectors and remote clients
OAuth 2.1 with PKCE for secure remote access, including Dynamic Client Registration (RFC 7591) and Authorization Server Metadata (RFC 8414)
MCP Resources -- structured
finance://URIs for direct data accessMCP Prompts -- five canned analysis templates (monthly review, budget check, spending audit, net worth update, subscription audit)
Built with Bun, Hono, TypeScript, and the official MCP SDK
Related MCP server: CashChat MCP Server
Quick Start
Prerequisites
Requirement | Version | Link |
Bun | >= 1.0 | |
Monarch Money account | -- |
Installation
git clone https://github.com/CesarBenavides777/cesar-money-mcp.git
cd cesar-money-mcp
cp .env.example .env # Edit with your Monarch Money credentials
bun installClaude Desktop / Claude Code (stdio)
Add the server to your claude_desktop_config.json:
{
"mcpServers": {
"monarch-money": {
"command": "bun",
"args": ["src/index.ts", "--transport", "stdio"],
"cwd": "/absolute/path/to/monarch-money-mcp",
"env": {
"MONARCH_EMAIL": "you@example.com",
"MONARCH_PASSWORD": "your-password",
"MONARCH_MFA_SECRET": "your-totp-secret"
}
}
}
}Restart Claude Desktop. The Monarch Money tools will appear in the tool picker.
Remote / HTTP Mode
Start the server on port 3200:
bun start:http
# Monarch Money MCP server listening on http://localhost:3200Verify it is running:
curl http://localhost:3200/health
# {"status":"ok","server":"monarch-money-mcp","version":"0.1.0-alpha.1"}Send MCP requests to POST /mcp. The server will return a Mcp-Session-Id header for session continuity.
Available Tools
Data Tools
Tool | Description |
| List all linked financial accounts with balances, types, and institution details |
| Get balance history for a specific account over a date range |
| Retrieve paginated transactions with filters (date, category, account) |
| Search transactions by merchant name or description text |
| Get budget data with planned amounts, actual spending, and remaining balances |
| Detailed cash flow with category-level income and expense breakdowns |
| High-level income vs. expenses totals and net savings/deficit |
| All recurring transactions: subscriptions, bills, and regular payments |
| All transaction categories with IDs and types (income vs. expense) |
| Hierarchical category groups (e.g., "Food & Drink" containing "Groceries") |
| Linked financial institutions with connection status and sync info |
| Current net worth snapshot: total assets, liabilities, and net worth |
| Net worth time series for charting growth and tracking progress |
Analysis Tools
Tool | Description |
| Category breakdowns, top merchants, daily averages, period-over-period comparison |
| Unusually large purchases, potential duplicates, unfamiliar merchants, outlier detection |
| Project future balances at 30/60/90-day horizons based on historical patterns |
| Active subscriptions, price changes, total monthly/annual costs, unused service detection |
| Multi-month spending trends by category with direction and magnitude |
| Composite 0-100 score based on savings rate, debt ratio, emergency fund, budget adherence, and more |
MCP Resources
Read-only data surfaces accessible via finance:// URIs.
Resource | URI | Description |
Accounts |
| All linked accounts with current balances |
Net Worth |
| Net worth snapshot with asset/liability breakdown and history |
Current Budget |
| Current month budget with planned vs. actual |
Subscriptions |
| All recurring payments and subscription data |
MCP Prompts
Pre-built analysis templates that chain multiple tools into a structured report.
Prompt | Description |
| Comprehensive monthly review: accounts, cash flow, spending, anomalies, health score |
| Budget adherence check with over/under alerts and pace projection |
| Deep spending audit with trends, subscriptions, anomalies, and savings opportunities |
| Net worth tracking with asset allocation, debt status, and growth trajectory |
| Recurring payment review with price changes, duplicates, and cost optimization |
Deployment
Docker
docker build -t monarch-money-mcp .
docker run -p 3200:3200 \
-e MONARCH_EMAIL="you@example.com" \
-e MONARCH_PASSWORD="your-password" \
-e MONARCH_MFA_SECRET="your-totp-secret" \
-e TRANSPORT=http \
monarch-money-mcpFly.io
The repository includes a fly.toml pre-configured for Fly.io. Deploy with:
fly launch # First time -- creates the app
fly secrets set \
MONARCH_EMAIL="you@example.com" \
MONARCH_PASSWORD="your-password" \
MONARCH_MFA_SECRET="your-totp-secret"
fly deployThe Fly config uses a shared-cpu-1x VM with 256 MB memory, auto-stop/start, and a persistent volume mounted at /data for the SQLite token store.
Live deployment: https://monarch-money-mcp.fly.dev/
Configuration
All configuration is via environment variables. Copy .env.example to .env and edit.
Variable | Required | Default | Description |
| Yes | -- | Your Monarch Money email |
| Yes | -- | Your Monarch Money password |
| No | -- | TOTP secret for MFA-enabled accounts |
| No |
| HTTP server port |
| No |
| Transport mode: |
| No | -- | OAuth client ID (HTTP mode only) |
| No | -- | OAuth client secret (HTTP mode only) |
| No |
| Comma-separated allowed origins |
| No |
| Maximum requests per minute per IP |
| No |
| Logging verbosity |
Architecture
monarch-money-mcp/
├── src/
│ ├── index.ts # Entry point -- stdio or HTTP startup
│ ├── config.ts # Environment and CLI config loading
│ ├── monarch/
│ │ └── client.ts # Singleton Monarch Money API client
│ ├── mcp/
│ │ ├── server.ts # MCP server factory (registers all tools/resources/prompts)
│ │ └── transport.ts # HTTP transport bridge for Hono
│ ├── tools/
│ │ ├── index.ts # Barrel re-exports for tool registration
│ │ ├── accounts.ts # get_accounts, get_account_history
│ │ ├── transactions.ts # get_transactions, search_transactions
│ │ ├── budgets.ts # get_budgets
│ │ ├── cashflow.ts # get_cashflow, get_cashflow_summary
│ │ ├── recurring.ts # get_recurring_transactions
│ │ ├── categories.ts # get_categories, get_category_groups
│ │ ├── institutions.ts # get_institutions
│ │ ├── insights.ts # get_net_worth, get_net_worth_history
│ │ ├── analysis.ts # Analysis tool wrappers
│ │ ├── resources.ts # MCP resource definitions
│ │ └── prompts.ts # MCP prompt templates
│ ├── analysis/
│ │ ├── spending.ts # Spending breakdowns
│ │ ├── anomalies.ts # Anomaly detection
│ │ ├── forecasting.ts # Cash flow forecasting
│ │ ├── subscriptions.ts # Subscription analysis
│ │ ├── trends.ts # Trend detection
│ │ ├── health.ts # Financial health scoring
│ │ └── index.ts # Barrel exports
│ ├── oauth/
│ │ ├── routes.ts # OAuth endpoints (metadata, register, authorize, token)
│ │ ├── provider.ts # Monarch credential validation
│ │ └── store.ts # SQLite-backed token/client store
│ └── middleware/
│ ├── auth.ts # Bearer token validation
│ ├── rate-limit.ts # Per-IP sliding-window rate limiter
│ └── audit.ts # Structured JSON audit logging
├── Dockerfile # Production Docker image (oven/bun)
├── fly.toml # Fly.io deployment config
├── tsconfig.json # TypeScript configuration
├── package.json # Dependencies and scripts
└── .env.example # Environment variable templateThe server cleanly separates concerns:
src/monarch/-- API client singleton with session caching, auto-retry, and response cachingsrc/tools/-- Each file registers tools viaregisterXxxTools(server). All tools follow the same error-handling pattern.src/analysis/-- Pure functions with no MCP or API dependencies. Easy to unit test.src/oauth/-- Full OAuth 2.1 authorization code flow with PKCE, dynamic client registration, and SQLite persistence.src/middleware/-- Hono middleware for auth, rate limiting, and audit logging.
Contributing
Contributions are welcome. To get started:
Fork the repository
Create a feature branch:
git checkout -b feat/my-featureInstall dependencies:
bun installMake your changes
Run type checks:
bun check-typesRun tests:
bun testSubmit a pull request
Please keep PRs focused on a single concern and include tests for new functionality.
License
This project is licensed under the MIT License.
Connector Support
This server works with multiple AI platforms:
Claude Desktop (stdio)
Use the claude_desktop_config.json configuration shown in Quick Start. The server communicates over stdin/stdout with no network required.
Claude Custom Connectors (HTTP + OAuth)
Run in HTTP mode and point a Claude Custom Connector at your deployment URL. The server implements:
GET /.well-known/oauth-authorization-server-- RFC 8414 metadata discoveryPOST /oauth/register-- RFC 7591 dynamic client registrationGET/POST /oauth/authorize-- Authorization endpoint with PKCEPOST /oauth/token-- Token endpoint (authorization_code + refresh_token grants)POST /mcp-- Streamable HTTP MCP endpoint
OpenAI Custom GPTs
The /api/v1/ REST endpoints can be consumed by OpenAI Custom GPTs or any HTTP client. Use the health endpoint at GET /api/v1/health to verify connectivity.
Other MCP Clients
Any MCP-compatible client can connect via either the stdio or HTTP transport. The server advertises its full tool, resource, and prompt catalog through standard MCP discovery.
Roadmap
Native macOS app with SwiftUI -- a paid desktop client with a polished UI for a personal finance dashboard powered by this server
Widget support for iOS and macOS (account balances, budget status, net worth at a glance)
MCP registry publishing (Smithery, Glama)
Additional data sources beyond Monarch Money
Acknowledgments
Monarch Money for the financial data platform
Model Context Protocol by Anthropic
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Personal finance, bank account, and shared memory connector for Claude, ChatGPT, Gemini Spark & more
Ask your AI about your own accounts, debts, budgets and goals. OAuth sign-in, read-only by default.
Read-only access to your own bank, card and brokerage accounts for Claude, ChatGPT and other AI agents: balances, transactions, spending, subscriptions, cashflow and investment holdings. It can never move money.
Personal finance for AI agents — onboard, import statements, categorize & budget over MCP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to access and analyze MonarchMoney personal finance data through natural language queries. Provides comprehensive financial insights including account balances, transaction analysis, budget tracking, and spending patterns with enterprise-grade security.11MIT
- AlicenseAqualityDmaintenanceConnects CashChat financial data to AI assistants, enabling users to manage transactions, view spending summaries, and track category breakdowns through natural language. It supports both local stdio and remote URL-based connections with secure OAuth 2.0 authentication.8MIT
- AlicenseBqualityCmaintenanceComprehensive Monarch Money integration with read and write support for accounts, transactions, budgets, cashflow, credit history, and more. Secure browser-based auth with tokens stored in the OS keychain. Installs in one click via .mcpb for Claude Desktop.25127 PyPI13MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that enables AI assistants to interact with your Monarch Money personal finance data. Manage accounts, transactions, budgets, and analyze your finances programmatically.MIT