# Maple Budget Docs > Maple Budget is a Canadian budgeting app for iPhone, Android and the web. These docs cover the hosted MCP server at `https://api.maplebudget.com/mcp` (Streamable HTTP, OAuth sign-in), API keys, every tool with its parameters, errors, categories and the iPhone Apple Pay automation. Index: https://maplebudget.com/llms.txt ## Contents - [Maple Budget Docs](#overview) (https://maplebudget.com/docs.md) - [Quickstart](#quickstart) (https://maplebudget.com/docs/quickstart.md) - [Maple In ChatGPT](#chatgpt) (https://maplebudget.com/docs/chatgpt.md) - [Connect Claude To Maple Budget](#mcp-quick-setup) (https://maplebudget.com/docs/mcp-quick-setup.md) - [MCP Tool Reference](#mcp-tools) (https://maplebudget.com/docs/mcp-tools.md) - [Authentication](#authentication) (https://maplebudget.com/docs/authentication.md) - [Errors](#errors) (https://maplebudget.com/docs/errors.md) - [Categories](#categories) (https://maplebudget.com/docs/categories.md) - [Apple Pay Automation](#apple-pay-automation) (https://maplebudget.com/docs/apple-pay-automation.md) - [Local Server: Quick Setup](#mcp-local) (https://maplebudget.com/docs/mcp-local.md) - [Local Server: Full Guide](#mcp) (https://maplebudget.com/docs/mcp.md) --- ## Maple Budget Docs > Connect Maple Budget to Claude, ChatGPT and other AI apps with the Maple Budget MCP server. Source: https://maplebudget.com/docs.md - [Quickstart](https://maplebudget.com/docs/quickstart): Connect an AI app in two minutes, then try prompts that work with the real tools. - [Maple In ChatGPT](https://maplebudget.com/docs/chatgpt): Find Maple Budget in ChatGPT, sign in, then ask about your spending or log a purchase. - [Connect Claude](https://maplebudget.com/docs/mcp-quick-setup): Paste one address into Claude, ChatGPT or Claude Code and sign in. No Python, no API key. - [Tool Reference](https://maplebudget.com/docs/mcp-tools): All 91 tools your AI app can use, grouped by area, with their arguments. - [Authentication](https://maplebudget.com/docs/authentication): OAuth sign-in, read only or read and make changes, API keys, and revoking access. - [Errors](https://maplebudget.com/docs/errors): What a failed tool call returns, the messages you will see most, and what to do. - [Categories](https://maplebudget.com/docs/categories): The 30 category ids and names that every transaction, tag and budget uses. - [Apple Pay Automation](https://maplebudget.com/docs/apple-pay-automation): Log every Apple Pay purchase automatically: add the shortcut, create the Wallet automation, pay. With a video of every tap. - [Local Server: Quick Setup](https://maplebudget.com/docs/mcp-local): Run the MCP server on your own computer with an API key. Already have Python? Five minutes. - [Local Server: Full Guide](https://maplebudget.com/docs/mcp): The local server from zero: Python, Claude Desktop, the server file and your key. ### How It Works MCP (the Model Context Protocol) is how AI apps like Claude use outside tools. Maple Budget hosts an MCP server at `https://api.maplebudget.com/mcp`. Your AI app connects to it, sends you to Maple Budget to sign in, and gets a connection limited to what you allowed: read only, or read and make changes. Connections refresh themselves, so you sign in once. Disconnect any app from [Menu → AI Apps](https://app.maplebudget.com/menu/api-keys) in the web app. ### Local Server You can also run the same tools on your own computer: a single Python file that talks to the Maple Budget API with a personal API key. It updates itself when new tools ship. - [mcp-server.py](https://maplebudget.com/mcp-server.py): the latest Maple Budget MCP server - Python packages: `pip3 install mcp requests` ### For AI Agents Every docs page is also plain Markdown: add `.md` to its address, like [/docs/mcp-tools.md](https://maplebudget.com/docs/mcp-tools.md). [llms.txt](https://maplebudget.com/llms.txt) sums up Maple Budget and lists every tool, and [llms-full.txt](https://maplebudget.com/llms-full.txt) has every page in one file. --- ## Quickstart > Connect Claude, ChatGPT or Claude Code to Maple Budget in two minutes, then ask it about your money in plain words. Source: https://maplebudget.com/docs/quickstart.md Maple Budget runs a hosted MCP server, so an AI app can read your budget, add transactions and check your investments for you. There's nothing to install and no API key to copy: you paste one address and sign in. ### 1. Copy The Server Address ```text https://api.maplebudget.com/mcp ``` It speaks MCP over Streamable HTTP and signs you in with OAuth. ### 2. Add It To Your AI App - **Claude** (web, desktop and mobile): open **Settings → Connectors**, choose **Add Custom Connector**, name it Maple Budget and paste the address. - **Claude Code**: run the command below, then run `/mcp` inside Claude Code and pick maple-budget to sign in. - **ChatGPT**: no address needed. [Open Maple Budget in ChatGPT](https://chatgpt.com/plugins/plugin_asdk_app_6aea4d7bb6148191a43fb36f79a8d66b) and select **Connect**. See [Maple In ChatGPT](https://maplebudget.com/docs/chatgpt). - **Anything else**: any MCP client that supports remote servers with OAuth sign-in works the same way. ```bash claude mcp add --transport http maple-budget https://api.maplebudget.com/mcp ``` Step-by-step screens for each app are in [Connect Claude](https://maplebudget.com/docs/mcp-quick-setup). ### 3. Sign In And Choose Access Your app sends you to Maple Budget. Sign in, then pick one: - **Read And Make Changes**: it can see your budget and investments, and add, edit or delete things when you ask. - **Read Only**: it can see everything but can't change anything. It only gets the tools that read. You're sent back to your app and the connection is ready. It refreshes itself, so you sign in once. See [Authentication](https://maplebudget.com/docs/authentication) for how this works. ### 4. Ask Something Start a new chat with Maple Budget turned on and try one of these. Each one works with the tools listed next to it. | Ask | Tools it uses | | --- | --- | | "What did I spend on eating out this month?" | `get_categorical_overview` | | "How does my spending this month compare to last month?" | `get_monthly_summary` | | "Which categories am I over budget on?" | `get_categories` | | "Add a $14.50 lunch at Pai today under Eating Out." | `get_on_launch_data`, `add_transaction` | | "Here's my credit card statement. Add every purchase with the right category." | `get_on_launch_data`, `add_transaction` | | "What recurring bills do I have, and what do they add up to each month?" | `get_recurring_transactions` | | "Split last night's $86 dinner with Sam." | `list_connections`, `create_split` | | "Who owes me money right now?" | `list_balances` | | "What's my total return across my TFSA and RRSP?" | `get_investment_accounts`, `get_portfolio_summary` | Asks that add, change or delete something need a **Read And Make Changes** connection, and your app asks you before running them. Investment and net worth questions use Maple Finance. ### Tips For AI Agents - Start with `get_on_launch_data` for the current month. It returns the person's categories, tags and payment methods with their ids, which `add_transaction` and `update_transaction` need. - Categories are numbers from 1 to 30. The full list is in [Categories](https://maplebudget.com/docs/categories). - Amounts are decimal strings like `"42.50"`. Positive is spending, negative is income. Dates are `YYYY-MM-DD`. - Before deleting anything, say exactly what will be deleted and wait for the person to confirm. - If a tool fails, read the message it returns. [Errors](https://maplebudget.com/docs/errors) lists the common ones. - If you can't do what the person asked with these tools, or a result looks wrong, tell the Maple Budget team with `send_feedback`. Say what you were trying to do and what would have helped. Every connection has it, Read Only too, and it doesn't change the person's data. ### Next Steps - [Tool Reference](https://maplebudget.com/docs/mcp-tools): every tool with its parameters. - [Authentication](https://maplebudget.com/docs/authentication): OAuth, API keys and revoking access. - [Errors](https://maplebudget.com/docs/errors): what a failed tool call returns. - [Categories](https://maplebudget.com/docs/categories): the 30 category ids and names. --- ## Maple In ChatGPT > Maple Budget is an app in ChatGPT. Sign in once, then ask about your spending or log a purchase without opening Maple. Source: https://maplebudget.com/docs/chatgpt.md 💬 Maple Budget is an app in ChatGPT. Ask about your spending or log a purchase without opening Maple. There's nothing to install and no address to paste. ### 1. Find Maple Budget In ChatGPT Open ChatGPT and search apps for **Maple Budget**, or go straight to [Maple Budget in ChatGPT](https://chatgpt.com/plugins/plugin_asdk_app_6aea4d7bb6148191a43fb36f79a8d66b). It works in ChatGPT on the web, the desktop app and mobile. ### 2. Sign In With Your Maple Account Select **Connect**. ChatGPT sends you to Maple Budget to sign in with the same account you use on your phone and the web. Don't have one yet? You can create one on the same page. ### 3. Choose What ChatGPT Can Do - **Read Only**: ChatGPT can see your budget and transactions but can't change anything. - **Read And Make Changes**: ChatGPT can also add, edit or delete transactions when you ask. It checks with you before it changes anything. You're sent back to ChatGPT and Maple is ready. The connection refreshes itself, so you sign in once. ### Try Asking - "How much did I spend on groceries in October?" - "Add $14 lunch at Sushi Bar" - "Am I over budget on eating out?" - "How does my spending this month compare to last month?" ChatGPT uses the same tools as every other AI app. See them all in the [Tool Reference](https://maplebudget.com/docs/mcp-tools). Investment tools need Maple Pro. ### Using Claude Instead Maple Budget also works in Claude as a connector: paste one address and sign in. See [Connect Claude](https://maplebudget.com/docs/mcp-quick-setup). ### Disconnecting You can disconnect anytime from ChatGPT's app settings, or from [Menu → AI Apps](https://app.maplebudget.com/menu/api-keys) in the Maple Budget web app. Either way, it stops working right away. ### Troubleshooting - **ChatGPT doesn't use Maple Budget:** mention Maple Budget in your question, or pick it from the tools menu in a new chat. - **It can read but not add transactions:** you chose Read Only. Disconnect Maple in ChatGPT and connect again with Read And Make Changes. - **"This Sign-In Request Has Expired":** sign-in links last 10 minutes. Select Connect again in ChatGPT. - **Still stuck?** Email [hello@maplebudget.com](mailto:hello@maplebudget.com). --- ## Connect Claude To Maple Budget > Paste one address, sign in to Maple Budget, and choose what Claude can do. No Python, no download, no API key. Source: https://maplebudget.com/docs/mcp-quick-setup.md ### Server Address Maple Budget runs a hosted MCP server. Every app below connects to the same address: ```text https://api.maplebudget.com/mcp ``` When you connect, your app sends you to Maple Budget to sign in. You choose **Read And Make Changes** or **Read Only**, and you're sent back. There's no API key to copy or keep safe. ### Claude Works in Claude on the web, the desktop app and mobile. 1. Open **Settings → Connectors**. 2. Choose **Add Custom Connector**, name it Maple Budget, and paste the address above. 3. Select **Connect**, sign in to Maple Budget and choose what Claude can do. 4. In a new chat, turn on Maple Budget from the tools menu and ask, "What did I spend on eating out this month?" ### Claude Code ```bash claude mcp add --transport http maple-budget https://api.maplebudget.com/mcp ``` Then run `/mcp` inside Claude Code, pick maple-budget and sign in in your browser. ### ChatGPT Maple Budget is an app in ChatGPT, so there's no address to paste. [Open Maple Budget in ChatGPT](https://chatgpt.com/plugins/plugin_asdk_app_6aea4d7bb6148191a43fb36f79a8d66b), select **Connect** and sign in. Step by step: [Maple In ChatGPT](https://maplebudget.com/docs/chatgpt). ### Other Apps Any MCP client that supports remote servers with OAuth sign-in works the same way: give it the address and sign in. For scripts, you can also send an API key from [AI Apps](https://app.maplebudget.com/menu/api-keys) as `Authorization: Bearer mbk_…`. See [Authentication](https://maplebudget.com/docs/authentication). ### What It Can Do Claude gets 91 Maple Budget tools: transactions, categories and budgets, tags and payment methods, recurring transactions, shared expenses, and Maple Finance (accounts, trades, positions, net worth and live prices). 35 of them only read. A **Read Only** connection only ever sees those, plus `send_feedback`, which tells the Maple Budget team when something is missing or wrong. Tools that change your data are marked so your app asks before using them. Some things to try: - "How does my spending this month compare to last month?" - "Here's my credit card statement. Add every transaction to Maple Budget with the right category." - "Split last night's $86 dinner with Sam." - "What's my total return across my TFSA and RRSP?" See every tool in the [Tool Reference](https://maplebudget.com/docs/mcp-tools), and more prompts in the [Quickstart](https://maplebudget.com/docs/quickstart). Investment tools need Maple Pro. ### Disconnecting Every connected app is listed in the web app under [Menu → AI Apps](https://app.maplebudget.com/menu/api-keys). Disconnect one and it stops working right away. Connecting the same app again from the same computer replaces its old connection. ### Troubleshooting - **Claude doesn't use Maple Budget:** make sure the connector is turned on for the chat, or mention Maple Budget in your question. - **"This Sign-In Request Has Expired":** sign-in links last 10 minutes. Start connecting again from your app. - **It can read but not add transactions:** you chose Read Only. Disconnect it in AI Apps and connect again with Read And Make Changes. - **Still stuck?** Email [hello@maplebudget.com](mailto:hello@maplebudget.com). Prefer running the server on your own computer? See the [Local Server](https://maplebudget.com/docs/mcp-local) guides. --- ## MCP Tool Reference > Every tool the Maple Budget MCP server gives Claude: 91 in total, grouped by area. Read-only connections only see the read tools and send_feedback. Source: https://maplebudget.com/docs/mcp-tools.md The Maple Budget MCP server at `https://api.maplebudget.com/mcp` gives your AI app 91 tools. 35 of them only read; a Read Only connection only ever sees the 35 tools that read, plus `send_feedback`. The other 55 change data, and your app asks before using them. Amounts are decimal strings like `"42.50"` (positive is spending, negative is income) and dates are `YYYY-MM-DD`. Categories are ids from 1 to 30; see [Categories](https://maplebudget.com/docs/categories). Start with `get_on_launch_data` for the current month to learn the person's categories, tags and payment methods. ### Budget · Read #### `get_profile` Read only. Get the authenticated user's profile. Returns user profile information including name, email, country, and subscription status. No parameters. #### `get_subscription` Read only. Get the user's Maple Budget subscription: Free, maple pro or maple pro plus. Returns plan (what they can use right now), subscription_status (none, trialing, active, past_due, canceled or expired), where they subscribed (stripe, apple or google), trial_ends_at, current_period_end, and bank_connection_limit (how many banks they can connect: 0 on free, 2 on pro, 6 on pro plus). No parameters. #### `get_on_launch_data` Read only. Get all data needed on app launch for a specific month. This is a combined endpoint that returns the user profile, monthly summary, categories, tags, payment methods, and other data needed to render the main screen. Returns everything the app needs on launch in a single response. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `month` | integer | Yes | Month number (1-12). | | `year` | integer | Yes | Four-digit year (e.g. 2025). | #### `get_monthly_summary` Read only. Get the monthly spending summary for a specific month. Returns monthly spend, monthly earn, and every transaction for the given month/year. Each transaction has category and category_name, plus split (payer, total_amount, participants with share_amount and settled_at) when it is a shared expense, its amount_spent is then your share. Use get_transactions to filter or page. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `month` | integer | Yes | Month number (1-12). | | `year` | integer | Yes | Four-digit year (e.g. 2025). | #### `get_transactions` Read only. Get or search transactions for one month or a date range, newest first. Pass month and year for one month, or start_date/end_date for a range spanning months (up to 36 months per call). Each transaction has id, date, amount_spent (positive = expense; income is category 3), category and category_name, title, subtitle, tags, payment_forms, and split when it is a shared expense (amount_spent is then your share). The result also has total (matches before paging), has_more, and sum_amount_spent over all matches, so totals don't need every page. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `month` | integer | No | Month number (1-12). Use with year. | | `year` | integer | No | Four-digit year (e.g. 2025). Use with month. | | `start_date` | string | No | First day to include, YYYY-MM-DD. Instead of month/year. | | `end_date` | string | No | Last day to include, YYYY-MM-DD (defaults to today when start_date is given). | | `category` | integer | No | Only this category ID (1-30). See list_category_catalog for names. | | `search` | string | No | Only transactions whose title or subtitle contains this text (case-insensitive). | | `limit` | integer | No | Maximum transactions to return (default 100, max 500). | | `offset` | integer | No | Number of matching transactions to skip (for paging). | #### `get_categories` Read only. Get spending categories with their budgets and totals for a specific month. Returns each category's monthly spend, budget amount, icon, and color, with category and category_name. display_category (and display_category_name) is the category the app shows in that slot when the user has swapped it. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `month` | integer | Yes | Month number (1-12). | | `year` | integer | Yes | Four-digit year (e.g. 2025). | #### `get_categorical_overview` Read only. Get categorical spending overview for a specific month. Returns total spending, spending percentages per category (keyed by category ID, plus spending_percentages_by_name), and category breakdowns with category_name for the given month. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `month` | integer | Yes | Month number (1-12). | | `year` | integer | Yes | Four-digit year (e.g. 2025). | #### `get_recurring_transactions` Read only. Get all active recurring transactions. Returns a list of recurring transaction rules including frequency, next occurrence, end conditions, and the associated transaction template. No parameters. #### `list_category_catalog` Read only. List every spending category: Its ID, name and emoji. Category IDs run 1-30: 1 healthcare, 2 car, 3 income, 4 hobbies, 5 investments, 6 eating out, 7 groceries, 8 travel, 9 subscriptions, 10 rent, 11 savings, 12 transportation, 13 beauty, 14 social events, 15 clothing, 16 pets, 17 home, 18 drinks, 19 loans, 20 utilities, 21 coffee shops, 22 school, 23 insurance, 24 miscellaneous, 25 gadgets, 26 donations, 27 wellness, 28 gym + sports, 29 emergency fund, 30 taxes. Category 3 (income) counts as earnings, not spending. No parameters. ### Budget · Write #### `add_transaction` Changes data. Add a new transaction. Returns the created transaction (transaction_data) plus the month's new totals (monthly_summary with transaction_count, specific_category, categorical_overview). | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `date` | string | Yes | Transaction date in YYYY-MM-DD format. | | `amount_spent` | string | Yes | Amount as a decimal string (e.g. "42.50"). Positive = expense, negative = income. | | `category` | integer | Yes | Category ID (1-30). See list_category_catalog for names. | | `title` | string | Yes | Short title for the transaction (max 100 chars). | | `subtitle` | string | No | Optional longer description (max 100 chars). | | `tags` | array of integers | No | Optional list of tag IDs to attach. | | `payment_forms` | array of integers | No | Optional list of payment method IDs used. | #### `update_transaction` Changes data. Update an existing transaction. Only the fields you provide will be changed; omitted fields keep their current value. Shared-Expense (split) transactions can't be edited here, and a transaction's tags must belong to its category, so changing the category of a tagged transaction is rejected. Pass dry_run=true to see the before and after without saving anything. Returns the updated transaction (transaction_data) plus the month's new totals. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The transaction ID to update. | | `date` | string | No | New date in YYYY-MM-DD format. | | `amount_spent` | string | No | New amount as a decimal string. | | `category` | integer | No | New category ID (1-30). See list_category_catalog for names. | | `title` | string | No | New title (max 100 chars). | | `subtitle` | string | No | New subtitle (max 100 chars). | | `dry_run` | boolean | No | If true, return what would change (before, after, changes) and save nothing. Default: `false`. | #### `delete_transaction` Changes data. Delete a transaction. Pass dry_run=true to see the transaction that would be deleted without deleting it. Returns the month's new totals after the deletion. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `transaction_id` | integer | Yes | The ID of the transaction to delete. | | `dry_run` | boolean | No | If true, return the transaction that would be deleted and change nothing. Default: `false`. | #### `add_tag` Changes data. Create a new tag within a spending category. Tags let you further classify transactions within a category (e.g. "Groceries" within the food category). Returns the created tag. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | Yes | Tag display name. | | `category` | integer | Yes | Category ID (1-30) this tag belongs to. See list_category_catalog for names. | | `color` | integer | Yes | Color ID from 1 to 25 (the app's tag palette). | #### `update_tag` Changes data. Update an existing tag. Returns the updated tag. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The tag ID to update. | | `name` | string | No | New tag name. | | `category` | integer | No | New category ID (1-30). See list_category_catalog for names. | | `color` | integer | No | New color ID from 1 to 25 (the app's tag palette). | #### `delete_tag` Changes data. Delete a tag. Returns confirmation of deletion. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The ID of the tag to delete. | #### `add_payment_method` Changes data. Add a new payment method (e.g. a credit card name). Returns the created payment method with its ID. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | Yes | Display name for the payment method (max 100 chars). | #### `update_payment_method` Changes data. Rename a payment method (e.g. "Amex" to "Amex Cobalt"). Transactions already paid with it show the new name. Payment methods and their IDs are in get_on_launch_data. Returns the updated payment method. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The payment method ID to rename. | | `name` | string | Yes | The new display name (max 100 chars). | #### `delete_payment_method` Changes data. Delete a payment method. Transactions paid with it stay, just without that payment method. Confirm with the person first. Returns confirmation of deletion. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The payment method ID to delete (from get_on_launch_data). | #### `add_recurring_transaction` Changes data. Add a new recurring transaction rule. The system will automatically create transactions according to the recurrence schedule. Returns the list of all active recurring transactions. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `amount_spent` | string | Yes | Amount as a decimal string (e.g. "42.50"). | | `category` | integer | Yes | Category ID (1-30). See list_category_catalog for names. | | `title` | string | Yes | Short title (max 100 chars). | | `next_occurrence` | string | Yes | Date of the next occurrence in YYYY-MM-DD format. | | `frequency` | integer | Yes | How often it repeats, 0=daily, 1=weekly, 2=every two weeks (biweekly), 3=monthly. | | `end_type` | integer | Yes | When to stop, 0=never, 1=after n occurrences, 2=on a specific date. | | `subtitle` | string | No | Optional description (max 100 chars). | | `tags` | array of integers | No | Optional list of tag IDs. | | `payment_forms` | array of integers | No | Optional list of payment method IDs. | | `end_occurrence` | integer | No | Number of occurrences before stopping (required if end type = 1). | | `end_date` | string | No | End date in YYYY-MM-DD format (required if end type = 2). | ### Investments · Read #### `get_investment_accounts` Read only. Get all investment accounts. Returns a list of investment accounts with their names, types, institutions, groups, currencies, and associated positions. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `include_archived` | boolean | No | True to also return archived accounts (each has an archived flag). | #### `get_investment_account_groups` Read only. Get all investment account groups. Groups are used to organize investment accounts (e.g. "Retirement", "Taxable"). Returns group names, IDs, and ordering. No parameters. #### `get_positions` Read only. Get investment positions (holdings). Can be filtered by account, group, or active status. Returns a list of positions with ticker, quantity, book cost, and account info. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `account_id` | integer | No | Filter positions to a specific investment account. | | `group_id` | integer | No | Filter positions to accounts in a specific group. | | `is_active` | boolean | No | If true, only return positions with non-zero quantity. | #### `get_trades` Read only. Get trade history, newest first. Supports filtering and pagination. Each trade has id, account (id and name), ticker_yahoo, ticker_display, side (BUY/SELL), quantity, price_total, sale_price_total, currency, exchange_rate, date and option fields. The result has total (matches before paging) and has_more. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `account_id` | integer | No | Filter trades to a specific investment account. | | `ticker` | string | No | Filter trades by Yahoo ticker symbol (e.g. "AAPL"). | | `offset` | integer | No | Number of trades to skip (for pagination). | | `limit` | integer | No | Maximum number of trades to return (default 100, max 500). | | `start_date` | string | No | Only trades on or after this date (YYYY-MM-DD). | | `end_date` | string | No | Only trades on or before this date (YYYY-MM-DD). | #### `get_investment_settings` Read only. Get the user's investment-related settings. Returns display currency preference and registered-account contribution room (TFSA, RRSP, FHSA). No parameters. #### `get_portfolio_summary` Read only. Get the portfolio summary computed by the server. Includes net worth, invested value, cash, book cost, unrealized and realized gains, day change, per-account totals, holdings (merged across accounts) and allocation by account, account type, group, holding and currency, all in one currency. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `display_currency` | string | No | Currency to report in ("CAD", "USD", "GBP", "EUR"). Defaults to the user's setting. | #### `get_trade_ledger` Read only. Get trades with server-computed cost basis and realized gain on each sell, newest first. Cost basis is always computed over your full history; filters only choose which rows come back. The result has total_count (matches before paging) and has_more. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `display_currency` | string | No | Currency for the converted columns. | | `account_id` | integer | No | Filter to one investment account. | | `ticker` | string | No | Filter by Yahoo ticker. | | `offset` | integer | No | Number of trades to skip. | | `limit` | integer | No | Maximum number of trades to return (default 100, max 500). | | `start_date` | string | No | Only trades on or after this date (YYYY-MM-DD). | | `end_date` | string | No | Only trades on or before this date (YYYY-MM-DD). | #### `get_lots` Read only. Get every buy as a lot, matched to the sells that closed it (oldest first, per account). Each lot has its buy, exits, realized gain on the sold shares, a weekly 500-day price path (% since the buy-date close), where it was when sold, where it is now, and a verdict: "early" (rose 10+ points after you sold), "well" (fell 10+), "even", "partial", "held" or "na". No parameters. #### `get_net_worth_history` Read only. Get net worth history converted with each snapshot's own FX rates. Returns points with total, change since the previous snapshot, per-account values (keyed by account) and any unattributed amount (backdated totals with no breakdown). | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `display_currency` | string | No | Currency to report in. Defaults to the user's setting. | #### `get_equity_compensation` Read only. Get employee equity: Stock options, RSUs, ESPP and warrants, with vesting and value. Each grant has its quantity, strike, share price (live underlying, else manual_price), intrinsic value per share, vested_quantity, unvested_quantity, next_vest_date, next_vest_quantity, vested_value, total_value, exercise_cost_total (strike x quantity), counted_value (what counts toward net worth) and vesting_unknown (true when no vesting schedule is set; it then counts as fully vested). totals sums the grants; count_mode is the user's equity_comp_in_net_worth setting. Grants are kept out of unrealized gains, total return and allocation in get_portfolio_summary. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `display_currency` | string | No | Currency to report in ("CAD", "USD", "GBP", "EUR"). Defaults to the user's setting. | ### Investments · Write #### `add_investment_account` Changes data. Create a new investment account. Returns the created investment account. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | Yes | Display name for the account (e.g. "TFSA - Wealthsimple"). | | `account_type` | string | Yes | One of "TFSA", "RRSP", "FHSA", "NON_REGISTERED", "SAVINGS", "CRYPTO". | | `institution` | string | No | Financial institution name. | | `group_id` | integer | No | ID of the group to place this account in. | | `currency` | string | No | Account currency code (e.g. "CAD", "USD"). | | `is_investment` | boolean | No | Whether the account holds positions. Defaults to true for every type except SAVINGS. | | `cash_balances` | object | No | Starting cash by currency, e.g. {"CAD": "1500.00"}. | | `total_contributed` | string | No | Total amount contributed so far, as a string. | | `exclude_from_returns` | boolean | No | True to leave the account out of total return (pensions, employee equity, test accounts). Its value still counts toward net worth. | #### `update_investment_account` Changes data. Update an existing investment account. Returns the updated investment account. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The investment account ID. | | `name` | string | No | New display name. | | `account_type` | string | No | New account type. | | `institution` | string | No | New institution name. | | `group_id` | integer | No | New group ID. | | `currency` | string | No | New currency code. | | `is_investment` | boolean | No | Whether the account holds positions. | | `cash_balances` | object | No | Cash by currency to set, e.g. {"CAD": "1500.00", "USD": "20.00"}. | | `total_contributed` | string | No | Total amount contributed so far, as a string. | | `remove_from_group` | boolean | No | True to take the account out of its group. | | `exclude_from_returns` | boolean | No | True to leave the account out of total return (pensions, employee equity, test accounts); false to count it again. | | `ownership_pct` | string | No | The person's share of a joint account, as a percent above 0 and at most 100 (e.g. "50" for half). The account still shows its full holdings; net worth, gains and allocation count only this share. | | `archived` | boolean | No | True to archive the account (hidden from every list and total, history kept); false to bring it back. | | `exclude_from_net_worth` | boolean | No | True to keep the account listed with its own value but leave it out of net worth, group totals, allocation and new snapshots; false to count it again. | #### `delete_investment_account` Changes data. Delete an investment account and all its positions and trades. Returns confirmation of deletion. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The investment account ID to delete. | #### `add_investment_account_group` Changes data. Create a new investment account group. Groups let you organize accounts (e.g. "Retirement", "Taxable", "Crypto"). Returns the created group. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | Yes | Display name for the group. | #### `update_investment_account_group` Changes data. Rename an investment account group. Returns the updated group. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The group ID to rename (from get_investment_account_groups). | | `name` | string | Yes | The new display name for the group. | #### `delete_investment_account_group` Changes data. Delete an investment account group. Accounts in the group will be ungrouped, not deleted. Returns confirmation of deletion. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The group ID to delete. | #### `reorder_investment_account_groups` Changes data. Reorder investment account groups. Returns confirmation of the new order. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `group_ids` | array of integers | Yes | List of group IDs in the desired display order. | #### `add_trade` Changes data. Record a new trade (buy or sell). Pass dry_run=true to preview: It returns the trade that would be recorded and the current position for that account and ticker, and saves nothing. The server's checks (e.g. selling more than you hold) only run when the trade is actually recorded. Returns the created trade record. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `account_id` | integer | Yes | The investment account ID where this trade occurred. | | `ticker_yahoo` | string | Yes | Yahoo Finance ticker symbol (e.g. "AAPL", "XIU.TO"). For private companies use any unique identifier. | | `ticker_display` | string | Yes | Display ticker (e.g. "AAPL", "XIU", "Startup Inc"). | | `side` | string | Yes | "BUY" or "SELL". | | `quantity` | string | Yes | Number of shares/units as a string (e.g. "10.5"). | | `currency` | string | Yes | Currency code (e.g. "CAD", "USD"). | | `date` | string | Yes | Trade date in YYYY-MM-DD format. | | `price_total` | string | No | For a BUY, the total cost (required). For a SELL, the cost basis removed, leave it out and the server computes it from average cost. | | `sale_price_total` | string | No | For SELL trades, the total sale proceeds. | | `exchange_rate` | string | No | Exchange rate at the time of trade (if foreign currency). | | `is_option` | boolean | No | True if this trade is for an options contract. | | `option_type` | string | No | "CALL" or "PUT" (required if is_option is true). | | `strike_price` | string | No | Strike price as a string (required if is_option is true). | | `expiry_date` | string | No | Option expiry date in YYYY-MM-DD format (required if is_option is true). | | `contract_size` | integer | No | Number of shares per contract (default 100 for exchange-traded, use 1 for employee stock options). | | `manual_price` | string | No | Current FMV per share for private/non-public positions. | | `dry_run` | boolean | No | If true, return the trade that would be recorded and the current position, and save nothing. Default: `false`. | #### `delete_trade` Changes data. Delete a trade record and reverse its effect on the position. Fails if later sells depend on the shares this trade added. Pass dry_run=true to see the trade that would be deleted without deleting it. Returns confirmation of deletion. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The trade ID to delete. | | `dry_run` | boolean | No | If true, return the trade that would be deleted and change nothing. Default: `false`. | #### `update_trade` Changes data. Edit a trade in place. Positions are rebuilt from trade history automatically. Only the fields you pass are changed. Use this instead of deleting and re-adding. For a SELL, changing the quantity or date without passing price_total recomputes the cost basis. Edits that would sell more than was held on that date are rejected. Returns the updated trade. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The trade ID to edit. | | `account_id` | integer | No | Move the trade to another investment account. | | `ticker_yahoo` | string | No | New Yahoo ticker. | | `ticker_display` | string | No | New display ticker. | | `side` | string | No | "BUY" or "SELL". | | `quantity` | string | No | New quantity as a string. | | `price_total` | string | No | For a BUY, total cost. For a SELL, cost basis removed. | | `sale_price_total` | string | No | For a SELL, total proceeds. | | `currency` | string | No | Currency code. | | `exchange_rate` | string | No | Exchange rate at the time of trade. | | `date` | string | No | Trade date in YYYY-MM-DD format. | #### `add_position` Changes data. Directly create a position without a trade record. Use this to seed a portfolio with existing holdings. If a position already exists for the same account and ticker, the quantity and book cost are added to the existing position (same as a BUY trade). Returns the created or updated position. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `account_id` | integer | Yes | The investment account ID. | | `ticker_yahoo` | string | Yes | Yahoo Finance ticker symbol (e.g. "AAPL", "XIU.TO"). | | `ticker_display` | string | Yes | Display ticker (e.g. "AAPL", "XIU"). | | `currency` | string | Yes | Currency code ("CAD", "USD", "GBP", or "EUR"). | | `quantity` | string | Yes | Number of shares/units as a string (e.g. "100"). | | `book_price_total` | string | Yes | Total book cost as a string (e.g. "13000.00"). | | `is_option` | boolean | No | True if this is an options position. | | `option_type` | string | No | "CALL" or "PUT" (required if is_option is true). | | `strike_price` | string | No | Strike price as a string (required if is_option is true). | | `expiry_date` | string | No | Option expiry date in YYYY-MM-DD format (required if is_option is true). | | `contract_size` | integer | No | Number of shares per contract (default 100). | | `manual_price` | string | No | Current FMV per share for private/non-public positions. | #### `update_position` Changes data. Update a position's fields. Use this to edit quantity, book cost, display ticker, or set the current FMV (fair market value) for private/non-public positions. Returns the updated position. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The position ID to update. | | `manual_price` | string | No | Current FMV per share as a decimal string (e.g. "25.00"). | | `contract_size` | integer | No | Number of shares per contract. | | `quantity` | string | No | New quantity as a decimal string (e.g. "100"). | | `book_price_total` | string | No | New total book cost as a decimal string (e.g. "13000.00"). | | `ticker_display` | string | No | New display ticker (e.g. "TSE:SHOP"). | #### `delete_position` Changes data. Delete a position. Removes the position record. Does not affect any trade history. Returns confirmation of deletion. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The position ID to delete. | #### `update_investment_settings` Changes data. Update investment-related settings. Returns the updated investment settings. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `display_currency` | string | No | Preferred display currency (e.g. "CAD", "USD", "GBP", "EUR"). | | `active_currencies` | array of strings | No | List of currency codes the user interacts with (e.g. ["CAD", "USD"]). | | `tfsa_contribution_room` | string | No | Available TFSA contribution room as a decimal string. | | `rrsp_contribution_room` | string | No | Available RRSP contribution room as a decimal string. | | `fhsa_contribution_room` | string | No | Available FHSA contribution room as a decimal string. | | `equity_comp_in_net_worth` | string | No | How much employee equity counts toward net worth: "vested" (default, only vested grants), "all" (vested and unvested) or "none". | ### Investments · Options And Employee Equity #### `add_option` Changes data. Add an option: A listed contract you bought or wrote, or an employer grant. Market options are valued at the live contract price, else intrinsic value from the live underlying (or manual_price). Employer grants (stock options, RSUs, ESPP, warrants) are equity compensation: Valued at intrinsic value, split into vested and unvested, and kept out of gains and returns. Pass dry_run=true to see the position that would be created without saving it. Returns the created position (with vesting and value for an employer grant). | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `account_id` | integer | Yes | The investment account ID to hold the option. | | `quantity` | string | Yes | Contracts (market) or units granted (employer), as a string. | | `option_source` | string | No | "market" for a listed option, "employer" for an employee grant. Default: `"market"`. | | `strike_price` | string | No | Strike price per share as a string. Required except for RSUs (always 0). | | `option_type` | string | No | "CALL" or "PUT". Employer grants default to CALL. | | `expiry_date` | string | No | Expiry date (YYYY-MM-DD). Required for market options. | | `book_price_total` | string | No | Total premium paid (long) or received (short). Required for market options; grants default to 0. | | `side` | string | No | "long" (default) or "short" for a written option, which is valued as a liability. | | `grant_type` | string | No | Employer only: "stock_option" (default), "rsu", "espp" or "warrant". | | `underlying_ticker_yahoo` | string | No | Yahoo ticker of the stock the option is on (e.g. "AAPL", "SHOP.TO"), for live pricing. Leave out for a private company and set manual_price instead. | | `ticker_yahoo` | string | No | Unique ticker for the option. Market options default to the Yahoo contract symbol built from the underlying (e.g. AAPL260116C00150000). | | `ticker_display` | string | No | Display name (e.g. "AAPL 150C" or "Wealthsimple Options"). | | `currency` | string | No | Currency code. Defaults to the account's currency. | | `grant_date` | string | No | Employer only: The grant date (YYYY-MM-DD), which vesting presets count from. | | `vesting` | object | No | Employer only: The vesting schedule, one of {"preset": "4y_1y_cliff", "frequency": "monthly"} (25% at 12 months, then monthly or "quarterly" to 48 months), {"preset": "vested"}, or {"tranches": [{"date": "YYYY-MM-DD", "quantity": 250}]}. Leave out if unknown. | | `contract_size` | integer | No | Shares per contract (default 100 for market; grants are always 1). | | `manual_price` | string | No | The underlying's share price when there's no live quote (e.g. a private company's latest 409A or tender price). | | `date` | string | No | If given, record the opening as a trade on this date (YYYY-MM-DD) so it shows in the ledger. | | `dry_run` | boolean | No | If true, return the position that would be created and save nothing. Default: `false`. | #### `update_option` Changes data. Change any field of an option position. Only the fields you pass change. Use it to set a manual share price, add an underlying ticker for live pricing, fix the strike or expiry, set a grant's vesting schedule, or reclassify an option as a market option or an employer grant. Pass dry_run=true to preview the result without saving. Returns the updated position. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The option position ID (from get_positions or get_equity_compensation). | | `option_source` | string | No | "market" or "employer". | | `grant_type` | string | No | Employer only: "stock_option", "rsu", "espp" or "warrant". | | `side` | string | No | "long" or "short" (market only). | | `option_type` | string | No | "CALL" or "PUT". | | `strike_price` | string | No | Strike price per share as a string. | | `expiry_date` | string | No | Expiry date (YYYY-MM-DD). | | `contract_size` | integer | No | Shares per contract. | | `manual_price` | string | No | The underlying's share price when there's no live quote, as a string. | | `underlying_ticker_yahoo` | string | No | Yahoo ticker of the underlying stock, for live pricing. | | `grant_date` | string | No | Employer only: The grant date (YYYY-MM-DD). | | `vesting` | object | No | Employer only: The vesting schedule, one of {"preset": "4y_1y_cliff", "frequency": "monthly"} (25% at 12 months, then monthly or "quarterly" to 48 months), {"preset": "vested"}, or {"tranches": [{"date": "YYYY-MM-DD", "quantity": 250}]}. | | `ticker_display` | string | No | New display name. | | `currency` | string | No | Currency code. | | `quantity` | string | No | Contracts or units held, as a string (prefer record_option_event for real changes). | | `book_price_total` | string | No | Total book cost (premium), as a string. | | `clear_fields` | array of strings | No | Fields to clear (set to null): Any of "manual_price", "underlying_ticker_yahoo", "grant_date", "vesting", "expiry_date". | | `dry_run` | boolean | No | If true, return the position as it would be and save nothing. Default: `false`. | #### `record_option_event` Changes data. Record what happened to an option. Positions and realized gains update automatically. Events: buy_to_open / sell_to_close (a long option), sell_to_open / buy_to_close (a written, short option), exercise (long options become shares; same as exercise_option), assigned (a short option is exercised against you), expired (closes the rest: A long option's premium becomes a realized loss, a short option's premium a realized gain), grant (more units of an employer grant) and vest (RSUs settle into shares at the FMV; for other grants it records a vesting tranche). Pass dry_run=true to see the trades, shares and gains that would result without saving. Returns the trades recorded, realized gain, remaining quantity, and for exercise the shares, cost basis and estimated taxable benefit. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `position_id` | integer | Yes | The option position ID. | | `event` | string | Yes | What happened (see above). | | `quantity` | string | No | Contracts or units, as a string. Expired defaults to everything left. | | `date` | string | No | When it happened (YYYY-MM-DD). Defaults to today. | | `amount` | string | No | Total cash for opens and closes, as a string: Premium paid (buy_to_open), received (sell_to_open), proceeds (sell_to_close) or cost to close (buy_to_close). | | `fmv` | string | No | For exercise, assigned or an RSU vest: Fair market value per share on the date. Defaults to the live underlying price, else the option's manual_price. | | `account_id` | integer | No | For exercise, assigned or vest: The account the shares go to (defaults to the option's). | | `stock_ticker_yahoo` | string | No | The shares' Yahoo ticker (defaults to the underlying). | | `stock_ticker_display` | string | No | The shares' display ticker. | | `dry_run` | boolean | No | If true, return what would be recorded and save nothing. Default: `false`. | #### `exercise_option` Changes data. Exercise long options into shares. Use dry_run=true first to preview. A market call buys quantity x contract_size shares at the strike; their cost basis is the strike plus the premium paid for those contracts. A market put sells shares at the strike. An employer stock option can only be exercised up to its vested quantity; the shares' cost basis is the strike plus the taxable benefit ((FMV - strike) x quantity), following canadian ACB rules, and taxable_benefit is returned as an estimate (the employer's T4 is final). Returns the shares created, cost basis, taxable benefit (employer), the trades and what remains. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `position_id` | integer | Yes | The option position ID. | | `quantity` | string | Yes | Contracts (market) or options (employer) to exercise, as a string. | | `date` | string | No | The exercise date (YYYY-MM-DD). Defaults to today. | | `fmv` | string | No | Employer grants: Fair market value per share on the exercise date. Defaults to the live underlying price, else the grant's manual_price. | | `account_id` | integer | No | The account the shares go to. Defaults to the option's account. | | `stock_ticker_yahoo` | string | No | The shares' Yahoo ticker. Defaults to the underlying; a private company's shares default to " Shares", priced at the FMV. | | `stock_ticker_display` | string | No | The shares' display ticker. | | `dry_run` | boolean | No | If true, return the shares, cost basis and taxable benefit that would result and save nothing. Default: `false`. | ### Net Worth · Read #### `get_net_worth_snapshots` Read only. Get net worth snapshots, newest first. By default each snapshot is a summary: id, date, total, storage_currency, source, is_manual and entry_count. Pass summary=false for every account entry and FX rate, or use get_net_worth_snapshot for one snapshot's full detail. The result has total (matches before paging) and has_more. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `summary` | boolean | No | If true (default), leave out each snapshot's entries and FX rates. Default: `true`. | | `start_date` | string | No | Only snapshots on or after this date (YYYY-MM-DD). | | `end_date` | string | No | Only snapshots on or before this date (YYYY-MM-DD). | | `limit` | integer | No | Maximum snapshots to return (default 100, max 500). | | `offset` | integer | No | Number of snapshots to skip (for paging). | #### `get_net_worth_snapshot` Read only. Get a specific net worth snapshot with full details. Returns the snapshot with all its entries (individual account values). | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The snapshot ID. | ### Net Worth · Write #### `create_live_snapshot` Changes data. Create a live net worth snapshot. Automatically fetches current market prices for all positions and calculates the total net worth. This is the recommended way to take a snapshot. Returns the created snapshot with all its entries. No parameters. #### `create_manual_snapshot` Changes data. Create a manual net worth snapshot with user-provided values. Returns the created snapshot. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `date` | string | Yes | Snapshot date in YYYY-MM-DD format. | | `total` | string | Yes | Total net worth in storage currency as a decimal string. | | `fx_rates` | object | No | Optional dict of FX rates (e.g. {"USD_CAD": "1.3679"}). | | `storage_currency` | string | No | Currency the total is denominated in (default: "CAD"). | | `entries` | array of objects | No | Optional list of entry dicts with "value" and either "account_id" (preferred, linked to the account so it survives renames) or "account_name". | #### `delete_snapshot` Changes data. Delete a net worth snapshot. Returns confirmation of deletion. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The snapshot ID to delete. | #### `update_snapshot_entry` Changes data. Update the value of a single entry in a net worth snapshot. Returns the updated entry. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The snapshot entry ID. | | `value` | string | Yes | New value in storage currency as a decimal string. | ### Market · Read #### `get_currencies` Read only. Get all supported currencies. Returns a list of currency codes, symbols, and names that the system supports. No parameters. #### `get_fx_rates` Read only. Get exchange rates for all supported currencies against a target currency. Returns exchange rates from each currency to the target. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `target` | string | Yes | Target currency code (e.g. "CAD", "USD"). | #### `get_live_prices` Read only. Get live market prices for a list of tickers. Returns current price data for each ticker. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `tickers` | array of strings | Yes | List of Yahoo Finance ticker symbols (e.g. ["AAPL", "XIU.TO", "MSFT"]). | #### `get_exchange_rate` Read only. Get the current exchange rate between two currencies. Returns the exchange rate. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `from_currency` | string | Yes | Source currency code (e.g. "USD"). | | `to_currency` | string | Yes | Target currency code (e.g. "CAD"). | #### `get_sp500_returns` Read only. Get S&P 500 returns for specific dates. Useful for benchmarking portfolio performance against the market. Returns S&P 500 values/returns for the requested dates. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `dates` | array of strings | Yes | List of dates in YYYY-MM-DD format to get S&P 500 values for. | #### `get_watchlist` Read only. Get the user's stock watchlist with current prices. Returns watchlist items with current prices and period change. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `period` | string | No | Optional time period for price change display (e.g. "1d", "5d", "1mo", "3mo", "1y"). | #### `get_ticker_history` Read only. Get historical closing prices for a ticker as a list of {date, close}. Long periods are downsampled by default: "2y" and "5y" return weekly closes, "10y" and "max" monthly closes; shorter periods return every point. Pass interval to choose. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `ticker` | string | Yes | Yahoo Finance ticker symbol (e.g. "AAPL"). | | `period` | string | No | Time period, "1d", "5d", "1mo", "3mo", "6mo", "1y", "2y", "5y", "10y", "max" (default "1mo"). | | `interval` | string | No | "1d" (every close), "1wk" (last close each week) or "1mo" (last close each month). | #### `add_watchlist_item` Changes data. Add a ticker to the watchlist. Returns the created watchlist item. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `ticker_yahoo` | string | Yes | Yahoo Finance ticker symbol (e.g. "AAPL", "XIU.TO"). | | `ticker_display` | string | Yes | Display ticker (e.g. "AAPL", "XIU"). | #### `delete_watchlist_item` Changes data. Remove a ticker from the watchlist. Returns confirmation of deletion. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer | Yes | The watchlist item ID to delete. | #### `reorder_watchlist` Changes data. Reorder the watchlist. Returns confirmation of the new order. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `item_ids` | array of integers | Yes | List of watchlist item IDs in the desired display order. | ### Shared Expenses · Read #### `list_connections` Read only. List all connections for the authenticated user. Returns accepted connections, pending received invites, and pending sent invites. No parameters. #### `list_balances` Read only. List running balances with all connected users. Returns the amount owed to or from each connected user. Positive amount means you owe them, negative means they owe you. No parameters. #### `get_balance_detail` Read only. Get detailed balance history with a specific connected user. Returns the overall balance, all shared splits (with per-expense settlement status), and all settlement records between you and the specified user. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `user_id` | integer | Yes | The ID of the connected user to view balance details with. | #### `get_split` Read only. Get one shared expense split. Returns the payer, total_amount, whether you paid (is_payer), each participant's share_amount and settled_at, and your own copy of the transaction (transaction_data, whose amount_spent is your share). | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `split_id` | integer | Yes | The ID of the split (the split.id on a transaction). | ### Shared Expenses · Write #### `invite_connection` Changes data. Invite a user to connect for shared expenses. Provide either an email or phone number. If the other user has already sent you an invite, this will auto-accept the connection. Returns the connection status (pending or accepted if reciprocal). | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `email` | string | No | The email address of the user to invite. | | `phone_number` | string | No | The phone number of the user to invite. | #### `accept_connection` Changes data. Accept a pending connection invite. Returns confirmation that the connection is now accepted. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `connection_id` | integer | Yes | The ID of the connection invite to accept. | #### `decline_connection` Changes data. Decline a pending connection invite. Returns confirmation that the connection was declined. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `connection_id` | integer | Yes | The ID of the connection invite to decline. | #### `remove_connection` Changes data. Remove an accepted connection. Returns confirmation of removal. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `connection_id` | integer | Yes | The ID of the connection to remove. | #### `nudge_connection` Changes data. Send a nudge reminder to a connected user about outstanding balances. Rate limited to one nudge per user per 24 hours. Returns confirmation that the nudge was sent. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `connection_id` | integer | Yes | The ID of the connection to nudge. | #### `create_split` Changes data. Create a new shared expense split. Creates a transaction for the payer and mirror transactions for each participant. Automatically updates budgets and connection balances. Returns the created split with participant details, your copy of the transaction (transaction_data) and the month's new totals. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `date` | string | Yes | Transaction date in YYYY-MM-DD format. | | `total_amount` | string | Yes | Total amount as a decimal string (e.g. "42.50"). | | `category` | integer | Yes | Category ID (1-30). See list_category_catalog for names. | | `title` | string | Yes | Short title for the expense (max 100 chars). | | `participants` | array of objects | Yes | List of participant dicts, each with "user_id" (int) and "share_amount" (str). Must include the payer. Example: [{"user_id": 1, "share_amount": "21.25"}, {"user_id": 2, "share_amount": "21.25"}] | | `subtitle` | string | No | Optional description (max 100 chars). | #### `settle_split` Changes data. Mark a split participant as settled (paid). Sets the settled_at timestamp and adjusts the connection balance. Returns the updated settlement status. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `split_id` | integer | Yes | The ID of the split. | | `user_id` | integer | Yes | The ID of the participant to mark as settled. | #### `unsettle_split` Changes data. Unsettle a previously settled split participant. Clears the settled_at timestamp and reverses the connection balance adjustment. Returns the updated settlement status. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `split_id` | integer | Yes | The ID of the split. | | `user_id` | integer | Yes | The ID of the participant to unsettle. | #### `delete_split` Changes data. Delete a shared expense split. If you are the payer, all mirror transactions are deleted. If you are a participant, only your mirror transaction is removed. Pass dry_run=true to see the split and what would be removed without deleting it. Returns confirmation of deletion and the month's new totals. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `split_id` | integer | Yes | The ID of the split to delete. | | `dry_run` | boolean | No | If true, return the split and what deleting it would remove, and change nothing. Default: `false`. | #### `create_settlement` Changes data. Record a bulk settlement payment to a connected user. Creates a settlement record, adjusts the connection balance, and marks all outstanding split participants between you as settled. Returns the created settlement details. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `to_user_id` | integer | Yes | The ID of the user you are settling with. | | `amount` | string | Yes | Settlement amount as a decimal string (e.g. "100.00"). | | `note` | string | No | Optional note (e.g. "E-Transfer", "Cash"). | #### `list_bank_connections` Read only. List the banks connected to Maple Budget for automatic transaction import (a maple pro feature). Each connection shows the bank, its status ("active", "reauth" when the bank needs the person to sign in again in the app, "error", or "paused" when their plan lapsed), when it last synced, its products ("transactions", "investments"), and its cards and accounts (name is what to call each one: The person's nickname, or the bank's name, which is always in bank_name; whether each one is imported, the payment method its transactions use, and for brokerage accounts the Maple Finance account its holdings sync into: investment_account_id, usable with get_positions and get_trades). Also shows the plan's bank limit and how many are used. A connection whose review.waiting is true has its first transactions held for review (get_import_review). Returns {connections, plan, limit, used}. No parameters. #### `sync_bank_connection` Changes data. Import the latest transactions (and investment holdings and trades) from one connected bank now. New spending and income are added to the budget with a category (or held for review while a new connection's review is pending: held); transfers between the person's own accounts and credit card payments are skipped. Brokerage accounts update their Maple Finance positions and trades instead (never the budget). Banks also sync on their own, so this is only needed for the very latest. Returns the connection and what the sync did (held: How many wait for review) (added, matched to purchases already logged by hand, updated, removed, skipped, and investments: accounts, trades, positions, skipped, when the bank has investments). | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `connection_id` | integer | Yes | The connection ID from list_bank_connections. | | `review_imports` | boolean | No | Hold new spending for review instead of adding it (then get_import_review, accept_import_review or skip_import_review). Matches to purchases already logged are still linked straight away. Default: `false`. | #### `disconnect_bank_connection` Changes data. Disconnect a bank so Maple Budget stops importing from it. Transactions already imported stay in the budget. Confirm with the person first: Reconnecting means signing in to the bank again in the app. Returns confirmation that the bank was disconnected. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `connection_id` | integer | Yes | The connection ID from list_bank_connections. | #### `set_bank_account_sync` Changes data. Turn importing on or off for one card or account of a connected bank. Off stops future imports, and its transactions still waiting in a review leave the review. Each account in list_bank_connections has imported_transactions: How many bank imports remove_imported would take out. Ask the person before removing them. Entries they logged themselves that the bank only confirmed always stay (unlinked), and so do shared expenses. Turning it back on imports new purchases; restore_history also looks up its last 90 days at the bank and holds what maple doesn't have for review (get_import_review). Brokerage accounts only start or stop syncing into Maple Finance. Returns {account, connection, removed?: {removed, unlinked, kept_shared, failed, dropped_from_review}, restored?: {status, held, matched, skipped}}. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `account_id` | integer | Yes | The account's id from a connection's accounts in list_bank_connections. | | `sync_enabled` | boolean | Yes | True to import it, false to stop. | | `remove_imported` | boolean | No | When turning off: Also remove the transactions already imported from it. Default: `false`. | | `restore_history` | boolean | No | When turning on: Bring its recent history back for review. Default: `false`. | #### `update_bank_account_settings` Changes data. Change one connected card or account's settings or name (its import switch is set_bank_account_sync). Leave a setting out to keep it as it is. Each account in list_bank_connections shows hidden and in_net_worth (null when the account has no Maple Finance account, so there's nothing to count), and name (its nickname, or the bank's name without one), nickname and bank_name. Returns {account, connection}. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `account_id` | integer | Yes | The account's id from a connection's accounts in list_bank_connections. | | `count_in_net_worth` | boolean | No | False to keep its Maple Finance account listed but leave it out of net worth, group totals, allocation and new snapshots; true to count it again. | | `hidden` | boolean | No | True to hide it (listed under hidden accounts in bank connections, its Maple Finance account archived; nothing is deleted and importing doesn't change); false to show it again. | | `nickname` | string | No | The person's own name for it (max 100 chars), shown everywhere instead of the bank's name. Its payment method is renamed to match unless the person renamed that themselves. An empty string clears it, so the bank's name shows again. Bank syncs never change it. | #### `get_import_review` Read only. Get the transactions a newly connected bank is holding for review (review your imports) before they're added. Nothing held counts in any total until the review is accepted. Three groups: new (ticked to add by default), transfers (money between the person's own accounts, unticked) and matched (already in maple: Each shows the person's own entry or split it matched, the rule (own, close, split or sum) and the bank charges, linked instead of added). list_bank_connections shows which connections have a review waiting (review.waiting). Returns {connection_id, institution_name, status, ready, from_date, to_date, counts, new, transfers, matched}. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `connection_id` | integer | Yes | The connection ID from list_bank_connections. | #### `update_import_review_item` Changes data. Tick or untick one held transaction in a bank's review, or change its category, before accepting. Matched ones (already in maple) have nothing to tick: Use undo_import_match first. Returns the updated item and the review's counts. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `connection_id` | integer | Yes | The connection ID from list_bank_connections. | | `item_id` | integer | Yes | The held transaction's ID from get_import_review. | | `category` | integer | No | New category ID (1-30, see list_category_catalog). | | `included` | boolean | No | True to add it when the review is accepted, false to leave it out. | #### `undo_import_match` Changes data. Undo a match in a bank's review: The bank charge isn't the entry it was matched to, so it becomes new (ticked). Undoing one charge of a group (several charges matched to one entry) undoes the whole group. Returns the updated review. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `connection_id` | integer | Yes | The connection ID from list_bank_connections. | | `item_id` | integer | Yes | A matched charge's ID from get_import_review. | #### `accept_import_review` Changes data. Finish a bank's review: Add the ticked transactions to the budget, link the matched ones to the person's own entries, and discard the rest. Later imports from this bank go straight in. Confirm with the person first, showing how many will be added (get_import_review counts.to_add). Returns {result: {added, linked, discarded}, connection}. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `connection_id` | integer | Yes | The connection ID from list_bank_connections. | #### `skip_import_review` Changes data. Skip a bank's review: Keep the connection but add nothing from its backfill. Only purchases from today on come in. Confirm with the person first: The held transactions are discarded. Returns {result: {added, linked, discarded}, connection}. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `connection_id` | integer | Yes | The connection ID from list_bank_connections. | #### `get_release_notes` Read only. Get Maple Budget's release notes (what's new), newest first. Each note has its id, version, platform ("all" or one app), released_at, title, body (lines starting with "- " are bullets), upvotes, downvotes, my_vote (1 up, -1 down, 0 none) and comment_count. Use the id with vote_release_note or comment_on_release_note. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `platform` | string | No | Only notes for this app ("ios", "android" or "web"), plus notes for every app. Omit for all notes. | #### `vote_release_note` Changes data. Vote on a release note as the user: Thumbs up, thumbs down, or clear their vote. Only vote when the user asks to. Each user has one vote per note; voting again replaces it. Returns the note's new upvotes, downvotes and my_vote. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `note_id` | integer | Yes | The note's id from get_release_notes. | | `vote` | string | Yes | "up", "down", or "clear" to remove the user's vote. | #### `comment_on_release_note` Changes data. Post a comment on a release note as the user. Only do this when the user asks you to. Comments show in the app under the user's first name and are sent to the Maple Budget team. Up to 1000 characters; a user can post 20 comments a day. Returns the posted comment: id, first_name, body, created_at and is_mine. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `note_id` | integer | Yes | The note's id from get_release_notes. | | `body` | string | Yes | The comment, in the user's words. | ### Feedback #### `send_feedback` Every connection. Tell the Maple Budget team when you can't do what the user asked with these tools, or something looks wrong: a tool you needed that doesn't exist, a missing field or option, a result that didn't match the user's accounts, an error, or a description that misled you. Say what you were trying to do and what would have helped. It doesn't change the user's data. Don't include card numbers, passwords or other secrets. | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `kind` | string | Yes | What kind of problem: missing_tool, wrong_result, error, confusing or other. | | `message` | string | Yes | What you were trying to do, what was missing or wrong, and what would have helped. | | `tool` | string | No | The tool it's about, if any. | | `example` | string | No | The call you made or wanted to make, and what came back. | --- ## Authentication > How AI apps sign in to Maple Budget, what read only and read and make changes allow, how API keys work, and how to revoke access. Source: https://maplebudget.com/docs/authentication.md There are two ways to give an app access to your Maple Budget: | | OAuth Sign-In | API Key | | --- | --- | --- | | Best for | Claude, ChatGPT, Claude Code and other MCP apps | Scripts, the local MCP server, apps without OAuth | | How | Paste `https://api.maplebudget.com/mcp` and sign in | Create a key in AI Apps and send it as a Bearer token | | Access | Read Only, or Read And Make Changes | Full access (reads and changes) | | Revoke | Disconnect the app in AI Apps | Revoke the key in AI Apps | ### OAuth Sign-In The hosted MCP server at `https://api.maplebudget.com/mcp` uses OAuth 2.1, so most apps connect with nothing more than the address. Your app handles the steps below for you: 1. It calls the server without a token and gets `401 Unauthorized` with a `WWW-Authenticate` header pointing at the server's metadata. 2. It reads `https://api.maplebudget.com/.well-known/oauth-protected-resource/mcp` and `https://api.maplebudget.com/.well-known/oauth-authorization-server`, registers itself (dynamic client registration, or a client ID metadata document) and opens the sign-in page with PKCE (`S256`). 3. You sign in to Maple Budget in the browser, see which app is asking, and choose **Read And Make Changes** or **Read Only**. 4. Your app gets an access token and a refresh token and sends `Authorization: Bearer ` on every request. Details for client developers: | Setting | Value | | --- | --- | | Authorize | `https://api.maplebudget.com/oauth/authorize` | | Token | `https://api.maplebudget.com/oauth/token` (grants: `authorization_code`, `refresh_token`) | | Register | `https://api.maplebudget.com/oauth/register` | | Revoke | `https://api.maplebudget.com/oauth/revoke` | | Scopes | `read`, `write` (`write` includes `read`). Asking for no scope asks for both. | | Client authentication | None (public clients with PKCE) | | Access token | Lasts 1 hour | | Refresh token | Lasts 30 days and is replaced on every refresh | | Sign-in link | Expires after 10 minutes | Because refreshing hands out a new 30-day refresh token, a connection you use keeps working. An app that goes unused for 30 days asks you to sign in again. ### Read Only Vs Read And Make Changes What you choose when you sign in decides which tools the app gets: - **Read Only** (`read`): only the tools that read, the ones named `get_…` and `list_…`. The app never sees the others. - **Read And Make Changes** (`read write`): every tool. Tools that change data are marked as destructive, so your app asks you before it uses one. You can grant less than an app asks for, never more. A connection can't widen its own access when it refreshes. To switch a Read Only connection to Read And Make Changes, disconnect it in AI Apps and connect again. The [Tool Reference](https://maplebudget.com/docs/mcp-tools) marks every tool as Read Only or Changes Data. ### API Keys API keys are for scripts and for the [local MCP server](https://maplebudget.com/docs/mcp-local), which runs on your own computer. 1. In the web app, open [Menu → AI Apps](https://app.maplebudget.com/menu/api-keys). 2. Under API Keys, choose **Create API Key**, give it a name (like "Claude Desktop") and choose **Generate Key**. 3. Copy the key. It starts with `mbk_` and is shown only once. Maple Budget only keeps a hash of it. Send it as a Bearer token: ```bash curl -X POST https://api.maplebudget.com/mcp \ -H "Authorization: Bearer mbk_your_key_here" \ -H "Content-Type: application/json" \ -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}' ``` For the local server, put the key in the `MAPLE_BUDGET_API_KEY` environment variable (see [Local Server: Quick Setup](https://maplebudget.com/docs/mcp-local)). A key isn't scoped: anything holding it can read and change your data, so keep it private. For an app that should only read, connect it with OAuth and choose Read Only instead. The hosted server never offers tools that create, list or revoke API keys. The local server does (`list_api_keys`, `create_api_key`, `revoke_api_key`), because it runs on your own computer with your own key. ### Revoking Access Everything connected to your account is in the web app under [Menu → AI Apps](https://app.maplebudget.com/menu/api-keys): - **Connected Apps**: each app you signed in to, with Read Only or Read And Make Changes and the date it connected. Choose **Disconnect** and it stops working right away; it has to sign in again to come back. Connecting the same app again from the same computer replaces its old connection. - **API Keys**: choose **Revoke** next to a key. Anything using it stops working right away, and this can't be undone. Apps can also revoke their own tokens at `https://api.maplebudget.com/oauth/revoke`. ### Rate Limits The hosted MCP server allows 5,000 requests per hour for each connection (one app for one person) or API key. The count resets at the top of each hour. Past the limit, requests get `429 Too Many Requests` with a `Retry-After` header giving the seconds until the reset. See [Errors](https://maplebudget.com/docs/errors). --- ## Errors > What a failed request or tool call returns from the Maple Budget MCP server, the messages you'll see most, and what to do about each. Source: https://maplebudget.com/docs/errors.md Errors from the hosted MCP server come back in one of three ways, depending on where they happen: | Where | What you get | Examples | | --- | --- | --- | | Before MCP runs | An HTTP status with a small JSON body | Not signed in (401), too many requests (429) | | In the MCP request | A JSON-RPC `error` object | Unknown tool, unknown method | | Inside a tool | A normal result with `isError: true` | Invalid category, transaction not found, read-only connection | Most errors an AI agent sees are tool errors. They're written so a model can read them, fix the call and try again, or explain the problem to the person. ### Tool Errors When a tool fails, the response is still a successful JSON-RPC result, with `isError` set to `true`. The text content and `structuredContent` hold the same JSON: `error` is what went wrong and `status` is the HTTP status Maple Budget's API answered with. ```json { "jsonrpc": "2.0", "id": 7, "result": { "isError": true, "content": [ { "type": "text", "text": "{\"error\": {\"errors\": \"Category must be an integer between 1 and 30.\"}, \"status\": 400}" } ], "structuredContent": { "error": { "errors": "Category must be an integer between 1 and 30." }, "status": 400 } } } ``` Most messages arrive as `{"errors": ""}` inside `error`. A few, like the read-only message below, are a plain string with no `status`. ### Common Errors | Message | Status | Cause | What to do | | --- | --- | --- | --- | | `This Connection Can Only Read. Reconnect To Allow Changes.` | | The connection is Read Only and the tool changes data | Tell the person. They can disconnect in AI Apps and connect again with Read And Make Changes. | | `Category must be an integer between 1 and 30.` | 400 | `category` isn't one of the 30 category ids | Use an id from [Categories](https://maplebudget.com/docs/categories). | | `Invalid tag IDs or tags do not match transaction category.` | 400 | A tag id doesn't exist or belongs to another category | Get tag ids from `get_on_launch_data` and use tags from the same category. | | `Month needs to be between 1 and 12 and year needs to be between 2000 and 2050.` | 400 | `month` or `year` is out of range | Send `month` 1 to 12 and a four-digit `year`. | | `Month And Year Must Be Integers.` | 400 | `month` or `year` isn't a whole number | Send numbers, like `month: 10, year: 2026`. | | `Invalid Date Format. Use 'YYYY-MM-DD'.` | 400 | A date isn't `YYYY-MM-DD` | Reformat the date, like `2026-10-31`. | | `Invalid amount spent. Must be a decimal number.` | 400 | `amount_spent` isn't a number | Send a decimal string, like `"42.50"` (negative for income). | | `Title Must Be Under 100 Characters.` | 400 | `title` is over 100 characters (`subtitle` has the same limit) | Shorten it. | | `Transaction Not Found.` | 404 | The transaction id doesn't exist or isn't the person's | Look the id up again with `get_transactions`. | | `Bad Arguments: …` | | A required argument is missing or an unknown one was sent | Check the tool's parameters in the [Tool Reference](https://maplebudget.com/docs/mcp-tools). | | `Something Went Wrong Running This Tool.` | | An unexpected server error | Try once more. If it keeps happening, tell the person and tell us with `send_feedback`. | | `Bad Arguments: message is required: …` | | `send_feedback` was called with an empty `message` | Say what you were trying to do and what was missing or wrong. | | `That's a lot of feedback for one day. …` | 429 | More than 50 `send_feedback` reports from this person today | Nothing was sent. Tell the person, and try again tomorrow. | Messages are passed through from Maple Budget's API as written, so their capitalization varies. ### Tell Us If an error doesn't make sense, a tool you need doesn't exist, or a result doesn't match the person's accounts, tell us with `send_feedback`. Pick a `kind` (`missing_tool`, `wrong_result`, `error`, `confusing` or `other`), say what you were trying to do and what would have helped, and add the `tool` and an `example` if you have them. Every connection can send it, Read Only too, and it doesn't change the person's data. It comes back with "Sent to the Maple Budget team. Thanks." Don't include card numbers, passwords or other secrets. ### Request Errors These come back before any tool runs. | Status | Body | Cause | What to do | | --- | --- | --- | --- | | 401 | `{"error": "unauthorized", "error_description": "Sign In To Maple Budget."}` | No token, or the token expired or was revoked | MCP apps refresh or sign in again on their own. With an API key, check it hasn't been revoked. | | 403 | `{"error": "origin_not_allowed"}` | A browser page on another site called the server | Call it from your app or server, not from a web page. | | 429 | `{"error": "rate_limited", "error_description": "Too Many Requests."}` | More than 5,000 requests this hour for this connection or key | Wait the number of seconds in `Retry-After`. | | 400 | JSON-RPC error `-32700` `Parse Error` | The body isn't valid JSON | Send one JSON-RPC message as JSON. | | 400 | JSON-RPC error `-32600` `Batches Aren't Supported` | The body is a JSON array | Send one message per request. | | 405 | | A `GET` request | Use `POST`. There's no standing event stream. | The 401 response includes `WWW-Authenticate: Bearer resource_metadata="…", scope="read write"`, which is how MCP apps find the sign-in page. See [Authentication](https://maplebudget.com/docs/authentication). ### JSON-RPC Errors | Code | Message | Cause | | --- | --- | --- | | `-32602` | `Unknown Tool: ` | No tool has that name. Call `tools/list` for the current list. | | `-32602` | `arguments Must Be An Object` | `arguments` was sent as something other than an object | | `-32601` | `Method Not Found: ` | The server supports `initialize`, `ping`, `tools/list` and `tools/call` | | `-32600` | `Invalid Request` | The message isn't valid JSON-RPC 2.0 | ### Local Server Errors The [local server](https://maplebudget.com/docs/mcp-local) calls Maple Budget's API with your API key. When the API answers with an error, the tool fails with the HTTP status and the address it called, for example: ```text Error executing tool add_transaction: 400 Client Error: Bad Request for url: https://api.maplebudget.com/api/transactions/add/ ``` The API's own message isn't included, so check the arguments against the table above. A `401 Client Error: Unauthorized` means the key in `MAPLE_BUDGET_API_KEY` is missing, mistyped or revoked: create a new one in [AI Apps](https://app.maplebudget.com/menu/api-keys). --- ## Categories > The 30 spending categories in Maple Budget, with the id every tool takes and the name people see. Source: https://maplebudget.com/docs/categories.md Every transaction, recurring transaction, tag and budget in Maple Budget belongs to one of 30 categories. Tools take the category as a number (`category: 6`), and the person sees the name (Eating Out). The ids and names are the same for everyone; each person sets their own budget per category. ### Category IDs | ID | Name | | --- | --- | | 1 | Healthcare | | 2 | Car | | 3 | Income | | 4 | Hobbies | | 5 | Investments | | 6 | Eating Out | | 7 | Groceries | | 8 | Travel | | 9 | Subscriptions | | 10 | Rent | | 11 | Savings | | 12 | Transportation | | 13 | Beauty | | 14 | Social Events | | 15 | Clothing | | 16 | Pets | | 17 | Home | | 18 | Drinks | | 19 | Loans | | 20 | Utilities | | 21 | Coffee Shops | | 22 | School | | 23 | Insurance | | 24 | Miscellaneous | | 25 | Gadgets | | 26 | Donations | | 27 | Wellness | | 28 | Gym + Sports | | 29 | Emergency Fund | | 30 | Taxes | ### Using Categories - `add_transaction`, `update_transaction`, `add_recurring_transaction`, `create_split` and `add_tag` take `category` as an id from this list. - An id outside 1 to 30 fails with `Category must be an integer between 1 and 30.` See [Errors](https://maplebudget.com/docs/errors). - Income is category 3. Log income with a negative `amount_spent`, like `"-1600.00"`. - Tags live inside a category. A transaction can only use tags from its own category; `get_on_launch_data` lists each tag with its category. - `get_categories` and `get_categorical_overview` return each category's spending and budget for a month. --- ## Apple Pay Automation > Log every Apple Pay purchase to Maple Budget automatically on iPhone: add the Log Expense shortcut, create the Wallet automation in Shortcuts, then pay. Two minutes, once. Source: https://maplebudget.com/docs/apple-pay-automation.md Once this is set up, every Apple Pay purchase on your iPhone or Apple Watch is logged to Maple Budget by itself, with the amount, the store, the card and a category. It takes about two minutes, once. Video of every tap: https://maplebudget.com/videos/apple-pay-automation.mp4 ### What You Need - An iPhone with iOS 17 or later (built and tested on iOS 27). - Maple Budget 1.6.4 or later from the App Store, signed in. - Apple Pay set up in Wallet. ### Step 1: Add The Shortcut In Maple Budget, open **Menu → Shortcuts → Apple Pay Automation** and tap **Add Shortcut**. The Shortcuts app opens with Log Expense; tap **Add Shortcut** again. You can also [get the shortcut here](https://www.icloud.com/shortcuts/f3f7233ca4494b9690da6add51ac85e5). ### Step 2: Create The Wallet Automation This is the part that runs Log Expense each time you pay. The video above shows every tap. 1. Open the Shortcuts app, go to the Automation tab and tap +. 2. Search "Wallet" and pick "When I Tap A Wallet Card Or Pass". Leave it on Any Card. 3. Search "Log" and add Log Expense (from Maple Budget). 4. Tap Amount, choose Transaction, then choose Amount. 5. Tap Merchant, choose Transaction, then choose Merchant. 6. Tap the "When Any Card Is Tapped" trigger and make sure Automation is on. ### Step 3: Pay With Apple Pay Buy something with Apple Pay. A notification shows what Maple logged, and the purchase is in your transactions right away. In the app, the setup page ticks itself off. ### Why Two Steps iOS doesn't let an app or a shared shortcut add a Wallet automation for you: when you add a shared shortcut, iPhone drops its Wallet trigger. So you add Maple's Log Expense shortcut, then create the Wallet automation yourself once. ### Troubleshooting - **Nothing arrives after paying:** open the automation in Shortcuts and check Automation is on, and that Amount and Merchant are set to the Transaction's Amount and Merchant. - **"No Purchase Came Through" when you run it yourself:** that's expected. Log Expense only gets a purchase when you actually pay with Apple Pay. - **Check Maple can receive purchases:** in Maple, tap **Send A Test** on the Apple Pay Automation page. - **Still stuck?** Email [hello@maplebudget.com](mailto:hello@maplebudget.com). More about Maple's iPhone Shortcuts, including Back Tap for cash, is on [iPhone Shortcuts](https://maplebudget.com/iphone-shortcuts). --- ## Local Server: Quick Setup > Prefer to run the MCP server on your own computer with an API key? Already have Python and Claude Desktop? Five minutes. Source: https://maplebudget.com/docs/mcp-local.md Already have Python and Claude Desktop installed? This is the fast track. You'll be up and running in under 5 minutes. --- ### Step 1: Download and Install the MCP Server Open your terminal and run the following to create the server directory, download the MCP server file, and install its dependencies: **macOS:** ``` mkdir -p ~/.maple-budget curl -o ~/.maple-budget/mcp-server.py https://maplebudget.com/mcp-server.py pip3 install mcp requests ``` **Windows (Command Prompt):** ``` mkdir "%USERPROFILE%\.maple-budget" curl -o "%USERPROFILE%\.maple-budget\mcp-server.py" https://maplebudget.com/mcp-server.py pip install mcp requests ``` --- ### Step 2: Create an API Key 1. Go to [app.maplebudget.com/menu/api-keys](https://app.maplebudget.com/menu/api-keys) 2. Click **"Create API Key"**, give it a name like **"Claude Desktop"**, and click **"Generate Key"** 3. Copy the API key immediately (starts with `mbk_`). You won't be able to see it again. ![MapleBudget API keys setup page with text and buttons on a white background](https://maplebudget.com/images/docs/Maple_Budget_API_Page.png) --- ### Step 3: Add the Config to Claude Desktop Open Claude Desktop and go to **Settings > Developer > Edit Config**. This opens `claude_desktop_config.json`. Paste the following, replacing `YOUR_API_KEY_HERE` with the key you just copied: **macOS:** ``` { "mcpServers": { "maple-budget": { "command": "python3", "args": ["~/.maple-budget/mcp-server.py"], "env": { "MAPLE_BUDGET_API_KEY": "YOUR_API_KEY_HERE" } } } } ``` **Windows:** ``` { "mcpServers": { "maple-budget": { "command": "python", "args": ["C:\\Users\\YOUR_USERNAME\\.maple-budget\\mcp-server.py"], "env": { "MAPLE_BUDGET_API_KEY": "YOUR_API_KEY_HERE" } } } } ``` If you already have other MCP servers in this file, just add `"maple-budget": { ... }` inside the existing `"mcpServers"` object. --- ### Step 4: Restart and Verify Fully quit Claude Desktop (`Cmd + Q` on macOS, or right-click the system tray icon on Windows) and reopen it. Start a new conversation and you should see the MCP tools icon near the text input. Try asking: > *"What's my budget summary for this month?" or "Here's my credit card statement, can you upload it all into Maple Budget and then analyze my spending?"* If you see your real data, you're all set on Maple Budget! --- ### One-Shot Setup Script If you want to do everything in one go, copy and paste this entire block into your terminal. It will prompt you for your API key and set up everything automatically. #### macOS / Linux ``` # ----- Maple Budget MCP Server: One-Shot Setup ----- # 1. Create the server directory mkdir -p ~/.maple-budget # 2. Download the MCP server curl -o ~/.maple-budget/mcp-server.py https://maplebudget.com/mcp-server.py # 3. Install Python dependencies pip3 install mcp requests # 4. Prompt for your API key echo "" echo "Paste your Maple Budget API key (from https://app.maplebudget.com/menu/api-keys):" read -r MAPLE_KEY # 5. Detect the python command if command -v python3 &> /dev/null; then PY_CMD="python3" else PY_CMD="python" fi # 6. Write the Claude Desktop config CONFIG_DIR="$HOME/Library/Application Support/Claude" CONFIG_FILE="$CONFIG_DIR/claude_desktop_config.json" mkdir -p "$CONFIG_DIR" cat > "$CONFIG_FILE" << ENDOFCONFIG { "mcpServers": { "maple-budget": { "command": "$PY_CMD", "args": ["$HOME/.maple-budget/mcp-server.py"], "env": { "MAPLE_BUDGET_API_KEY": "$MAPLE_KEY" } } } } ENDOFCONFIG echo "" echo "Done! Config written to: $CONFIG_FILE" echo "Now fully quit Claude Desktop (Cmd+Q) and reopen it." echo "Start a new conversation and try: What's my budget summary for this month?" ``` #### Windows (PowerShell) ``` # ----- Maple Budget MCP Server: One-Shot Setup ----- # 1. Create the server directory New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.maple-budget" # 2. Download the MCP server Invoke-WebRequest -Uri "https://maplebudget.com/mcp-server.py" -OutFile "$env:USERPROFILE\.maple-budget\mcp-server.py" # 3. Install Python dependencies pip install mcp requests # 4. Prompt for your API key Write-Host "" $MAPLE_KEY = Read-Host "Paste your Maple Budget API key (from https://app.maplebudget.com/menu/api-keys)" # 5. Build the server path with escaped backslashes for JSON $serverPath = "$env:USERPROFILE\.maple-budget\mcp-server.py" -replace '\\', '\\' # 6. Write the Claude Desktop config $configDir = "$env:APPDATA\Claude" $configFile = "$configDir\claude_desktop_config.json" New-Item -ItemType Directory -Force -Path $configDir @" { "mcpServers": { "maple-budget": { "command": "python", "args": ["$serverPath"], "env": { "MAPLE_BUDGET_API_KEY": "$MAPLE_KEY" } } } } "@ | Set-Content -Path $configFile Write-Host "" Write-Host "Done! Config written to: $configFile" Write-Host "Now fully quit Claude Desktop and reopen it." Write-Host "Start a new conversation and try: What's my budget summary for this month?" ``` **Important:** If you already have other MCP servers configured in `claude_desktop_config.json`, the one-shot script will overwrite your existing config. In that case, use Steps 1-3 above and manually add the `"maple-budget"` entry to your existing config file instead. --- ## Local Server: Full Guide > Run the MCP server on your own computer, from zero: Python, Claude Desktop, the server file and your API key. Most people should connect the hosted server instead. Source: https://maplebudget.com/docs/mcp.md > **Easier way:** Claude can connect to Maple Budget directly, with no Python and no API key. See [Connect Claude](https://maplebudget.com/docs/mcp-quick-setup). A complete, step-by-step guide to connecting Claude to your Maple Budget account using the Model Context Protocol (MCP). By the end of this guide, you'll be able to ask things like *"What did I spend on groceries this month?"* or *"Add a $50 transaction for dinner"* to Claude and other AI tools and it will read and write directly to your Maple Budget data. This guide assumes you're starting from zero: no Claude, no Python, nothing. We'll walk through every single step. --- ### What Is MCP? The **Model Context Protocol (MCP)** is an open standard that lets AI assistants like Claude connect to external tools and data sources. Think of it like giving Claude a set of superpowers, instead of just chatting, it can actually *do* things on your behalf. In this case, we're setting up an MCP server that acts as a bridge between Claude and the Maple Budget API. Once connected, Claude can: - Read your transactions, budgets, and categories on Maple Budget - Add, update, or delete transactions - View your investment portfolio and net worth on Maple Finance - Check live market prices for stocks in your portfolio on Maple Finance - And much more! The MCP server runs locally on your computer. Your API key never leaves your machine. Claude talks to the local server, and the server talks to Maple Budget's API. --- ### What You'll Need - A computer running **macOS** or **Windows** - A **Maple Budget account** (sign up at [app.maplebudget.com](https://app.maplebudget.com) if you don't have one) - An internet connection (Wi-Fi or data works) - About 10 minutes --- ### Step 1: Install Python The MCP server is written in Python, so we need Python installed first. #### macOS **Option A: Download from python.org (Recommended for beginners)** 1. Go to [python.org/downloads](https://www.python.org/downloads/) 2. Click the big yellow **"Download Python 3.x.x"** button 3. Open the downloaded `.pkg` file 4. Click through the installer. The defaults are fine 5. When it finishes, open **Terminal** (search for "Terminal" in Spotlight, or find it in Applications → Utilities) **Option B: Install via Homebrew (if you already have it)** ``` brew install python ``` #### Windows 1. Go to [python.org/downloads](https://www.python.org/downloads/) 2. Click the big yellow **"Download Python 3.x.x"** button 3. Run the downloaded `.exe` installer 4. **Important:** Check the box that says **"Add python.exe to PATH"** at the bottom of the first screen 5. Click **"Install Now"** 6. When it finishes, open **Command Prompt** (search for "cmd" in the Start menu) #### Verify Python Is Installed Open your terminal (Terminal on macOS, Command Prompt on Windows) and run: ``` python3 --version ``` You should see something like `Python 3.12.x`. If `python3` doesn't work, try: ``` python --version ``` > **Note:** Throughout this guide, we'll use `python3` and `pip3`. If those don't work on your system, try `python` and `pip` instead. --- ### Step 2: Install Claude Desktop Claude Desktop is Anthropic's desktop app for Claude. It's what will actually connect to the MCP server. 1. Go to [claude.ai/download](https://claude.ai/download) 2. Download the version for your operating system (macOS or Windows) 3. **macOS:** Open the downloaded `.dmg` file and drag Claude to your Applications folder 4. **Windows:** Run the downloaded installer 5. Open Claude Desktop and sign in with your Anthropic account (create one if needed at [claude.ai](https://claude.ai)) Once you can open Claude and send a message, you're good to move on. --- ### Step 3: Download the MCP Server File The MCP server is a single Python file that you'll save to a specific folder on your computer. #### Download the File 1. Go to the Maple Budget API Keys page: [app.maplebudget.com/menu/api-keys](https://app.maplebudget.com/menu/api-keys) 2. Under **Setup**, click the **mcp-server.py** download button 3. The file will download to your Downloads folder ![MapleBudget API keys setup page with text and buttons on a white background](https://maplebudget.com/images/docs/Maple_Budget_API_Page.png) #### Move It to the Right Location We need to put the file in a folder called `.maple-budget` in your home directory. This is where Claude will look for it. **macOS: Open Terminal and run:** ``` mkdir -p ~/.maple-budget mv ~/Downloads/mcp-server.py ~/.maple-budget/mcp-server.py ``` **Windows: Open Command Prompt and run:** ``` mkdir "%USERPROFILE%\.maple-budget" move "%USERPROFILE%\Downloads\mcp-server.py" "%USERPROFILE%\.maple-budget\mcp-server.py" ``` #### Verify the File Is in Place **macOS:** ``` cat ~/.maple-budget/mcp-server.py | head -5 ``` **Windows:** ``` type "%USERPROFILE%\.maple-budget\mcp-server.py" | more ``` You should see the first few lines of the file, starting with: ``` """\nMaple Budget MCP Server\n... ``` --- ### Step 4: Install Python Dependencies The MCP server needs two Python packages: `mcp` (the Model Context Protocol SDK) and `requests` (for making HTTP calls to the Maple Budget API). Open your terminal and run: ``` pip3 install mcp requests ``` If `pip3` doesn't work, try: ``` pip install mcp requests ``` You should see output showing the packages being downloaded and installed. When it's done, you'll see something like: ``` Successfully installed mcp-x.x.x requests-x.x.x ``` > **Troubleshooting:** If you get a "permission denied" error, try adding `--user` to the end: > `pip3 install mcp requests --user` --- ### Step 5: Create a Maple Budget API Key The API key is what authenticates the MCP server with your Maple Budget account. Think of it like a password specifically for this connection. 1. Log in to Maple Budget and go to the API Keys page: [app.maplebudget.com/menu/api-keys](https://app.maplebudget.com/menu/api-keys) 2. Click **"Create API Key"** 3. Give it a name, something like **"Claude Desktop"** so you remember what it's for 4. Click **"Generate Key"** 5. **Important:** You'll see your API key displayed. It looks something like `mbk_abc123...`. **Copy this key immediately** because you won't be able to see it again on Maple Budget. Keep this key somewhere safe for the next step. You can paste it into a temporary note. We'll need it in just a moment. > **Security Note:** Treat this API key like a password. Don't share it publicly or commit it to version control. If you ever suspect it's been compromised, you can revoke it from the API Keys page and create a new one. --- ### Step 6: Configure Claude Desktop Now we need to tell Claude Desktop where to find the MCP server and how to authenticate it. This is done through a JSON configuration file. #### Open the Claude Desktop Config File **macOS:** 1. Open Claude Desktop 2. In the menu bar at the top of your screen, click **Claude → Settings** 3. Click **Developer** in the left sidebar 4. Click **"Edit Config"** This will open a file called `claude_desktop_config.json` in your text editor. If the file is empty or doesn't exist yet, that's fine. **Windows:** 1. Open Claude Desktop 2. Click on the **hamburger menu (☰)** in the top-left corner, then go to **File → Settings** 3. Click **Developer** in the left sidebar 4. Click **"Edit Config"** Alternatively, you can navigate to the file directly: - **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json` - **Windows:** `%APPDATA%\Claude\claude_desktop_config.json` #### Add the MCP Server Configuration Replace the contents of `claude_desktop_config.json` with the following. **Make sure to replace `YOUR_API_KEY_HERE` with the actual API key you copied in Step 5:** **macOS:** ``` { "mcpServers": { "maple-budget": { "command": "python3", "args": [ "~/.maple-budget/mcp-server.py" ], "env": { "MAPLE_BUDGET_API_KEY": "YOUR_API_KEY_HERE" } } } } ``` **Windows:** ``` { "mcpServers": { "maple-budget": { "command": "python", "args": [ "C:\\Users\\YOUR_USERNAME\\.maple-budget\\mcp-server.py" ], "env": { "MAPLE_BUDGET_API_KEY": "YOUR_API_KEY_HERE" } } } } ``` > **Windows users:** Replace `YOUR_USERNAME` with your actual Windows username (the name of your user folder in `C:\Users\`). #### What This Config Does | Field | Purpose | | --- | --- | | `"maple-budget"` | A name for this MCP server (can be anything, but this is descriptive) | | `"command"` | The program to run (`python3` on macOS, `python` on Windows) | | `"args"` | The path to the MCP server file we downloaded earlier | | `"env"` | Environment variables. This is where your API key goes | #### If You Already Have Other MCP Servers If your config file already has other MCP servers configured, just add `"maple-budget"` alongside them inside the `"mcpServers"` object: ``` { "mcpServers": { "some-other-server": { "...": "..." }, "maple-budget": { "command": "python3", "args": [ "~/.maple-budget/mcp-server.py" ], "env": { "MAPLE_BUDGET_API_KEY": "YOUR_API_KEY_HERE" } } } } ``` Save the file and close the text editor. --- ### Step 7: Restart Claude and Verify 1. **Fully quit Claude Desktop** (not just close the window): 2. **macOS:** Right-click the Claude icon in the Dock → Quit, or use `Cmd + Q` 3. **Windows:** Right-click Claude in the system tray → Quit 4. **Reopen Claude Desktop** 5. Start a new conversation and look for the **MCP tools icon**, which looks like a small hammer icon near the text input. Click it and you should see a list of Maple Budget tools. 6. Try asking Claude something like: > *"What's my budget summary for this month?"* If Claude responds with your actual budget data, congratulations, everything is working! --- ### The Real Power of MCP The examples above just scratch the surface. The real magic happens when you combine Claude's intelligence with Maple Budget's data in ways that would be tedious or impossible to do manually. #### Bulk Import From Credit Card Statements This is one of the most powerful use cases. Instead of manually entering dozens of transactions one by one, you can upload a PDF or screenshot of your credit card or bank statement directly into Claude. Claude will read every line item, parse the merchant names, amounts, and dates, and then use the MCP server to add each transaction into Maple Budget for you automatically. Just drag and drop your statement into the Claude chat and say something like: - *"Here's my Visa statement for March. Please add all of these transactions to Maple Budget and categorize them."* - *"I have a CSV export from my bank. Import all transactions from this file into my budget."* - *"Here's a screenshot of my Amex app showing recent charges. Add these to Maple Budget under my Amex payment method."* Claude will go through each transaction, match it to the right category based on the merchant name, and add them all in seconds. What would normally take 20+ minutes of manual data entry becomes a single message. #### Smart Analysis and Insights Because Claude can read all of your financial data at once, it can spot patterns and give you insights that would take a long time to figure out on your own: - *"Compare my spending this month to last month. Where did I overspend?"* - *"Am I on track to hit my savings goal this year based on my current spending?"* - *"What are my top 5 biggest expense categories over the past 3 months, and how are they trending?"* - *"Look at my recurring transactions. Are there any subscriptions I might have forgotten about?"* #### Portfolio Management Managing investments becomes conversational. You can log trades, rebalance, and get analysis without navigating through multiple screens: - *"I just bought 15 shares of MSFT at $420. Log that trade in my TFSA account."* - *"What's my current asset allocation? Am I overweight in any sector?"* - *"Show me how my portfolio has performed against the S&P 500 this year."* - *"Take a snapshot of my net worth right now."* #### Natural Language Everything The biggest shift is that you no longer need to navigate menus, click buttons, or fill out forms. You just say what you want in plain English, and Claude handles the rest. Want to add a transaction, check your budget, and log a trade all in the same conversation? Go for it. Claude has access to your entire Maple Budget account and can handle multiple requests back to back without missing a beat. --- Once connected, Claude has access to over 50 tools across your entire Maple Budget account. Here are some examples of things you can ask: #### Budget - *"What did I spend on dining out this month?"* - *"Add a $45.00 grocery transaction at Costco for today"* - *"Show me my recurring transactions"* - *"What's my categorical breakdown for February?"* #### Investments - *"What's my current portfolio value?"* - *"Show me all my investment accounts"* - *"Log a trade: bought 10 shares of AAPL at $195"* #### Net Worth - *"Create a snapshot of my net worth"* - *"How has my net worth changed over the past 6 months?"* #### Market Data - *"What's the current price of AAPL?"* - *"Show me my watchlist"* - *"How has the S&P 500 performed this year?"* --- ### Troubleshooting #### Claude Doesn't Show the MCP Tools Icon - Make sure you fully quit and reopened Claude Desktop (not just closed the window) - Double-check that `claude_desktop_config.json` is valid JSON (no trailing commas, matching brackets). You can validate it at [jsonlint.com](https://jsonlint.com) - Ensure the file path in `"args"` points to where you actually saved `mcp-server.py` #### "Python not found" or "command not found" Errors - **macOS:** Try changing `"command"` from `"python3"` to the full path. Run `which python3` in Terminal to find it. It's commonly `/usr/local/bin/python3` or `/opt/homebrew/bin/python3` - **Windows:** Make sure you checked "Add python.exe to PATH" during installation. If you missed it, reinstall Python and check that box #### "ModuleNotFoundError: No module named 'mcp'" The Python packages weren't installed, or were installed for a different Python version. Try: ``` python3 -m pip install mcp requests ``` If you have multiple Python versions, make sure the `python3` in your config command matches the one you installed packages for. #### "Invalid API key" or Authentication Errors - Make sure you copied the full API key (it starts with `mbk_`) - Check that there are no extra spaces or line breaks in the key in your config file - Verify the key is still active at [app.maplebudget.com/menu/api-keys](https://app.maplebudget.com/menu/api-keys) #### Claude Says It Can't Access Maple Budget Tools - Start a **new conversation** because MCP servers connect at the start of each conversation - Check Claude Desktop's logs for errors: - **macOS:** `~/Library/Logs/Claude/mcp*.log` - **Windows:** `%APPDATA%\Claude\logs\mcp*.log` #### Need to Start Over? 1. Revoke your old API key at [app.maplebudget.com/menu/api-keys](https://app.maplebudget.com/menu/api-keys) 2. Create a new one 3. Update the key in `claude_desktop_config.json` 4. Restart Claude Desktop --- ### Summary Here's a recap of everything we did: | Step | What We Did | | --- | --- | | 1 | Installed Python | | 2 | Installed Claude Desktop | | 3 | Downloaded `mcp-server.py` and placed it in `~/.maple-budget/` | | 4 | Installed Python dependencies (`mcp` and `requests`) | | 5 | Created an API key on Maple Budget | | 6 | Added the MCP server config to Claude Desktop's settings | | 7 | Restarted Claude and verified the connection | That's it. Claude now has full access to your Maple Budget data. Ask it anything about your finances, and it'll pull the data directly from your account.