
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
概览
把 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 用于设定收据的读取与写入目录。
安装
在 SourceWeft 中
- 打开 控制台中的 Splitwise Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Splitwise MCP
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
- Claude Desktop or Claude Code
- Node.js 22 or later
- A Splitwise account and API key
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)
Add to your Claude config (.mcp.json or Claude Desktop config):
Option B -- from source
Add to Claude Desktop config:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Getting your API key
- Go to secure.splitwise.com/apps/register
- Register an app (name and description can be anything)
- Copy the API key from the app detail page
Credentials
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).
Available tools
31 tools across 6 domains. All tools are prefixed sw_.
User
Groups
Friends
Expenses
Confirming
Receipts
Utilities
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
Project structure
License
MIT
来源:README.md,提交 cb6c1f2
工具
0版本历史
14- v3.7.1最新Nov 7, 2026
- v3.6.0Nov 4, 2026
- v3.5.1Oct 20, 2026
- v3.4.1Oct 16, 2026
- v3.4.0Oct 13, 2026
- v3.3.1Oct 10, 2026
- v3.2.3Oct 5, 2026
- v3.2.2Oct 3, 2026
- v3.2.1Sep 25, 2026
- v3.2.0Sep 24, 2026
- v3.1.2Sep 23, 2026
- v3.1.1Sep 23, 2026
- v3.0.0Sep 18, 2026
- v2.4.2Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分