split-pro-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
split-pro-mcp
An MCP server for SplitPro, the self-hosted expense-splitting app. It lets AI assistants (Claude, chat bots, agent frameworks) read balances and expenses, and add or change expenses. Every write needs an explicit preview and confirm step.
It is meant to run on your own network next to SplitPro, behind a TLS reverse proxy. It is not meant to be exposed to the internet.
Requires SplitPro v2.2.0 or newer. That is the first release with the public REST API (/api/v1) and API keys.
Built entirely with AI. Use at your own risk. The code, tests and docs in this repository were written by an AI coding assistant, with a human reviewing the results and making the decisions. It has an automated test suite and runs in one household, but it has not had an independent security review.
This server can create and change real financial records. SplitPro API keys have no scopes, so a key used here can do everything its user can do through the API. Before you point it at the SplitPro instance you actually rely on, try it against a test instance or a copy of your data, keep backups of your SplitPro database, and read the code. The MIT license's "as is, without warranty" clause applies in full.
Tools
Tool | What it does |
| Which SplitPro user this connection acts as, plus friends, groups, and whether it may write |
| Valid categories: a section such as |
| Who owes whom, per group or overall. A positive amount means the other person owes me |
| Newest first, with optional group, text search and date window |
| One expense with each participant's share |
| Prepares a new expense from plain inputs ("42.80", "me", a name, equal or exact split). Nothing is saved yet. By default the key owner paid, and the cost is split equally between the members of the default group. |
| Prepares a change to an existing expense (description, amount, category, date, payer, split) and shows before and after. An equal split is recalculated when the amount changes |
| Prepares restoring an expense to its state before the last change made through this server, taken from the audit log |
| Saves a preview. One-shot, expires after 15 minutes, and only the client that created it can confirm it |
| Expenses entered in the last N hours, grouped by category area, with totals per area and per payer and my balance change. Includes a ready-to-send |
There is no delete tool, because SplitPro's API cannot delete. Delete in the app. Settlements, currency conversions, recurring expenses, and percentage or share splits can only be edited in the app.
The model never handles cents or SplitPro's signed participant balances. The server converts amounts, distributes odd cents, checks group membership and category, and builds the API payload. That removes a whole class of wrong-sign and off-by-100 mistakes.
Related MCP server: expense-mcp-server
Security model
Every request needs a bearer token. Each client (for example a desktop assistant and a chat bot) has its own token and its own SplitPro API key. The key decides which SplitPro user the client acts as, so expenses show the right person, and each client can be revoked on its own. Requests without a valid token get
401before any tool runs. OnlyGET /healthzis open, and it returns no data.Writes are opt-in per client (
MCP_CLIENT_<NAME>_WRITE=true), and always need preview + confirm. A preview can only be confirmed by the client that created it.SplitPro API keys have no scopes. A key can do everything its user can do through the API, including editing. This server is where access is narrowed, so don't reuse the keys elsewhere.
Audit log: every write is appended to
/data/audit.jsonl(client, action, full state before and after). It is the undo path for edits.Host header check (DNS-rebinding protection) via
MCP_ALLOWED_HOSTS.Bind the port to a private address and put a reverse proxy with TLS and a source-IP allowlist in front. See
examples/Caddyfile.
Configuration
All configuration is via environment variables. See .env.example for the full list. Generate client tokens with openssl rand -base64 36, and create SplitPro keys under Account → API keys in the account each client should act as.
Variable | Default | Meaning |
| (required) | SplitPro base URL as reachable from the server |
| (required) | Comma-separated client names |
| (required) | Bearer token for that client, at least 32 characters |
| (required) | SplitPro API key ( |
|
| Allow preview/confirm of adds and edits |
| none | Group used when a call names none |
| none (check off) | Accepted Host header values |
|
| Time zone for "today" and expense dates |
|
|
|
|
| Audit log path; empty disables it |
Run
With Docker, next to a Docker-based SplitPro:
cp .env.example .env && chmod 600 .env # fill in
mkdir -p data && sudo chown 10001:10001 data
docker compose up -d --build
curl -fsS http://127.0.0.1:3002/healthzThe compose file joins SplitPro's Docker network (splitpro_default by default), so the server reaches SplitPro at http://splitpro:3000 without going through the proxy.
For development:
python -m venv .venv && .venv/bin/pip install -e '.[test]'
.venv/bin/pytest -qThe MCP endpoint is /mcp (streamable HTTP, stateless, JSON responses).
Connect clients
Claude Code:
claude mcp add --scope user --transport http splitpro https://splitpro-mcp.example.lan/mcp \
--header "Authorization: Bearer <client token>"Other MCP clients: configure an HTTP (streamable) MCP server with the URL above and an Authorization: Bearer <token> header.
Cloud-hosted assistants (for example web chat apps with remote connectors) can only use this server if it is reachable from the internet. That is not recommended for a write-capable finance tool.
Daily digest
examples/digest.py calls new_expenses_digest and prints the ready-made text, or nothing if no expenses were entered. Run it from cron or an agent's scheduler and forward the output to a chat. No language model is involved, so the numbers are exactly what SplitPro has.
SPLITPRO_MCP_URL=https://splitpro-mcp.example.lan/mcp SPLITPRO_MCP_TOKEN=… examples/digest.py --hours 24After SplitPro updates
SplitPro's API is versioned 0.1.0 and is still being rolled out. After updating SplitPro, run whoami and a preview_expense once to check that the response shapes still match.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Split bills from your AI: read bills & balances, create equal splits, request settlements.
Shared expenses, balances and settle-ups for groups and teams, through your AI assistant.
Split group expenses: add, read balances, settle up. Revocable agent keys for chosen groups.
Track expenses from receipt photos, then search, summarize and update them from your AI assistant.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to manage Splitwise expenses with atomic duplicate prevention, smart fuzzy matching, and support for flexible split ratios between two people.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to track and manage expenses, including adding, viewing, and summarizing expenses by category, date, or amount, with persistent local storage.2-
- AlicenseAqualityDmaintenanceEnables MCP-compatible AI hosts to manage Splitwise accounts, including expenses, groups, friends, and balances, with built-in guards against duplicate charges and unconfirmed destructive actions.1724 PyPI1MIT
- AlicenseAqualityBmaintenanceEnables natural-language interaction with Splitwise to explain balances, find missing or duplicate expenses, plan settlements, and safely add expenses with confirmation.1011 npmMIT