Splitwise Mcp

io.github.chrischall由 GitHub 帳號 chrischall 發布v3.7.1更新於 Nov 7, 2026

Splitwise expense and group management for Claude — shared expenses, settle up, friends

已驗證STDIO僅桌面效率與工作流金融

概覽

AI 產生的概覽

把 Claude 連接到 Splitwise,可用自然語言查看餘額、群組與好友,並新增、修改或刪除共享支出與收據。

可以做什麼
  • 讀取個人資料、群組、好友、餘額、通知、分類與貨幣
  • 列出、搜尋並檢視支出明細,包括已刪除項目及其留言
  • 建立、編輯、軟刪除與還原支出,支援均分或自訂分攤
  • 附加、替換與下載收據,可內嵌回傳或擷取 PDF 文字
  • 新增、查看與刪除支出留言
  • 透過確認權杖流程預覽並批次確認寫入操作
適用情境
適合在 Splitwise 記錄家庭、旅行或伴侶共同開銷的人,讓助理直接回答欠款問題、記帳、分攤帳單、管理群組成員或取回收據,而不必開啟應用程式。
執行需求
以 npm 套件形式在本機執行(npx splitwise-mcp),需要 Node.js 22 或更新版本,並在 Claude Desktop 或 Claude Code 中使用。需要 Splitwise 帳號,並透過環境變數 SPLITWISE_API_KEY 提供 API 金鑰。選用的 SPLITWISE_INPUT_DIR 與 SPLITWISE_OUTPUT_DIR 用於設定收據的讀取與寫入目錄。
安裝前請注意
需要你的 Splitwise API 金鑰,可存取帳號資料。寫入操作會建立、修改或刪除支出、群組、好友與留言,並通知其他人;雖有確認預覽與權杖把關,但 MCP_CONFIRM_MODE=auto 會讓模型自行核准。收據會上傳到 Splitwise,下載的收據會寫入伺服器檔案系統。README 說明程式碼由 AI 撰寫且未經人工稽核。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Splitwise Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Splitwise MCP

[CI] [npm] [license]

A Model Context Protocol server that connects Claude to Splitwise, giving you natural-language access to your expenses, groups, friends, and balances.

[!WARNING] AI-developed project. This codebase was entirely built and is actively maintained by Claude Code. No human has audited the implementation. Review all code and tool permissions before use.

What you can do

Ask Claude things like:

  • "What do I owe?"
  • "Add a $50 dinner expense to the vacation group"
  • "Split this hotel bill 60/40 with Sarah"
  • "Who's in the trip group?"
  • "Add Sam to the household group"
  • "Show me recent expenses"
  • "Delete that duplicate expense"
  • "Download the receipt from that hotel expense"
  • "Add that Amazon order screenshot as the receipt on the water-jug expense"
  • "Log $250.01 camp, Sam paid, split 50/50"
  • "Find every 'example' expense this year, including deleted ones, and why they were deleted"

Requirements

Acknowledgement of Terms

By using this MCP server, you acknowledge and agree to the following:

1. This server accesses your own Splitwise account via Splitwise's official Developer API. Auth happens via your own API consumer key + secret, which Splitwise issues to you when you register an app. It does not — and cannot — access anyone else's expenses or groups.

2. Splitwise's Developer Terms govern your use of this server. The clauses most relevant here:

You will use Splitwise Materials solely as necessary to develop, test and support a Self-Service integration of your software application… with Splitwise.

And on rate limits: "You will not use the API in a manner that exceeds rate limits, or constitutes excessive or abusive usage." And on competitive use: "You may not [use] Splitwise Materials to create an application that replicates existing Splitwise functionality or competes with Splitwise."

You are agreeing to those terms — read by the maintainer 2026-05-23 — every time you invoke a tool in this server.

3. Personal, non-commercial use only. This project is not affiliated with, endorsed by, sponsored by, or in partnership with Splitwise, Inc. It is a personal automation tool that calls the documented public Splitwise REST API on your own account. Do not use it to commercialize Splitwise data, compete with Splitwise's product, or share API credentials with third parties.

4. Your API key is yours alone. Splitwise issues credentials per-app, per-developer. Do not commit your SPLITWISE_API_KEY (or consumer key/secret) to git, do not paste it into shared chats, and do not embed it in a public client.

5. You accept full responsibility for any consequences of using this server in connection with your Splitwise account — rate limiting, API key revocation, account warnings, or any enforcement action. If Splitwise objects to your use or your usage exceeds their rate limits, stop using this server.

This section is the maintainer's good-faith summary of the terms — it is not legal advice and does not modify or supersede Splitwise's actual Developer Terms.

Installation

Option A -- npx (recommended)

bash
npx -y splitwise-mcp

Add to your Claude config (.mcp.json or Claude Desktop config):

json
{  "mcpServers": {    "splitwise": {      "command": "npx",      "args": ["-y", "splitwise-mcp"],      "env": {        "SPLITWISE_API_KEY": "your-api-key-here"      }    }  }}

Option B -- from source

bash
git clone https://github.com/chrischall/splitwise-mcp.gitcd splitwise-mcpnpm installnpm run build

Add to Claude Desktop config:

  • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
json
{  "mcpServers": {    "splitwise": {      "command": "node",      "args": ["/absolute/path/to/splitwise-mcp/dist/index.js"],      "env": {        "SPLITWISE_API_KEY": "your-api-key-here"      }    }  }}

Getting your API key

  1. Go to secure.splitwise.com/apps/register
  2. Register an app (name and description can be anything)
  3. Copy the API key from the app detail page

Credentials

Env varRequiredNotes
SPLITWISE_API_KEYYesAPI key from splitwise.com/apps/register
SPLITWISE_OUTPUT_DIRNoWhere sw_get_receipt writes downloaded receipts (owner-only, mode 0600). Defaults to ~/Downloads/splitwise-mcp, never the working directory. When set, a per-call output_dir must be inside it.
SPLITWISE_INPUT_DIRNoThe only directory receipt.path may read from (.. and symlinks out of it are refused). Unset — always the case on a hosted server — means receipts are accepted as upload_id (hosted) or base64 only.
MCP_BLOB_BASE_URL / MCP_BLOB_SIGNING_KEYNoInjected by mcp-host on the hosted server; they turn on sw_get_upload_url. Not set locally.

Confirmations

Every Splitwise write (creating, editing or deleting expenses, groups, friends, comments, or your profile) notifies other people, so it asks you to confirm first. A client that can show a confirmation prompt (Claude Code) shows one (unless MCP_CONFIRM_ELICITATION=off). On a client that cannot (claude.ai, Claude Desktop), the first call changes nothing and returns a preview of exactly what will be sent plus a confirmToken; only a repeat call with that token goes through, and the token is refused if anything in the request changed in between.

To save calls on such a client: sw_confirm({confirmToken}) finishes any previewed write with the token alone (the server kept the arguments, so a receipt's bytes are not sent a second time), and sw_batch({ops}) previews and approves several expense/comment writes at once — e.g. create an expense, then comment on it and attach its receipt with refs: {"expense_id": "0.expense_id"}. A batch runs in order and stops at the first failure (no rollback; the result says what was applied).

variabledefault
MCP_CONFIRM_MODEask-userWhat a write does on a client that cannot show a confirmation prompt (claude.ai, Claude Desktop). ask-user: two steps — the first call does nothing and returns a preview plus a token, and the model must get your approval in chat before calling again with it. auto: the same two steps, but the model may use the token after reviewing the preview itself. refuse: writes are refused on such clients. A client that can show prompts (Claude Code) always gets the real prompt, unless MCP_CONFIRM_ELICITATION=off. An unrecognised value is treated as refuse.
MCP_CONFIRM_ELICITATIONonoff never shows a confirmation prompt, so every client gets the MCP_CONFIRM_MODE behaviour. Set it for a client that says it can show prompts but never does (the write hangs — opencode 2.0.x). Any other value is treated as on, with a warning on stderr.
MCP_CONFIRM_TTL_SECONDS600How long a token stays valid.
MCP_CONFIRM_SECRETrandom per processSigning key; set it only if tokens must survive a server restart.

Available tools

31 tools across 6 domains. All tools are prefixed sw_.

User

ToolWhat it does
sw_get_current_userGet the authenticated user's profile
sw_healthcheckVerify the API key and Splitwise reachability; says which of the two failed
sw_get_userGet another user's profile by ID
sw_update_userUpdate the current user's name, locale or default currency (login email and password are not changeable here)

Groups

ToolWhat it does
sw_list_groupsList all groups with members
sw_get_groupGroup details including members and balances
sw_create_groupCreate a new group
sw_delete_groupSoft-delete a group
sw_undelete_groupRestore a deleted group
sw_add_user_to_groupAdd a user to a group
sw_remove_user_from_groupRemove a user from a group

Friends

ToolWhat it does
sw_list_friendsList all friends
sw_create_friendAdd a friend by email
sw_delete_friendRemove a friendship

Expenses

ToolWhat it does
sw_list_expensesList or search expenses. Splitwise-side filters (group, friend, dates) plus description_contains, include_deleted (true/false/"only"), created_by, min_cost/max_cost and category, paged with next_cursor; view: "rows" for a one-line-per-expense reconciliation view and include_comments: true to see why entries were deleted
sw_get_expenseFull details of a single expense (compact includes deleted_by, updated_by and has_receipt)
sw_create_expenseCreate an expense — split_equally, split: "equal" with paid_by (someone else paid), or a custom users split; category by name, or inferred from similar expenses; the preview warns of possible_duplicates; optional receipt
sw_update_expenseEdit an existing expense, or attach/replace its receipt. Refused up front if the expense is deleted
sw_delete_expenseSoft-delete an expense
sw_undelete_expenseRestore a deleted expense, then re-read it: returns post_state, and fails naming who re-deleted it if it is still deleted
sw_attach_receiptAttach or replace the receipt on an existing expense, changing nothing else
sw_get_commentsGet comments on an expense
sw_create_commentAdd a comment to an expense
sw_delete_commentDelete a comment

Confirming

ToolWhat it does
sw_confirmFinish a previewed write with only its confirmToken
sw_batchSeveral expense/comment writes under one preview and one approval; later ops can use an earlier op's new expense_id

Receipts

ToolWhat it does
sw_get_receiptDownload an expense's receipt image/PDF with the server's credentials. Returns it inline (inline), as extracted PDF text (extract_text), and/or written to a file
sw_get_upload_urlHosted only: a short-lived signed URL to curl -X PUT a receipt file to, then pass receipt: {upload_id, filename} — no base64 through the conversation. The upload is deleted from the server once Splitwise has the receipt (upload_deleted in the reply); a failed write keeps it for a retry

Utilities

ToolWhat it does
sw_get_notificationsRecent activity feed
sw_get_categoriesExpense category list
sw_get_currenciesSupported currency codes

Troubleshooting

"SPLITWISE_API_KEY is required" -- set the environment variable in your MCP config or a .env file.

Attaching a receipt -- sw_create_expense, sw_update_expense and sw_attach_receipt take receipt: { base64, filename, mime_type? } (works everywhere, including a hosted server) or, on a local server with SPLITWISE_INPUT_DIR set, receipt: { path, filename } for a file inside that directory. PNG, JPEG, GIF or PDF up to 10 MiB (Splitwise documents no limit); the type is detected from the bytes, and a mime_type that disagrees is refused. The confirmation preview shows the file's name, type, size and SHA-256 instead of its contents, and the token is bound to those bytes. After the write the tool checks Splitwise actually stored the file (receipt.original) and returns an error naming the expense if it did not. A receipt replaces any receipt already on the expense.

401 when opening a receipt URL -- the receipt.original / receipt.large URLs on an expense are not public; they need the API key. Use sw_get_receipt instead of fetching them directly.

Receipt lands somewhere you can't read it -- sw_get_receipt writes to the server's filesystem, which is not the caller's when the server is hosted or containerised. Pass inline: true for the bytes (an image block for images, an embedded resource for PDFs) or extract_text: true for a PDF's text. With inline or extract_text and no output_dir, nothing is written unless you also pass write: true. Pass write: false to skip the write in any case; if it fails on its own (read-only filesystem), the call still succeeds and reports write_error as long as you asked for content.

429 rate limit -- Splitwise has undocumented rate limits. Wait a moment and retry.

Tools not appearing in Claude -- go to Claude Desktop > Settings > Developer to see connected servers. Make sure you fully quit and relaunched after editing the config.

Development

bash
npm test        # tsc typecheck + run the test suite (vitest)npm run build   # compile TypeScript -> dist/

Project structure

src/  client.ts         Splitwise API client (auth, request handling)  index.ts          MCP server entry point  tools/    user.ts         sw_get_current_user, sw_get_user    healthcheck.ts  sw_healthcheck    groups.ts       group CRUD and membership    friends.ts      friend list and management    expenses.ts     expense CRUD    receipts.ts     authenticated receipt download + PDF text extraction    utilities.ts    notifications, categories, currencies, comments    _confirm.ts     confirmation gate shared by every write

License

MIT

來源:README.md,提交 cb6c1f2

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

14
  1. v3.7.1最新Nov 7, 2026
  2. v3.6.0Nov 4, 2026
  3. v3.5.1Oct 20, 2026
  4. v3.4.1Oct 16, 2026
  5. v3.4.0Oct 13, 2026
  6. v3.3.1Oct 10, 2026
  7. v3.2.3Oct 5, 2026
  8. v3.2.2Oct 3, 2026
  9. v3.2.1Sep 25, 2026
  10. v3.2.0Sep 24, 2026
  11. v3.1.2Sep 23, 2026
  12. v3.1.1Sep 23, 2026
  13. v3.0.0Sep 18, 2026
  14. v2.4.2Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分