Connect an agent
MCP (the Model Context Protocol) is an open standard that lets an AI assistant use outside tools. Connect one, such as Claude, to a Kwitsy group and you can ask it in plain words.
What you can ask
An agent connected to a group can read it and add or change entries for you. For example:
- "Add 42.50 EUR for dinner, Ana paid, split between everyone."
- "Who owes whom?"
- "What do I owe Ana?"
- "The taxi was 31.20, not 30. Fix it."
- "Add Chiara to the group."
- "What was the PLN rate on 20 November?"
Changes the agent makes are ordinary changes: they sync to everyone's devices and appear in the group's history, marked with the token's name and the person it acts as: a token named "Claude" acting as Ana shows as "Claude for Ana".
What a call looks like
Asked to "add last night's dinner at Ramiro, 128.40 EUR, I paid, split between all four of us", an agent calls add_expense like this. The request_id makes a retry safe; "preview": true would return everyone's share without saving.
{
"title": "Dinner at Ramiro",
"amount": "128.40",
"currency": "EUR",
"paid_by": "Ana",
"split": { "mode": "equal" },
"category": "food",
"request_id": "ramiro-1123"
}
The entry then appears on everyone's devices as "Dinner at Ramiro", added by "Claude for Ana". The names here are a sample.
Get a token
- Open your group, then its Settings, then Connect an agent.
- Name the token and choose which person the agent acts as.
- Copy the token right away. It is shown only once.
The server address for every group is https://kwitsy.app/mcp (Streamable HTTP). The token says which group it belongs to. Creating, listing and revoking tokens need a connection; the rest of the group works offline as usual.
Add it to Claude
Replace grk_YOUR_TOKEN with your token. The group's own "Connect an agent" page fills it in for you, and names the server after the group, so several groups can be connected side by side. Any name works; below it is kwitsy.
Claude Code
Run this in a terminal. It adds the server for the current project; add --scope user to use it in every project.
claude mcp add --transport http kwitsy \
https://kwitsy.app/mcp \
--header "Authorization: Bearer grk_YOUR_TOKEN"
Claude Desktop
In Claude Desktop open Settings, then Developer, then Edit Config. That opens claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\). Put the kwitsy entry inside mcpServers, save, then quit and reopen Claude Desktop. It connects through the mcp-remote bridge, which needs Node.js 18 or newer.
{
"mcpServers": {
"kwitsy": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://kwitsy.app/mcp",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "Bearer grk_YOUR_TOKEN"
}
}
}
}
There is no space after Authorization: in args on purpose: the space is in AUTH_HEADER, because Claude Desktop on Windows does not escape spaces inside args.
The 22 tools
Optional parameters are marked with ?. People can be named instead of given by id (case-insensitive; a unique prefix is enough). Dates are YYYY-MM-DD and default to today (UTC); currency defaults to the group's base currency.
get_group- Reads the group: its name, base currency, members and which member the token acts as. Agents call it first.
No parameters.
get_balances- Shows what each person owes or gets back, the fewest payments that settle everything (exactly the fewest for up to 16 people with a balance; a fast estimate above that), and the check that it all adds up to zero.
currency?also shows the balances converted at today's rate (approximate). list_entries- Lists expenses, income and transfers, newest first, filtered by text, person, kind, category or dates. Deleted entries are left out;
get_entryreads one by id.query?(title or note),member?,kind?(expense, transfer, income),category?,from?,to?,limit?(up to 100, default 20),cursor? get_entry- Reads one entry, deleted ones too, with each person's share and its history of changes (the newest 50, with a note when there are more).
id add_expense- Adds an expense: amount, who paid, how it is split. It can preview the per-person shares first without saving. By default the token's person paid, split by the group's default split (equal between everyone unless the group set another), category suggested from the title, today.
title,amount,currency?,date?,paid_by?orpayers?(several payers with amounts),split?(mode equal, exact, shares or percent, with parts),category?(food, groceries, transport, stay, fun, shopping, home, other),note?,rate?,rate_inverted?,preview?,request_id? add_income- Adds money the group received, such as a refund, and how it is shared.
title,amount,received_by?,split?,currency?,date?,category?,note?,rate?,rate_inverted?,preview?,request_id? update_entry- Changes an entry; only the fields given change. It says so if someone else changed the same thing meanwhile, and their version stays in the entry's history.
id, then any oftitle?,amount?,currency?,date?,category?,note?,paid_by?,payers?,received_by?,from?,to?,split?,rate?,rate_inverted?,request_id? delete_entry- Deletes an entry. It stops counting in balances and can always be restored.
id,request_id? restore_entry- Brings a deleted entry back.
id,request_id? record_transfer- Records that one person paid another back.
from,to,amount,currency?,date?,rate?,request_id? add_member- Adds a person to the group.
name(1 to 80 characters),request_id? get_exchange_rate- Looks up the published exchange rate for a date, with its source (Frankfurter, or the fallback source).
from,to?(default the base currency),date? create_recurring- Sets up an expense that repeats weekly, monthly or yearly (rent, Netflix). The server adds each occurrence on its day, exactly once; monthly on the 29th to 31st falls on the last day of shorter months.
title,amount,frequency,interval?,start?,until?,day_of_month?(-1 = last day),time_zone?,paid_by?orpayers?,split?,category?,currency?,note?,request_id? list_recurring/stop_recurring- Lists repeating expenses with their schedule and next dates; stops one (the ones already added stay).
include_stopped?;id(or exact title),request_id? add_comment/list_comments- Adds a short plain-text comment to an entry as the token's person (up to 500 characters, 20 per 10 minutes); lists an entry's comments.
entry_id,text,request_id?;entry_id get_receipt- Shows the receipt photo on an entry to the agent as an image, with the entry, so it can read the bill or check an amount.
id attach_receipt/remove_receipt- Puts a photo (JPEG, PNG or WebP, at most 2 MB, as base64) on an entry, replacing any earlier one; takes it off again. Earlier photos stay in the entry's history.
id,image,request_id?;id,request_id? add_itemized_expense/set_entry_items- Records a bill line by line (or turns an existing expense into one): each line goes to the people who had it, shared lines split equally, and tax, tip and service are spread in proportion. Pass the printed total to have it checked.
titleorid,items,tax?,tip?,service?,discount?,total?,paid_by?orpayers?,preview?,request_id?
Every tool with its full arguments: the MCP tool reference. Also see the security model, example conversations, and setup for Cursor, Claude.ai and other clients.
Amounts are exact decimal strings in the currency's own units, like "12.50" for EUR or "1250" for JPY. An amount with more decimals than the currency allows is refused with the reason, never rounded.
Keep it safe
- A token is full access to one group, acting as the person you chose: it can read every entry and add, change or delete them. Treat it like a password.
- It works for that one group only, never for your other groups.
- It is shown once. Kwitsy stores only its SHA-256 hash, so nobody can read it back from the server.
- The token list on the group's "Connect an agent" page shows when each token was last used, to the minute.
- Anyone with the group link can revoke it there at any time; from then on every request with it is refused, because the token is checked on every request.
- Write tools take a
request_id. If an agent retries a change with the samerequest_idand the same arguments, it is saved once, not twice. Reusing it for a different change is refused and writes nothing. - Requests are rate limited to roughly 60 a minute from one IP address and 120 a minute to one group, where the app sending its changes counts too.
What an agent can't do
An agent can do what a person with the link can do through these 22 tools, and no more. Like people, it cannot delete a group or change a group's base currency. The tools also don't create or rename groups, rename or archive people, or create or revoke tokens; those happen in the app. An agent sees only the group its token belongs to.
Errors and limits
A failed call returns an error code and a reason in plain words. The ones an agent may meet most:
unauthorized(HTTP 401): no token, a malformed one, or one that was revoked. Make a new token in the group. (Without a token the server still answerstools/list, so a client can show the tools before you paste one.)not_found: no entry with that id in this group. Ids come fromlist_entriesor a write's result.bad_split,bad_payers: the parts or the payers don't add up to the total, or a split value is malformed. The reason says which, and nothing is written.idempotency_mismatch: therequest_idwas already used for a different change. Nothing is written; repeat the original arguments, or use a newrequest_id.rejected: the group refused the change, for example because a title is longer than 120 characters or the group already has 20,000 entries. The reason says why, and nothing is written. Arequest_idsent with a refused change is used up: send the corrected change with a new one.over_capacity: the free-plan server has used its writes for today, and nothing was written. The daily limit resets at 00:00 UTC.rate_limited(HTTP 429): too many requests; the response says to retry after 60 seconds.