Spliit MCP for Cloudflare Workers
An unofficial, security-focused MCP server for Spliit that runs on Cloudflare Workers. It enables remote management of multiple Spliit groups, including reading balances and expenses, and safely preparing and committing drafts.
README
Spliit MCP for Cloudflare Workers
An unofficial, security-focused MCP server for Spliit. One remote MCP connection can remember many groups, keep one active group, and read or deliberately create Spliit data. It is designed for a personal Cloudflare Worker deployment.
A normal Spliit group link is sufficient. No modified Spliit backend or Spliit account is required.
[!IMPORTANT] A Spliit group link grants access to its group. Add links only through the protected
/setuppage. Never paste a real link into an AI prompt, commit, issue, screenshot, or log.
Version 1 breaking change
Version 1 replaces per-call group arguments with a durable active-group model:
list_groupslists remembered aliases and the active alias;select_groupchanges the active group for later reads and preparations;- read tools no longer accept a
groupargument; - direct create tools are replaced by
prepare_expense,prepare_reimbursement, andcommit_draft; - group credentials and drafts are encrypted inside a SQLite Durable Object;
- the old
SPLIIT_GROUPS_JSONsecret is imported once for a safe upgrade.
Prepared drafts contain an immutable encrypted copy of their target. Selecting
another group before commit_draft cannot redirect the write.
Install with an AI coding agent (recommended)
Give a trusted coding agent terminal and browser access, then paste:
Install Spliit MCP from https://github.com/kegelmeier/spliit-mcp-cloudflare
into my Cloudflare account. Read AGENTS.md and docs/agentic-install.md completely
before acting. Keep writes disabled. Never ask me to paste a Spliit group URL
into chat, a command argument, source control, or logs. Use Wrangler's
interactive Cloudflare login. Generate separate 32-byte MCP and admin tokens
and a 32-byte data-encryption key without displaying them. Deploy with an empty
SPLIIT_GROUPS_JSON bootstrap value, validate /healthz and authentication, then
give me the /setup URL so I can add group links privately in my browser.
Configure one Streamable HTTP MCP connection with an environment-backed bearer
token. Stop before enabling writes.
Existing 0.x deployments need the upgrade variant in Agentic installation.
Other installation paths
Tools
| Tool | Default | Purpose |
|---|---|---|
list_groups |
Read-only | List aliases and show which one is active |
select_group |
State change | Remember the active alias |
get_group |
Read-only | Read active-group metadata and participants |
get_balances |
Read-only | Read balances and suggested reimbursements |
list_expenses |
Read-only | Page and filter active-group expenses |
get_expense |
Read-only | Read one active-group expense |
list_categories |
Read-only | Read categories from the active Spliit host |
list_activities |
Read-only | Read recent active-group activity |
prepare_expense |
Opt-in | Validate and store an expiring group-bound draft |
prepare_reimbursement |
Opt-in | Validate and store an expiring group-bound draft |
commit_draft |
Opt-in | Commit a prepared draft exactly to its bound group |
Write tools are absent unless WRITES_ENABLED is set to "true" and the
Worker is redeployed. There are no update or delete tools.
Configuration
Four encrypted Worker secrets are required:
| Name | Purpose |
|---|---|
MCP_AUTH_TOKEN |
Bearer token used by the MCP client; at least 32 characters |
ADMIN_TOKEN |
Different bearer token used only by /setup |
DATA_ENCRYPTION_KEY |
Exactly 64 hexadecimal characters used for AES-256-GCM |
SPLIIT_GROUPS_JSON |
Import-only 0.x migration value; use [] on a new install |
Do not change DATA_ENCRYPTION_KEY after groups are stored. There is no
automatic key-rotation migration in version 1.
Non-secret variables live in wrangler.jsonc:
| Name | Default | Meaning |
|---|---|---|
WRITES_ENABLED |
false |
Registers prepare and commit tools when true |
SPLIIT_TIMEOUT_MS |
15000 |
Upstream timeout, 1,000–30,000 ms |
DRAFT_TTL_SECONDS |
600 |
Draft lifetime, 60–3,600 seconds |
ALLOWED_SPLIIT_HOSTNAMES |
spliit.app |
Exact outbound Spliit hostname allowlist |
ALLOWED_HOSTNAMES |
empty | Optional inbound Worker hostname allowlist |
Self-hosted Spliit installations must be explicitly added to
ALLOWED_SPLIIT_HOSTNAMES before their links can be stored.
Security and persistence
/mcpand/adminuse separate bearer tokens.- The MCP client receives aliases, never stored group URLs or IDs.
- Group records, draft payloads, and completed draft results are encrypted with AES-256-GCM and record-specific associated data before SQLite persistence.
- The setup page is same-origin, non-cacheable, frame-protected, and stores the admin token only in the current page's memory.
- One-time draft claims prevent concurrent duplicate commits. A completed draft is replay-safe. An interrupted ambiguous commit remains locked so the user can verify Spliit instead of risking an automatic duplicate.
- MCP transport requests remain stateless; only application state is durable.
- Request tracing is intentionally disabled because Spliit tRPC URLs can contain group IDs.
Read SECURITY.md before deployment.
Limits and cost
There is no application-level group-count cap. Practical capacity and cost are bounded by Cloudflare Durable Objects storage/request limits and the Spliit server. Expense/activity pages remain limited to 50 records and upstream responses to 2 MiB.
The design is intended to fit ordinary personal use on Cloudflare's Free plan, but platform limits can change. Check current Durable Objects pricing, Workers pricing, and platform limits.
Compatibility and non-goals
- Spliit has no account API for discovering every group; each link is added once through setup.
- The Worker calls Spliit's unofficial tRPC procedures. Upstream changes can require an update.
- Attachments, recurring creation, custom splits, updates, and deletion are not implemented.
- This project is not affiliated with Spliit or Cloudflare.
Development
npm ci
cp .dev.vars.example .dev.vars
npm run dev
npm run check
Use placeholders only in tracked files and tests. See CONTRIBUTING.md and Architecture.
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。