Labsco
bhvkmuni logo

Splitwise MCP Server

โ˜… 1

from bhvkmuni

Manage Splitwise expenses with plain English via Claude AI โ€” add expenses, check balances, and settle up without opening the app.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeNeeds API keys

Splitwise MCP Server โ€” Control Splitwise With Plain English

"Add a โ‚ฉ45,000 dinner, I paid, split equally." Done. No app. No tapping. No math.


Why I Built This

I was about to head on a trip with friends and already dreading the expense tracking.

You know how it goes โ€” someone pays for dinner, someone else grabs the cab, another person covers the hotel deposit. By day two, you've lost track. So you open Splitwise, tap through four screens, type the amount, select the people, pick who paid, hit save. Then do it again for the next thing. And the next.

I thought: I'm already using Claude for everything else. What if I could just tell it what happened, and it handles Splitwise for me?

So I built this over a weekend. It's a small Python server that connects Claude AI directly to your Splitwise account. You talk to Claude like a human, and it does the Splitwise work for you โ€” adding expenses, checking balances, recording settlements, fixing mistakes.

No switching apps. No manual entry. Just say what happened.


What It Feels Like to Use

You:    "We had a group dinner for โ‚ฉ65,000. I paid. Split equally."
Claude: Done! Added "Group dinner" for โ‚ฉ65,000.00 (KRW), split equally
        among 4 members. Each person owes โ‚ฉ16,250.

You:    "What does everyone owe in the trip group?"
Claude: Here are the current balances:
        โ€ข Raj owes you โ‚ฉ32,500
        โ€ข Priya owes you โ‚ฉ16,250
        โ€ข Sam is owed โ‚ฉ8,000 by the group

You:    "Record that Raj paid me back โ‚ฉ30,000."
Claude: Payment of โ‚ฉ30,000 recorded. Raj's balance updated.

You:    "Wait, that dinner was actually โ‚ฉ72,000. Can you fix it?"
Claude: Updated! "Group dinner" changed to โ‚ฉ72,000. Shares recalculated.

Works with any currency Splitwise supports โ€” USD, EUR, INR, KRW, JPY, and more.


How It Works (The Simple Version)

You talk to Claude
       โ†“
Claude understands what you want
       โ†“
Claude calls this MCP server
       โ†“
This server calls the Splitwise API
       โ†“
Your Splitwise account updates instantly
       โ†“
Everyone's app reflects the change

MCP (Model Context Protocol) is a standard way to give Claude access to external tools. This project is the "Splitwise tool" โ€” a bridge between Claude and your Splitwise account.

See architecture.md for a detailed diagram of how everything connects.


What You Can Do

Ask ClaudeWhat Happens
"List my groups"Shows all your Splitwise groups with members
"Who owes what in the [group]?"Shows all balances
"Add a $52 lunch, I paid, split equally"Creates the expense
"Add $240 hotel โ€” I paid $120, Alex $80, Sam $40"Exact split
"Split the $35 cab 50/30/20"Percentage split
"Record that Alex paid me back $20"Settlement payment
"Delete that last expense"Removes it
"Change the dinner to $60"Updates and recalculates

All Available Tools

ToolWhat It Does
get_current_userYour Splitwise profile
list_currenciesAll currencies Splitwise supports
list_groupsAll your groups with member IDs
get_groupGroup details โ€” members, balances, debts
list_expensesRecent expenses in a group
get_expenseFull details of one expense
create_expenseAdd expense (equal, exact, or percentage split)
update_expenseEdit description, cost, currency, or date
delete_expenseRemove an expense
create_paymentRecord a settlement between two people

Project Structure

splitwise-mcp/
โ”œโ”€โ”€ splitwise_server.py   โ† The entire server (~500 lines, one file)
โ”œโ”€โ”€ .env                  โ† Your API key (never committed to git)
โ”œโ”€โ”€ requirements.txt      โ† Python dependencies
โ”œโ”€โ”€ architecture.md       โ† How everything connects
โ”œโ”€โ”€ DEPLOY.md             โ† How to host on a VPS
โ””โ”€โ”€ README.md             โ† This file

Built With


Built by a first-time Python developer who just wanted to stop manually logging trip expenses. If I can build it, you can use it.