Developers · Connect your expense tracker with MCP

Connect your expense tracker with MCP

MCP lets your agent discover Figa tools and work with your workspace. Use it to answer questions, organize expenses and update recurring bills. In clients that support MCP Apps, the expense tool can also display an interactive view.

Connect

  1. In your client’s integrations or MCP settings, add a remote server with Streamable HTTP transport and this URL:
https://api.figa.cc/mcp
  1. Choose OAuth. Sign in to Figa and review the client and redirect host shown on the consent screen.
  2. Select the workspaces to connect and choose Read only or Read & write. You must own or administer those workspaces.
  3. Ask: “List my Figa workspaces, then show this month’s expenses in [workspace].” Check the workspace, dates and currency in the result.

ChatGPT and Claude can connect to a custom remote MCP server. The availability and location of that setting depend on the client and plan. Other agents need remote MCP with OAuth, or can use the REST API. A public directory listing is separate from connecting by URL.

What an agent can do

  • Read and analyze: workspaces, context, expenses, history, payments, summaries, period comparisons and recurring commitments.
  • Organize: create, update and delete local categories; create, rename and delete tags; assign categories, recipients and tags to expenses; group one-time expenses into expense groups, move or detach them, and archive or restore a group.
  • Maintain expenses: create (one or up to 50 at once) or edit one-time and recurring expenses, confirm bill amounts, adjust estimates, and set Paid or Unpaid.
  • Manage recurrence: preview and apply supported pause, resume, cancel-pause and end actions. A count-limited installment series does not support these activity actions.

The connected server’s tools/list is the current contract. Every tool and each of its parameters has a description there: what a value means, its format and limits, and which kind of ID it takes. Use figa_get_context for workspace permissions and plan limits; a general capability does not imply that every REST operation has an MCP tool. Shared organization categories are readable and assignable; workspace connections cannot edit them. Standalone recipient management, account administration, notifications and attachment transfer use other supported surfaces.

Which features are available through each connection?

Both connections use the application's expense rules and workspace permissions. They expose supported operations, rather than every account screen.

FeatureMCPExternal REST API
One-time and recurring expenses, Paid/Unpaid, bill confirmationYes, including Paid at fixed-expense creationYes
Variable forecasts and payment windowsAll five recurring rhythms; windows on weekly, monthly, quarterly and yearly schedulesThe same shared schedule and forecast contract
Monthly services per sessionCalculation, settings, date exclusions and direct payment of a reviewed nonempty planYes
Pause, resume, end and expense groupsYes, subject to the same series restrictions as the appYes
Categories, recipients and tagsRead and assign all three; manage local categories and tags. Recipient drafts can be created with expenses, but there are no standalone recipient write tools.Read and manage local dictionaries; shared organization entries are read-only
InsightsRange summaries, comparisons, recurring changes and paginated expensesRange Insights and monthly summary, trend, anomaly and forecast endpoints
Bulk operationsCreate up to 50 expenses; other changes use individual toolsCreate up to 50; pay, unpay or delete up to 100 selected expenses
NotificationsNo toolsWorkspace-filtered list and unread count; settings and read/dismiss actions remain in the app
Attachments, CSV import/export, account and membership administrationUse the appUse the app; session routes are not public API-key routes

Preview a draft

  • figa_preview_schedule: send preview with the proposed schedule and Unix-second window bounds. Read up to 12 dates and their due windows without creating the series.
  • figa_preview_expense_range: read the expense, then send expenseId and preview with range and seriesContext. Review additions, removals and preserved records before figa_update_expense. A workspace writer role is required even though previewing saves nothing.
  • figa_preview_bill_forecast: select a variable occurrence and send proposed forecast settings with the current expectedRevision. Compare the returned before/after forecasts without changing the stored method or invoice.
  • figa_preview_recurring_amount: send the proposed fixed/variable settings, canonical from and expectedRevision. Review the result before saving changes.recurringSettings with FUTURE_INSTANCES.

All four also require workspaceId; the latter three need expenseId. They create no payment or materialized occurrence and need no request ID. They do not reserve a write: changed state still requires a new read and review. See the equivalent REST routes.

Categories, tags and series

Category is optional. For figa_create_expense, omit expense.categoryInput or send null to create without a category. For figa_update_expense, omit changes.categoryInput to preserve it, or send null to clear it within the selected edit scope. Existing IDs and legal drafts assign a category; invalid IDs and empty drafts remain errors. Read the expense back after saving.

{
  "name": "figa_create_expense",
  "arguments": {
    "workspaceId": "WORKSPACE_ID",
    "requestId": "NEW_UUID",
    "expense": { "name": "Hosting", "amount": 4720, "currency": "EUR" }
  }
}

A new expense starts Unpaid unless you send expense.markPaid: true, which saves a fixed expense as Paid in the same operation, with optional paymentDate in Unix seconds (default now). A recurring expense pays only its first occurrence; the response describes the series, so read the occurrence to see it Paid. Variable bills and services refuse it at creation. Create them first, then confirm an ordinary bill with figa_confirm_bill, or pay a service plan through figa_set_payment_status.

figa_bulk_create_expenses creates 1 to 50 expenses in one call, for example from a statement: expenses holds items in the figa_create_expense shape. A malformed item refuses the whole call; otherwise each item succeeds or fails on its own, and a failed item saves nothing. results lists each index with its expenseId or error. No duplicate check is made, so list existing expenses first when they may already exist. See the REST contract.

To clear the category later, use figa_update_expense with the returned expenseId, a new request UUID and changes: { "categoryInput": null }. Recurring updates also need the intended edit scope.

Prefer figa_create_category, figa_update_category and figa_delete_category for category management. An expense’s categoryInput can also create a local category from a name or draft: use an existing ID when reassigning. Names are unique among siblings, not across the whole category tree. Category deletion blocks active references and children, but can permanently remove related archived records; inspect the tool description before deleting.

tagIds or tagInputs replaces the complete tag set; send one of them, never both. Omit both to preserve it; send [] to clear it. For a recurring expense, choose THIS_INSTANCE, FUTURE_INSTANCES or ALL_INSTANCES. All-series tag edits update inherited history and defaults; explicit overrides and locked tag sets remain.

FUTURE_INSTANCES on an occurrence starts there. On a whole series it starts now, unless changes.futureFrom names the scheduled occurrence to start from. To preview a monthly day correction, pass the selected bill’s schedule as previousSchedule, its scheduledDate as windowStart, and the proposed schedule to figa_preview_schedule inside preview. Omit windowEnd. For example, for a November 28 bill changing to day 5, the preview begins November 5. Use the original occurrence ID with figa_update_expense. See the rules and refusals.

An expense group collects one-time expenses under a name and is separate from recurring series; the API and tool names call it a manual series. Use figa_list_manual_series, figa_get_manual_series (with the total and recipients of its accessible expenses; unknownCount means knownTotal + ?), figa_list_manual_series_expenses (its expenses newest first, a cursor page at a time), figa_create_manual_series, figa_update_manual_series (name and defaults for new expenses against expectedRevision; omit a field to keep it, null or [] to clear; saved expenses never change) and figa_set_manual_series_archived (archive or restore against expectedRevision; members stay); an expense shows its membership as manualSeries, or null. Creating one adds no expense and changes no total. figa_create_expense can put a one-time expense in a group: manualSeriesId for an active group, or newManualSeries to create the group with the expense, taking its data as the group defaults. figa_list_expenses filters by manualSeriesId and lists the available groups in metadata.filterOptions.manualSeries. figa_create_manual_series_from_expense starts a group from a saved one-time expense against the editContext you read; the expense joins it unchanged. figa_add_expense_to_manual_series adds one saved one-time expense outside any group to an active group the same way: only its membership changes, and the group returns with its new total. figa_move_manual_series_expense moves an expense from its group (seriesId) to another active one (targetSeriesId), or detaches it with targetSeriesId: null, against the same editContext; it keeps its data and both groups return with their new totals. Reuse the same requestId for a retry, so neither is created twice. See the REST contract.

Use returned IDs as-is. figa_get_series expects a template/version ID in its expenseId input: use templateId from the monthly list, seriesId from the expense view, or rootId from the series list. An occurrence ID identifies a different object.

Bill forecasts and billing methods

For ordinary variable bills, choose last_confirmed, recent_average, seasonal or manual. The forecast guide explains fallbacks and reliability. Read figa_get_bill for the occurrence’s rootId, scheduledDate, settingsRevision and nested bill.

  • Create: figa_create_expense accepts expense.amountMode: "variable", a recurring schedule and forecastStrategy. amount is the starting estimate, or null; manual forecasts require an amount.
  • Set forecasts across the series: call figa_update_bill_forecast with expenseId: rootId and settings: { strategy, startAmount, expectedRevision }. Use the current settingsRevision; startAmount is nullable except for manual. Omitted strategy preserves existing methods.
  • Save with other fields: put the same settings in figa_update_expense.changes.forecastSettings with editScope: "ALL_INSTANCES". The whole save uses that scope.
  • Change fixed ↔ variable from an occurrence: use figa_update_expense with changes.recurringSettings and editScope: "FUTURE_INSTANCES". Supply canonical from, expectedRevision and amountMode, plus amount for fixed or strategy/startAmount for variable. See the shared payload and restrictions. Earlier settings, confirmed invoices and Paid expenses are preserved.

All writes also need workspaceId and a UUID requestId. Reread after saving. In bill.forecast, source is the applied basis; assessment.strategy is the selected method. Report assessment.reliability and fallbackReason when relevant, and keep estimates separate from confirmed amounts. Reliability is not a probability; old saved snapshots may omit assessment.

figa_get_bill also accepts optional period: { start, end } with YYYY-MM-DD dates. For ordinary variable bills it previews the forecast and comparable history for the proposed invoice period without confirming it. Services keep their exact billing month and reject a different period.

Set Paid or Unpaid

Read figa_get_expense, then call figa_set_payment_status with workspaceId, expenseId, a UUID requestId and status containing isPaid, expectedEditContext, expectedPaymentStatusRevision and, for confirmed bills, expectedBillRevision. Optional paymentDate applies only to a real Unpaid → Paid transition. A fresh repeated Paid preserves its date; Unpaid clears it. No amount or payment row is created. Old add/remove/clear tools return 410 LEGACY_PAYMENT_OPERATION_REMOVED. The archive remains readable, separately from current binary totals.

Save amount and mark Paid

For an unconfirmed service bill with sessions, figa_set_payment_status accepts status.servicePlan: send the displayed calculation amount and period, bill/settings/activity revisions and a stable requestId, as described in the status API contract. It confirms exactly that plan and sets Paid atomically. A changed plan conflicts; a zero-session bill cannot be paid. Ordinary variable forecasts still need actual amount confirmation.

figa_confirm_bill accepts the shared bill confirmation contract in bill. Omitting bill.markPaid preserves payment status. Sending true atomically confirms the actual amount and sets Paid; include the pre-write expectedEditContext, expectedPaymentStatusRevision, bill/settings revisions and service activity revision when applicable. Existing Paid preserves its known or unknown date. The operation creates no payment-history row.

Keep request IDs and the whole payload unchanged for retries, including the Paid intent and optional date. Ordinary confirmation retains only its last request receipt; services retain their existing durable receipts. After a later Unpaid, replay does not set Paid again. A receipt can describe an earlier result, so call figa_get_expense for current status.

Compare service settings

Call figa_preview_service_calculation with proposed settings and comparison: true to compare before/after calculations for the effective month and the next month. The effective fromMonth must be later than the current month and the service’s first month. Omit comparison for the proposed effective-month calculation only. No settings, bills or Paid status change until an explicit write.

Change service dates for a month

Read figa_get_service_calculation for the month. Send dates: { month, changes: [{ date, excluded }], expectedSettingsRevision, expectedActivityRevision } to figa_preview_service_dates, show the user the current and proposed count and planned amount, then save the same draft plus a UUID dates.requestId with figa_update_service_dates. All changes save together or none do. On BILL_WRITE_CONFLICT, keep the draft and ask the user; do not refresh the revisions and retry on your own. For a single date, figa_set_service_exception still works. See the REST contract.

Turn a one-time expense into a series

Call figa_update_expense on the unpaid one-time expense with a schedule and editScope: "THIS_INSTANCE". Optional amountMode picks fixed (default) or variable; variable needs a recurring schedule and uses the amount as the starting estimate. Existing series change their method with recurringSettings instead.

Detach an occurrence from recurrence

Read figa_get_expense and check singleConversion availability. Use figa_update_expense with schedule: null, current seriesContext and expectedEditContext. THIS_INSTANCE detaches just the selected occurrence; FUTURE_INSTANCES also stops following generation and removes later saved unpaid occurrences. Review singleConversion.effect.laterUnpaidCount with the user before saving. Respect any returned refusal and preserve the draft when context is stale.

Create a bill with a due window

For a bill payable any day within a period, call figa_create_expense with a schedule that adds dueWindowEnd, for example a yearly boiler service from 1 October to 30 November: { frequency: "yearly", monthOfYear: 10, dayOfMonth: 1, dueWindowEnd: 11 }. The schedule reference lists the values per frequency. Reads then give dueBy, the window's last day; an unpaid occurrence is overdue only after it. figa_list_expenses repeats an unpaid occurrence in each month its window touches with carriedOver: true, outside the totals and summed in carriedOverUnpaid. Paid moves its expenseDate to the payment day.

Accurate answers and safe retries

Amounts use the currency and minor units stated in each response. Keep confirmed amounts, estimates and unknown valuations distinct. Monthly lists use Unix seconds; the range view uses ISO calendar dates and accepts at most 24 calendar months. Paginate results and disclose plan restrictions instead of treating missing data as zero.

Every mutation needs a UUID requestId. Keep the ID and input unchanged when retrying within 24 hours. A call that ends without a Figa result, such as a client or transport error, or with IDEMPOTENCY_OUTCOME_UNKNOWN, IDEMPOTENT_REQUEST_IN_PROGRESS or INTERNAL_SERVER_ERROR has an uncertain outcome. Repeat the identical call, which never writes twice, read its outcome with figa_get_operation and the same requestId, or inspect the saved state; never use a new ID. figa_get_operation returns completed with the stored result, pending (still running), unknown (interrupted or unconfirmed: read the resource) or not_found (no write with that ID from this connection to this workspace in the last 24 hours; if the attempt may be older or came through an earlier connection, read the resource before sending it). Only after a definite validation or business refusal may a corrected call use a new requestId. A deleted one-time expense reads as EXPENSE_NOT_FOUND, and deleting it again succeeds without a change, so a lost delete response is resolved by a read. Save amount preserves status; optional markPaid saves the amount and sets Paid atomically. Status changes do not move money.

Connection lifetime and troubleshooting

  • Workspace unavailable: API keys and MCP connections share the plan’s integration slots. Check existing connections and your role.
  • Reauthentication required: reconnect in the client. Access tokens last 15 minutes; refresh requires the client to request offline_access and use refresh tokens. The underlying connection ends after 30 days without use; every refresh keeps it alive. Repeated failures shortly after connecting need a client/OAuth check.
  • 403 before sign-in: registration or discovery may be blocked by the edge firewall. Keep the timestamp and request/Ray ID for support; repeatedly changing credentials will not fix an HTTP challenge.
  • Tools missing after an update: refresh the client’s tool discovery. Verify the connected server URL and environment.
  • LEGACY_PAYMENT_OPERATION_REMOVED (410): the client called an old add/remove-payment tool. Refresh the connection’s tool catalog, read the expense again and use figa_set_payment_status with its current context and revisions. Do not retry the retired operation.
  • View fails but tools work: try a fresh read. MCP Apps support varies by host; text and structured results remain available. If tools also require reauthentication, restore the connection first.
Client implementers
Discover OAuth metadata from the server. Use authorization code with S256 PKCE and the resource URL above; scopes are figa:read, optional figa:write, and offline_access for refresh. Tokens belong in the client’s credential store, not skill files. API keys are for REST and do not replace MCP OAuth.

Get the agent skills or follow the monthly invoice workflow.

For example conversations, see Figa with Claude, Figa with ChatGPT, Figa with Hermes Agent and all integrations.

Was this helpful?