MCP Server (AI Assistants)
Budget Thing runs a Model Context Protocol server, so an AI assistant can read a budget and, if you allow it, make a few kinds of change. This chapter is the technical reference. For step-by-step setup in specific apps, see Connect an AI Assistant in the help center.
The server is in beta. It is available on every paid plan and not on Free.
This chapter covers:
- Overview (this page): the endpoint, authentication, how authorization works, and a quickstart.
- Tool Reference: every tool, its arguments, what it returns and an example call.
- Idempotency and Confirmations: how retries and bulk changes are kept safe.
- OAuth Connectors and Connected Apps: sign-in for claude.ai and ChatGPT (not yet enabled).
- Errors and Audit: tool error codes and the audit record.
Endpoint
POST https://api.budgetthing.com/api/v1/mcp
The server uses the MCP streamable HTTP transport in stateless mode with
JSON responses. There is no session: every request stands on its own, and GET
and DELETE on the endpoint are not supported. Send
Accept: application/json, text/event-stream, as the transport requires.
Authentication
Send a personal access token as a bearer token:
Authorization: Bearer bt_pat_…
The endpoint also accepts an OAuth 2.1 access token issued to a connected app
(see OAuth sign-in for connectors). A browser
session is refused with 401, even when it is valid, so a web page can never
drive the endpoint with a visitor's cookies.
The PAT screen has two presets for this:
| Preset | Scopes |
|---|---|
| AI assistant: read only | accounts:read, attachments:read, bank-sync:read, bills:read, business:read, categories:read, clients:read, debt:read, events:read, funding:read, income-schedules:read, invoices:read, payees:read, planning:read, projects:read, quotes:read, reports:read, scenarios:read, tags:read, time:read, transaction-rules:read, transactions:read, workspaces:read |
| AI assistant: read and write | All of the above, plus accounts:write (investment targets only), bank-sync:write, bills:write, categories:write, clients:write, debt:write, funding:write, income-schedules:write, invoices:write, payees:write, planning:write, projects:write, quotes:write, time:write, transaction-rules:write, transactions:write |
The read and write preset covers the business write tools, so you don't need a custom token for them. Each preset only selects scopes the PAT screen offers.
Both presets restrict the token to one workspace unless you choose otherwise.
Both also create the token as MCP-only (mcpOnly): it works on this
endpoint and is refused everywhere else with PERSONAL_ACCESS_TOKEN_MCP_ONLY,
so an assistant that reads the token from its configuration can't call REST
operations the tool catalog withholds, such as sending a quote or invoice
or deleting a transaction. When you create a token yourself through the API,
set "mcpOnly": true for the same effect.
With a workspace-restricted token you can leave workspace_id out of every
tool call.
How authorization works
Every tool is a thin view over exactly one REST operation, and a tool call is executed as that operation, with your token. Everything that applies to a REST call applies to the tool call in the same way:
- the token's scopes and workspace restriction,
- your role in the workspace (a viewer cannot write),
- the workspace's plan, including read-only mode when it is over its plan limits,
- the normal rate limits, plus the MCP budgets described there.
On top of that, the workspace's owner must be on a plan that includes AI
assistant connections. A workspace without it returns the tool error
plan_feature_required.
The bills tools also need a plan that includes
bills. The MCP server checks this before the tool runs and returns
plan_feature_required if the plan doesn't include it. This is stricter than
REST, where bills you created before a downgrade stay readable. The
Debt Center tools need no plan feature:
debt reads stay open after a downgrade. The
business tools are checked the same way as
the bills tools: each needs the business feature its operation belongs to
(business tools, clients, business reports or tax planning, all part of Solo
Business), and works only in a business workspace.
tools/list returns every tool, whatever the plan. A token can reach several
workspaces on different plans, and clients cache the tool list, so the tools are
always listed and the check happens when a tool is called. Each gated tool's
description says which plan it needs.
Quickstart
This example uses curl and a token made with the AI assistant: read only
preset, restricted to one workspace.
-
List the tools. The result lists each tool's name, description, input schema and annotations.
curl https://api.budgetthing.com/api/v1/mcp \-H "Authorization: Bearer $BUDGETTHING_TOKEN" \-H "Content-Type: application/json" \-H "Accept: application/json, text/event-stream" \-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}' -
Call a tool. This lists the workspace's accounts and balances:
curl https://api.budgetthing.com/api/v1/mcp \-H "Authorization: Bearer $BUDGETTHING_TOKEN" \-H "Content-Type: application/json" \-H "Accept: application/json, text/event-stream" \-d '{"jsonrpc": "2.0","id": 2,"method": "tools/call","params": {"name": "list_accounts", "arguments": {}}}'The result carries the same JSON as the REST operation
list-accounts, as text incontent[0].textand parsed instructuredContent:{"jsonrpc": "2.0","id": 2,"result": {"content": [{"type": "text", "text": "{\"accounts\":[…]}"}],"structuredContent": {"accounts": [{"id": "acct_8Vb2Nq6Xz1Wm4Kd7Rj9Lt", "name": "Checking", "balanceMinor": 254310, "balanceDisplay": "$2,543.10", "…": "…"}]}}} -
Connect your AI app. Most apps only need the endpoint URL and the
Authorizationheader; the app sendsinitialize,tools/listandtools/callfor you. See Connect an AI Assistant.
Tools
There are 211 tools: 109 read tools and 102 write tools. The Tool Reference describes each one.
Read tools
list_workspaces,
list_accounts,
get_account_investment_summary,
list_account_valuations,
get_account_investment_target,
search_transactions,
get_transaction,
list_categories,
list_category_targets,
get_budget_period,
get_funding_screen,
get_budget_performance,
get_spending_by_category_report,
get_income_vs_expense_report,
get_net_worth_report,
get_cash_flow_report,
get_spending_by_payee_report,
get_balance_over_time_report,
get_savings_growth_report,
get_age_of_money_report,
get_net_worth_forecast_report,
get_account_balance_forecast,
get_payee_report,
get_spending_trends_report,
get_category_report,
get_goal_trackers_report,
list_inbox,
list_payees,
list_tags.
Every report in the app has a tool: net worth, cash flow, spending by category,
spending by payee, income vs. expense, spending trends, balance over time, age of
money, net worth forecast, and the payee and category period reports.
Report tools offer the same filters as their REST operations. Repeatable filters
such as accountId, categoryId and payeeId take a list, for example
"payeeId": ["vnd_…"]. To answer "how much did I spend at Tesco each month this
year", an assistant calls list_payees for the payee ID and then
get_payee_report with interval set to month. To answer "how many grocery
transactions did I have in Q3", it calls list_categories and then
get_category_report with interval set to total and reads
transactionCount.
Bills tools
These need a plan that includes bills.
list_bills,
list_upcoming_bills,
get_bill,
get_bill_occurrence,
get_bill_obligations,
get_bill_costs,
get_bill_price_history,
list_bill_price_changes.
list_bill_suggestions finds payments that look like a bill nobody entered (bills:read).
acknowledge_bill_price_change dismisses a price change (bills:write, confirmed).
set_bill_reminder_muted stops or resumes the signed-in user's reminder emails for one bill (bills:write).
Income schedule and scenario tools
list_income_schedules,
get_income_schedule and
list_income_occurrences
need income-schedules:read. The write tools
create_income_schedule,
update_income_schedule,
delete_income_schedule,
set_income_occurrence_override and
clear_income_occurrence_override
need income-schedules:write.
list_scenarios,
get_scenario and
get_scenario_forecast read
saved what-if scenarios and need scenarios:read. None of these has a plan
requirement of its own.
Round-up tools
get_round_up_settings and
list_round_up_categories
work on every plan that can use MCP.
update_round_up_settings and
update_round_up_categories
are write tools. Round-up has no plan requirement of its own.
Debt Center tools
The tools that read work on any plan: what-if
simulations and strategy comparisons are never saved. The tools that change the
plan (listed under write tools) need debt:write and a plan that includes the
Debt Center.
get_debt_plan,
list_debts,
get_debt_payoff_projection,
simulate_debt_payoff,
simulate_debt_balance_transfer,
compare_debt_payoff_strategies,
get_debt_payoff_history,
get_debt_payments_due,
list_debt_required_payments,
list_untracked_debts,
list_eligible_debt_accounts.
Activity history tools
They need events:read and only read:
list_events,
get_event,
list_event_types.
Saved transaction filter tools
list_transaction_filters and
get_transaction_filter only
read the caller's own filters and need transactions:read.
Attachment tools
attachment_usage,
list_workspace_attachments and
list_attachments need
attachments:read and return metadata only, never a file or a download link.
Connected apps (OAuth) that were allowed to read already hold the scope, so
they get these tools as soon as this ships. AI-assistant access tokens created
before the scope joined the preset don't have it; create a new token to get it.
Transaction rules tools
get_transaction_rule_schema and
preview_transaction_rule_on_existing_transactions
read and need transaction-rules:read, as do
list_transaction_rules,
get_transaction_rule and
get_transaction_rule_run.
apply_transaction_rule_to_existing_transactions
and undo_transaction_rule_run
are write tools and need transaction-rules:write and transactions:write.
Business tools
These work only in a business workspace, on a plan that includes the feature each tool names. There are 36 read tools (business profile, clients, projects and tasks, time, quotes, invoices, payments, reminders, recurring invoice schedules and the business reports) and 48 write tools (clients, projects, tasks, time, quotes, invoices and payments). The Tool Reference lists them under Business and Business write tools.
Other read tools
list_bill_card_payments (a plan
with bills; needs bills:read and transactions:read) and
list_payee_aliases, list_recurring_transactions and
get_recurring_transaction.
Write tools
set_account_investment_target,
delete_account_investment_target,
add_transaction,
update_transaction,
create_category,
update_category,
set_category_target,
set_planned_amounts,
move_budget,
assign_budget,
update_round_up_settings,
update_round_up_categories,
approve_inbox_item,
categorize_inbox_item,
create_payee,
merge_payees,
rename_payee,
acknowledge_bill_price_change,
bulk_set_transaction_category,
bulk_set_transaction_payee,
bulk_set_transaction_account,
bulk_set_transaction_cleared,
bulk_update_transaction_tags,
bulk_approve_inbox_items,
apply_payee_to_matching_inbox_items,
create_payee_alias,
update_payee_alias,
delete_payee_alias,
record_bill_payment,
create_bill,
update_bill,
archive_bill,
restore_bill,
skip_bill_occurrence,
dismiss_bill_suggestion,
restore_bill_suggestion,
create_bill_from_suggestion,
save_debt_plan,
add_debt_plan_member,
update_debt_plan_member,
remove_debt_plan_member,
set_debt_plan_priorities,
set_debt_required_payment,
delete_debt_required_payment,
dismiss_untracked_debt,
restore_untracked_debt,
delete_category_target,
create_recurring_transaction,
update_recurring_transaction,
delete_recurring_transaction,
apply_transaction_rule_to_existing_transactions,
undo_transaction_rule_run,
set_bill_reminder_muted,
create_income_schedule,
update_income_schedule,
delete_income_schedule,
set_income_occurrence_override,
clear_income_occurrence_override.
The 48 business write tools (clients, projects, tasks, time, quotes, invoices
and payments) are described under
Business write tools. They work
with personal access tokens only: the clients:write, projects:write,
time:write, quotes:write and invoices:write scopes are not offered to OAuth
connected apps.
No tool deletes a transaction, category, account, payee, tag or bill, or anything that has been issued, paid or billed. The few tools that remove something remove a draft, an unbilled record or a small record (a remembered payee, a recorded lender amount, a debt in the plan, kept as history, a category target, a recurring transaction series, or an income schedule), each behind confirmation. See What no tool can do.
Idempotency
Every write tool requires an idempotency_key, so a retried call never changes
anything twice. See Idempotency.
Confirming bulk changes
assign_budget with more than one allocation, set_planned_amounts with more than one category, every merge_payees, rename_payee, acknowledge_bill_price_change, bulk_*,
apply_payee_to_matching_inbox_items, delete_payee_alias, remove_debt_plan_member, delete_category_target,
create_recurring_transaction and delete_recurring_transaction
call, and the business tools that delete, finalize or archive (issue_invoice, void_invoice, mark_quote_sent,
accept_quote, decline_quote, archive_client, archive_project and the delete_ tools),
must be previewed and confirmed before anything changes. See
Confirming bulk changes.
OAuth sign-in for connectors
Connector apps such as claude.ai and ChatGPT will sign in with OAuth 2.1 instead of a token. This is not yet enabled on the hosted service. See OAuth Connectors and Connected Apps.
Connected apps
Users see and revoke their connected apps in Settings > Developer > Connected apps. See Connected apps.
Errors
A failed tool call returns a tool result with isError: true and a JSON error
object. See Errors.
Audit
Every change made through a write tool is recorded as the audit event
mcp.tool_called. See Audit.