amazing-splitwise-mcp

v0.1.0
amazing-splitwise-mcp Checked 4 days ago Published 2 months ago

MCP server for the Splitwise API v3.0 (personal API key, stdio by default, streamable-http behind a bearer).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

splitwise_get_balances

Summarise who owes you and whom you owe, per friend and per currency. Calls `GET /get_friends` once and, from each friend's `balance` list, renders every non-zero balance per currency, plus per-currency totals: how much you are owed, how much you owe, and the net. Friend balances already combine group and non-group expenses. Sign convention: **positive = the friend owes you (owed to you); negative = you owe the friend.** Zero balances are hidden unless `include_zero` is true; the optional `currency` filter keeps a single currency (applied locally — the endpoint takes no filter). An amount S…

ParameterTypeDescription
params *

splitwise_get_group_balances

Show each member's balance in one group and who should pay whom to settle it. Calls `GET /get_group/{group_id}` and renders the members' non-zero balances per currency, then the group's debts as `From → To amount CUR` (From owes To), with names resolved from the group's own `members` (an id not among them is shown as `user N`). Uses `simplified_debts`; when Splitwise returns none, falls back to `original_debts` and says so. Sign convention: **positive = the member is owed by the group; negative = the member owes the group.** Settled-up members are listed by name only. An amount that is not…

ParameterTypeDescription
params *

splitwise_get_comments

List the comments on one Splitwise expense. Calls `GET /get_comments?expense_id=…` and renders one row per comment: its id, the author as `First Last (id N)`, the type (`System` = written by Splitwise, e.g. an edit log; `User` = written by a person), when it was created, and the text. When to Use: - To read the discussion or the edit history on an expense. - To find a comment's id before deleting it with `splitwise_delete_comment`. When NOT to Use: - To read the expense itself (cost, shares) — use `splitwise_get_expense`. - To see recent activity across all expenses and groups — use `…

ParameterTypeDescription
params *

splitwise_create_comment

Add a comment to a Splitwise expense. Write — refused unless SPLITWISE_ALLOW_WRITES=1. Calls `POST /create_comment` with `expense_id` and `content`. Everyone on the expense can see the comment. Not idempotent: calling it twice posts the comment twice. When to Use: - To leave a note on an expense ("paid in cash", "includes the tip"). When NOT to Use: - To change the expense's own description or notes — use `splitwise_update_expense`. - To read existing comments — use `splitwise_get_comments`. Returns: A confirmation echoing the comment Splitwise returned: its id, the expense id, the a…

ParameterTypeDescription
params *

splitwise_delete_comment

Delete a comment from a Splitwise expense (destructive; comments have no undelete). Write — refused unless SPLITWISE_ALLOW_WRITES=1. Calls `POST /delete_comment/{id}`. Splitwise answers with the deleted comment, which this tool renders so you can see exactly what was removed. There is NO undelete for comments in the Splitwise API — if needed, re-post the text with `splitwise_create_comment` (it gets a new id and a new timestamp). When to Use: - To remove a comment you posted by mistake (get its id from `splitwise_get_comments`). When NOT to Use: - To delete the expense itself — use `s…

ParameterTypeDescription
params *

splitwise_get_expenses

List expenses, newest first, optionally filtered by group, friend and date range. Calls `GET /get_expenses`. Splitwise includes DELETED expenses in this list; they are hidden by default and the response says how many were hidden (`include_deleted=true` shows them, tagged `[deleted]`). Settle-up payments are tagged `[settle-up]`. Each row shows the date, description, full cost, group, who paid (shares with paid_share > 0) and — when `current_user_id` is given — your net on that expense. Sign convention: "Your net" is your `net_balance` on the expense; positive = owed to you (you paid more…

ParameterTypeDescription
params *

splitwise_get_expense

Read one expense in full: cost, group, category, every share, repayments and comments. Calls `GET /get_expense/{id}`. The shares table shows what each person paid, owed and their net on this expense; repayments say who owes whom for it; comments are listed with author and time. A deleted expense is still readable and is flagged as deleted. Sign convention: Net = paid − owed; positive = that person is owed money on this expense, negative = they owe. When to Use: - Before `splitwise_update_expense`, to see the current shares (an update with shares replaces ALL of them). - "Who paid for di…

ParameterTypeDescription
params *

splitwise_create_expense

Create an expense with exactly one split mode; the shares are checked locally before sending. Calls `POST /create_expense`. Refused with `Error: … writes are disabled` unless `SPLITWISE_ALLOW_WRITES=1` (the server's client enforces it; this tool never bypasses it). Undo with `splitwise_delete_expense`. NOT idempotent: every successful call creates a new expense — never retry blindly after a timeout; list first. Pick EXACTLY ONE split mode: - A `split_equally: true` — a GROUP expense (group_id > 0) that YOU paid, split equally among all group members by Splitwise. - B `shares: [...]`…

ParameterTypeDescription
params *

splitwise_update_expense

Change an existing expense — only the fields given are sent. Calls `POST /update_expense/{id}`. Refused with `Error: … writes are disabled` unless `SPLITWISE_ALLOW_WRITES=1` (enforced by the server's client). WARNING: `shares` REPLACES ALL existing shares. Splitwise treats any `users__*` key as the complete new split, so list EVERY participant with their paid_share and owed_share — sending only the person who changed drops everyone else from the expense. Read the current split first with `splitwise_get_expense`. No undo tool — to revert, re-send the previous values read with `splitw…

ParameterTypeDescription
params *

splitwise_delete_expense

Delete an expense (Splitwise keeps it as deleted; restore with `splitwise_undelete_expense`). Calls `POST /delete_expense/{id}`. Refused with `Error: … writes are disabled` unless `SPLITWISE_ALLOW_WRITES=1` (enforced by the server's client). Deleting changes every participant's balances. Restore with `splitwise_undelete_expense` and the same id. When to Use: - Remove a duplicate or mistaken expense. When NOT to Use: - To fix an amount or split (use `splitwise_update_expense`). - To remove a whole group with its expenses (use `splitwise_delete_group`). Returns: The `success` value Splitwi…

ParameterTypeDescription
params *

splitwise_undelete_expense

Restore a deleted expense. Calls `POST /undelete_expense/{id}`. Refused with `Error: … writes are disabled` unless `SPLITWISE_ALLOW_WRITES=1` (enforced by the server's client). The expense comes back with its original shares, so balances change again. When to Use: - Undo a `splitwise_delete_expense`. - Bring back an expense seen as `[deleted]` in `splitwise_get_expenses` with include_deleted=true. When NOT to Use: - On an expense that is not deleted (nothing to restore). - To restore a deleted group (use `splitwise_undelete_group`). Returns: The `success` value Splitwise returned. Examp…

ParameterTypeDescription
params *

splitwise_get_friends

List your Splitwise friends with their balance per currency. Calls `GET /get_friends`. One row per friend: `First Last (id N)`, e-mail, registration status (confirmed | invited | dummy) and the overall balance per currency. Sign convention: positive = they owe you; negative = you owe them. JSON mode returns the raw friend objects, including `groups[]` with the balance per shared group (group 0 = non-group expenses). When to Use: - To see who owes you / whom you owe, per friend and currency. - To find a friend's user id before building expense shares or adding them to a group. - With `only_wi…

ParameterTypeDescription
params *

splitwise_get_friend

Get one Splitwise friend with their overall and per-group balances. Calls `GET /get_friend/{id}`. Renders the friend as `First Last (id N)`, e-mail, registration status, the overall balance per currency, the balance in each shared group (group 0 = non-group expenses) and when the friendship last changed. Sign convention: positive = they owe you; negative = you owe them. When to Use: - To see how a balance with one friend splits across shared groups. - To confirm a user id belongs to a friend before using it in an expense. When NOT to Use: - To list every friend (use `splitwise_get_friends`)…

ParameterTypeDescription
params *

splitwise_create_friend

Add one person as a Splitwise friend by e-mail. 🔒 Needs SPLITWISE_ALLOW_WRITES=1. Calls `POST /create_friend` with `user_email` (+ `user_first_name` / `user_last_name` when given). If an account already exists for that e-mail the names are ignored; if not, Splitwise creates an invited user and `user_first_name` is required. If you don't know whether they have an account, pass `user_first_name`; it is ignored for existing users. Adding someone without an account probably sends them an invitation e-mail (unverified; the live smoke t10 confirms). Refused with `Error: … writes are disabled`…

ParameterTypeDescription
params *

splitwise_create_friends

Add several people as Splitwise friends in one call. 🔒 Needs SPLITWISE_ALLOW_WRITES=1. Calls `POST /create_friends` with the list flattened to `users__{i}__email` / `users__{i}__first_name` / `users__{i}__last_name` (index from 0). Names matter only for people without a Splitwise account yet. Splitwise answers HTTP 200 even when it rejects entries, so success is read from the body's `errors`. Refused with `Error: … writes are disabled` unless `SPLITWISE_ALLOW_WRITES=1`. There is no undo tool; remove a friend with `splitwise_delete_friend`. When to Use: - To befriend a list of people (e.…

ParameterTypeDescription
params *

splitwise_delete_friend

Remove a friendship (unfriend a user). 🔒 Needs SPLITWISE_ALLOW_WRITES=1. Destructive. Calls `POST /delete_friend/{id}` with the friend's user id. Splitwise answers HTTP 200 even when it refuses, so the outcome is read from the body's `success` / `errors`. Refused with `Error: … writes are disabled` unless `SPLITWISE_ALLOW_WRITES=1`. There is no undelete for friendships — re-add with `splitwise_create_friend`. When to Use: - The user explicitly asked to remove someone from their friends list. When NOT to Use: - To remove someone from a group (use `splitwise_remove_user_from_group`). -…

ParameterTypeDescription
params *

splitwise_get_groups

List every group you belong to, with members count and balances per currency. Calls `GET /get_groups` and renders one row per group: name, id, type, number of members and the balance column. With `current_user_id` the column is YOUR balance in that group; without it, members' non-zero balances are listed compactly (at most 6 per group — `splitwise_get_group` has the rest). Group id 0 is Splitwise's pseudo-group for non-group expenses. Sign convention: positive = owed to that member (with current_user_id: owed to you); negative = they (you) owe. When to Use: - To find a group's id before re…

ParameterTypeDescription
params *

splitwise_get_group

Read one group: its members with balances, who owes whom, and the invite link. Calls `GET /get_group/{id}`. Members are rendered `First Last (id N)` with every non-zero balance per currency. Debts are rendered `A → B 12.50 USD` (A owes B), names resolved from the group's own members; the simplified debts are shown, or the original debts (labelled as such) when Splitwise returned no simplified ones. Sign convention for member balances: positive = that member is owed money; negative = they owe. Group id 0 is the pseudo-group for non-group expenses. When to Use: - To see who owes whom inside…

ParameterTypeDescription
params *

splitwise_create_group

Create a group, optionally with members (you are added automatically). 🔒 write. Calls `POST /create_group` with `name`, `group_type`, `simplify_by_default` and the members flattened to `users__{i}__user_id` or `users__{i}__email` / `users__{i}__first_name` / `users__{i}__last_name`. Each member is EITHER an existing `user_id` OR an `email` + `first_name` (+ `last_name`) to invite — checked locally before any call. Refused with `Error: … writes are disabled` unless `SPLITWISE_ALLOW_WRITES=1`. Undo: `splitwise_delete_group` with the returned id. When to Use: - To start a new shared-expe…

ParameterTypeDescription
params *

splitwise_delete_group

Delete a group and all its expenses — for every member, not just you. 🔒 destructive write. Calls `POST /delete_group/{id}`. Splitwise destroys the group's associated records: every expense in it disappears for all members. Refused with `Error: … writes are disabled` unless `SPLITWISE_ALLOW_WRITES=1`. Undo: `splitwise_undelete_group` with the same id restores the group and its expenses. When to Use: - Only when the user explicitly asked to delete this group. Confirm the id first with `splitwise_get_group`, and run `splitwise_get_expenses` with group_id so the user knows how many ex…

ParameterTypeDescription
params *

splitwise_undelete_group

Restore a deleted group (and its expenses). 🔒 write. Calls `POST /undelete_group/{id}`. Splitwise answers HTTP 200 even when this fails and puts the outcome in `success` / `errors`; the client turns a failure into an error, and this tool reports the group as restored only when the body says `success: true`. Refused with `Error: … writes are disabled` unless `SPLITWISE_ALLOW_WRITES=1`. Undo: `splitwise_delete_group`. When to Use: - To bring back a group deleted by mistake (`splitwise_delete_group`). When NOT to Use: - To restore one expense (use `splitwise_undelete_expense`). - To re-ad…

ParameterTypeDescription
params *

splitwise_add_user_to_group

Add a person to a group, by user id or by inviting a name + email. 🔒 write. Calls `POST /add_user_to_group` with `group_id` plus EITHER `user_id` OR all of `first_name`, `last_name`, `email` (a oneOf, checked locally before any call; an invited email may receive a Splitwise invitation). Splitwise answers HTTP 200 even on failure; the client turns `success: false` / non-empty `errors` into an error, and the person is reported as added only when the body says `success: true` and returns the user. Refused with `Error: … writes are disabled` unless `SPLITWISE_ALLOW_WRITES=1`. Undo: `splitwis…

ParameterTypeDescription
params *

splitwise_remove_user_from_group

Remove a member from a group. 🔒 destructive write. Calls `POST /remove_user_from_group` with `group_id` and `user_id`. Splitwise refuses when the member has a non-zero balance in the group (settle up first) — and it does so with HTTP 200 + `success: false`, which the client turns into an error. The member is reported as removed only when the body says `success: true`. Refused with `Error: … writes are disabled` unless `SPLITWISE_ALLOW_WRITES=1`. Undo: `splitwise_add_user_to_group` with the same ids. When to Use: - To drop someone (or yourself) from a group whose balances are settled.…

ParameterTypeDescription
params *

splitwise_health_check

Verify connectivity and the API key against Splitwise, and report the write kill-switch. Calls `GET /get_current_user` with the configured personal API key and renders who you are logged in as (name, id, email, default currency, locale, unread notifications). Also states whether writes are enabled (SPLITWISE_ALLOW_WRITES). When to Use: - As the first call after configuring the server, to confirm the key works. - To learn your own user id before building expense shares. - To debug a 401 (key missing / regenerated) before trying other tools. When NOT to Use: - To read balances (use `splitwise…

splitwise_get_categories

List Splitwise's expense categories: each parent with its subcategories and their ids. Calls `GET /get_categories` once and caches the answer in-process for 24 h (the list is static); `refresh: true` refetches. **Expenses must use a subcategory id** as `category_id` — a parent id is not accepted. When nothing fits, use the "Other" subcategory under the closest parent (or "General" under "Uncategorized"). **Names come back in the account's locale** (a Spanish account sees "Supermercado", "Taxi", "Avión" — not the English names from Splitwise's docs); the ids are the same everywhere. When…

ParameterTypeDescription
params *

splitwise_get_currencies

List the currency codes Splitwise accepts, optionally filtered by a substring. Calls `GET /get_currencies` once and caches the answer in-process for 24 h (the list is static); `refresh: true` refetches. Codes are mostly ISO 4217 plus a few colloquial ones (e.g. BTC); each comes with its display unit (`$`, `S/`, `€`). When to Use: - To check that a currency code is accepted before using it as `currency_code` on an expense or as a user's `default_currency`. - To find a code from its symbol (`query: "€"`). When NOT to Use: - For balances per currency — use `splitwise_get_balances`. - F…

ParameterTypeDescription
params *

splitwise_resolve_friend

Turn a friend's name (or email) into their Splitwise user id, with ranked fuzzy candidates. Calls `GET /get_friends` (not cached — friends change) and scores every friend with `difflib.SequenceMatcher` on case- and accent-folded text: the best of "first last", the first name, the last name, the email local-part and the full email. Returns the top `limit` candidates with their scores. A friend is **resolved ONLY on an exact match** (1.000 on one of those fields, for exactly one friend, and no other friend's name or email starting with the query). A wrong id here is a wrong person — the ex…

ParameterTypeDescription
params *

splitwise_resolve_group

Turn a group's name into its Splitwise group id, with ranked fuzzy candidates. Calls `GET /get_groups` (not cached — groups change) and scores every group name with `difflib.SequenceMatcher` on case- and accent-folded text. Returns the top `limit` candidates with their scores. Group id 0 is Splitwise's pseudo-group for non-group expenses (`group_id: 0` = no group). A group is **resolved ONLY on an exact name match** (1.000, for exactly one group, and no other group name starting with the query — "Peru trip" next to "Peru trip 2026" is ambiguous). A close-but-not-exact name is reported as…

ParameterTypeDescription
params *

splitwise_resolve_category

Turn a category name into the subcategory id an expense needs, with ranked fuzzy candidates. Reads the categories from `GET /get_categories` through the same 24 h in-process cache as `splitwise_get_categories` (`refresh: true` refetches). Every **subcategory** is scored with `difflib.SequenceMatcher` on case- and accent-folded text — the best of its name, each piece of the name split on `/` and spaces ("phone" → TV/Phone/Internet), and "Parent Subcategory" (so "transportation other" picks the right "Other"). Subcategories are listed first and are the only ones that can be **resolved**: e…

ParameterTypeDescription
params *

splitwise_get_notifications

List your recent Splitwise activity (notifications), newest first. Calls `GET /get_notifications` and renders one row per notification: when it happened, what kind it is (expense added/updated/deleted, comment added, group and friend changes, …), its text with the HTML flattened (a struck-through old value shows as `~~old~~`), what it is about (source type, id and URL) and who triggered it (`user N`). Codes Splitwise has not documented show as `unknown (N)`. When to Use: - "What changed in my Splitwise lately?" / "Did anyone add an expense this week?" - To find the id of a recently added o…

ParameterTypeDescription
params *

splitwise_get_current_user

Get the Splitwise user the API key belongs to: name, id, email, currency, locale, notifications. Calls `GET /get_current_user` and renders your name and id (as `First Last (id N)`, so the id can be chained into other tools), email, registration status, default currency, locale, the unread notifications count, when notifications were last read, and your email-notification settings (`expense_added=on, …`). When to Use: - To learn your own user id before building expense shares or updating your profile. - To check your default currency or locale before creating expenses. - To see how many unr…

ParameterTypeDescription
params *

splitwise_get_user

Get another Splitwise user's public profile by id: name, email, registration status. Calls `GET /get_user/{id}`. Splitwise only answers for users you are connected to — a friend, or someone who shares a group with you — and for yourself. When to Use: - To turn a user id seen in an expense, debt or notification into a name and email. - To check whether someone is a `confirmed` user or a `dummy`/`invited` placeholder. When NOT to Use: - For yourself with notification settings, currency and locale (use `splitwise_get_current_user`). - To find a user id from a name (use `splitwise_resolve_f…

ParameterTypeDescription
params *

splitwise_update_user

Update your Splitwise profile: first name, last name, locale and/or default currency. Calls `POST /update_user/{id}` with only the fields you pass (at least one). This is a write: it is refused with `Error: … writes are disabled` unless `SPLITWISE_ALLOW_WRITES=1`. Email and password are NOT updatable on purpose — the input has no such fields and the server's client refuses to send them under any configuration, so an LLM can never change the account's login. There is no undo tool: to revert, read the current values first with `splitwise_get_current_user` and call this tool again with them.…

ParameterTypeDescription
params *