tricount-mcp
tricount-mcp lets you read and edit Tricount groups through MCP tools, with previews before writes.
Connect/validate a Tricount link or key and get its title and members.
View a summary with members, currency, total spending, balances, and suggested settlement transfers.
List transactions with filters for payer, involved member, text/category, dates, reimbursements, and result limit.
Get member details: paid amount, share, income received, balance, debts, and spending by category.
Create expenses with equal splits, exact amounts, or ratios.
Create income split among members.
Record reimbursements between two members.
Delete an entry by ID.
Require
acting_asfor writes and show a preview unlessconfirm=true.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tricount-mcp who owes whom in this tricount? https://tricount.com/tXXXX"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
tricount-mcp
English · Español
An MCP server to read and edit Tricount from any AI assistant that supports MCP: Claude, Cursor, VS Code (GitHub Copilot), Windsurf, Gemini CLI, Codex CLI, LM Studio, ChatGPT (as a remote connector) and others.
Ask things like:
"Who owes whom in this tricount? https://tricount.com/tXXXX"
"Which expenses include Bob?"
"Add Pizza, $24, I paid, split among everyone except Carol"
"Record that Alice sent me $5"
Don't code? Follow the quick start guide: step-by-step setup for your AI assistant, no programming needed.
Unofficial project. Not affiliated with Tricount or bunq. It uses a private API that was reverse-engineered from the mobile app, and it may stop working without notice. Read the disclaimers before using it.
Features
Tool | What it does |
| First step: validates the link and returns the members |
| Members, total spent, balances and suggested transfers to settle up |
| Transactions, filtered by who paid, who is involved, text and dates |
| How much a person paid, their share and their spending by category |
| Creates an expense: equal split, exact amounts or ratios |
| Creates an income (money received), split among members |
| Records a reimbursement between two members |
| Deletes a transaction |
No Tricount account or password needed: the tricount link is enough, just like in the app.
Related MCP server: CashChat MCP Server
How it works
The server sends the assistant a usage guide when it connects, and the important rules are also enforced in code:
The assistant asks for the tricount link and connects with
connect_tricount.It shows the members and asks which one is you. It doesn't guess: names can be similar, and a mistake charges expenses to someone else.
Creating or deleting requires
acting_as(the member you are); names that aren't in the tricount are rejected.It never saves directly: it first shows a preview and only saves once you confirm.
Amounts are split in whole currency units (pesos in CLP, cents in EUR or USD), so shares always add up exactly to the total.
Installation
Quick install with uv (recommended)
With uv installed you don't need to clone anything or install Python: the client downloads and runs the server from PyPI. Every MCP client needs the same command:
uvx tricount-mcpMost clients (Claude Desktop, Cursor, Windsurf, Gemini CLI, LM Studio, Cline…) take it in this format:
{
"mcpServers": {
"tricount": {
"command": "uvx",
"args": ["tricount-mcp"]
}
}
}The quick start guide lists where each app keeps its config, plus the formats for VS Code, Codex CLI and Claude Code.
Manual install (to modify the code)
You need Python 3.10 or newer and git.
git clone https://github.com/Javo2804/tricount-mcp.git
cd tricount-mcp
python -m venv .venvInstall the dependencies.
On Windows:
.venv\Scripts\python -m pip install -r requirements.txtOn macOS or Linux:
.venv/bin/python -m pip install -r requirements.txtCheck that it works with the sample tricount published by Tricount (read-only):
.venv/bin/python test_stdio.py https://tricount.com/tMjbqgwJxaikhUbkNz(On Windows, use .venv\Scripts\python instead of .venv/bin/python.)
Connect it to your assistant (manual install)
Any client that supports local (stdio) MCP servers works. Instead of uvx, use two absolute
paths:
Command: the virtual environment's Python,
.../tricount-mcp/.venv/bin/python, or on Windows...\tricount-mcp\.venv\Scripts\python.exe.Argument:
.../tricount-mcp/server.py.
In the common mcpServers format:
{
"mcpServers": {
"tricount": {
"command": "/path/to/tricount-mcp/.venv/bin/python",
"args": ["/path/to/tricount-mcp/server.py"]
}
}
}On Windows, write paths with double backslashes, for example:
"C:\\Users\\your-user\\tricount-mcp\\.venv\\Scripts\\python.exe". For other formats (VS Code,
Codex CLI, Claude Code), see the quick start guide
and replace the command and arguments. Restart the client after changing its config.
ChatGPT and web clients
Web clients can't launch processes on your computer: they need the server published on the internet over HTTP. See Deploy your own instance.
Optional settings
Variable | Purpose |
| Link or key of a tricount to use when you don't specify one |
| User-Agent sent to the API (see disclaimers) |
| If set, the server uses HTTP at |
In the mcpServers format, add variables with
"env": {"TRICOUNT_DEFAULT": "https://tricount.com/tXXXX"} inside the server entry.
Deploy your own instance
To use it from ChatGPT, claude.ai or with several people, deploy it as an HTTP server:
PORT=8080 .venv/bin/python server.pyThe MCP endpoint is http://<host>:8080/mcp (streamable HTTP, stateless). The repository includes
a Dockerfile. For example, on Google Cloud Run:
gcloud run deploy tricount-mcp --source . --project <your-project> --region <your-region> --allow-unauthenticated --max-instances 3 --memory 512MiThen add https://<your-service>/mcp as a custom connector in your client.
Important: deployed this way, the server has no authentication. Anyone who knows the URL can use it, although only with tricounts whose link they have. Share the URL only with the right people. If you need access control, add OAuth (the MCP SDK supports it) or put it behind an authenticated proxy.
Every confirmed write emits a JSON log line on stderr with the declared member (acting_as), the
tricount and the transaction. On Cloud Run it goes to Cloud Logging:
gcloud logging read "resource.type=cloud_run_revision AND jsonPayload.audit.action:*" --project <your-project> --limit 20Tests
test_stdio.py [link]: read test against an existing tricount.test_write.py [http-url]: creates its own throwaway tricount, exercises every write, checks the balances and deletes it at the end. Without arguments it uses stdio; with a URL (http://localhost:8080/mcp) it tests an HTTP server.
Disclaimers
Unofficial API. Tricount doesn't publish this API. It may change or be blocked at any time, and using it may not be allowed by their terms of service. Use it at your own risk and in moderation.
User-Agent. The API only accepts writes from clients that identify as Tricount's Android app; with any other User-Agent it replies "Group Expenses is no longer available in the bunq app". That's why the server sends the app's User-Agent, like the projects it builds on. You can change it with
TRICOUNT_USER_AGENT.Anyone with the link can edit. That's how Tricount works. The server can add expenses on behalf of any member.
acting_asprevents mix-ups, but it doesn't verify identity.Local session. The server registers with the API as an anonymous device and stores that session in
~/.tricount-mcp/session.json. It doesn't store your tricounts or your data.
Technical notes
Authentication: registers a "device" with a UUID and an RSA public key (
POST /v1/session-registry-installation) and uses the token it gets back. If the token expires, it registers again automatically.Before writing, it syncs the tricount to the session (
registry-synchronization).Reimbursements are stored with a negative amount, like the official app does. Some community documentation says they're positive, but that reverses them.
Reads are cached for 60 seconds per tricount.
Credits
Built on the research of:
mlaily/TricountApi: authentication and reading.
elrandar/tricount-api: write endpoints.
License
Available Tools
8 toolsconnect_tricountA
Primer paso al trabajar con un tricount: valida el link y devuelve su título y miembros. Después pregúntale al usuario cuál de esos miembros es él o ella, y usa ese nombre como acting_as en las herramientas que escriben.
Args: tricount: link (https://tricount.com/tXXXX) o key del tricount.
Inputs: tricount (required).
create_expenseA
Crea un gasto en un tricount. Sin confirm=true solo devuelve una vista previa.
El reparto se define con UNA de estas opciones (si no se da ninguna, se reparte en partes iguales entre todos los miembros):
split_among: lista de miembros, en partes iguales.
exact_amounts: monto exacto por miembro; debe sumar
amount.ratios: proporción por miembro (p. ej. {"Ana": 2, "Juan": 1}).
Args: acting_as: el miembro del tricount que es el usuario con quien conversas, tal como lo confirmó tras connect_tricount. "Yo", "me" o "conmigo" se refieren a este miembro. description: qué se compró. amount: monto total (positivo), en la moneda del tricount. paid_by: quién pagó ("yo" = acting_as). tricount: link o key del tricount. category: FOOD_AND_DRINK, GROCERIES, TRANSPORT, TRAVEL, ENTERTAINMENT, SHOPPING, RENT_AND_UTILITIES, HEALTHCARE, INSURANCE, OTHER; o un texto libre (categoría personalizada). expense_date: fecha del gasto (YYYY-MM-DD); por defecto hoy. confirm: true para guardar de verdad.
Inputs: amount (required), paid_by (required), acting_as (required), description (required), +7 more.
create_incomeA
Crea un ingreso (dinero recibido, p. ej. una ayuda) en un tricount. Sin confirm=true solo devuelve una vista previa.
Args: acting_as: el miembro del tricount que es el usuario con quien conversas, tal como lo confirmó tras connect_tricount. "Yo", "me" o "conmigo" se refieren a este miembro. description: origen del ingreso. amount: monto total recibido (positivo), en la moneda del tricount. received_by: quién recibió el dinero ("yo" = acting_as). tricount: link o key del tricount. split_among: miembros a quienes corresponde el ingreso, en partes iguales (por defecto, todos los miembros). category: igual que en create_expense. income_date: fecha del ingreso (YYYY-MM-DD); por defecto hoy. confirm: true para guardar de verdad.
Inputs: amount (required), acting_as (required), description (required), received_by (required), +5 more.
create_reimbursementA
Registra un reembolso (transferencia) de un miembro a otro. Sin confirm=true solo devuelve una vista previa.
Args: acting_as: el miembro del tricount que es el usuario con quien conversas, tal como lo confirmó tras connect_tricount. "Yo", "me" o "conmigo" se refieren a este miembro. from_member: quién paga la deuda. to_member: quién recibe el dinero. amount: monto transferido (positivo). tricount: link o key del tricount. description: texto del movimiento. reimbursement_date: fecha (YYYY-MM-DD); por defecto hoy. confirm: true para guardar de verdad.
Inputs: amount (required), acting_as (required), to_member (required), from_member (required), +4 more.
delete_entryA
Elimina un movimiento (gasto, ingreso o reembolso) por su id. Sin confirm=true solo muestra qué se borraría. El id se obtiene con list_expenses.
Args: acting_as: el miembro del tricount que es el usuario con quien conversas, tal como lo confirmó tras connect_tricount. "Yo", "me" o "conmigo" se refieren a este miembro. entry_id: id del movimiento. tricount: link o key del tricount. confirm: true para borrar de verdad.
Inputs: entry_id (required), acting_as (required), confirm, tricount.
get_member_detailB
Detalle de un miembro: cuánto pagó, cuánto le corresponde, cuánto recibió en ingresos, su balance, a quién debe o quién le debe, y sus gastos por categoría.
Args: member: nombre del miembro (acepta coincidencia parcial). tricount: link o key del tricount.
Inputs: member (required), tricount.
get_tricount_summaryB
Resumen de un tricount: título, moneda, miembros, gasto total, balances de cada miembro y las transferencias sugeridas para saldar las deudas.
Args: tricount: link (https://tricount.com/tXXXX) o key del tricount.
Inputs: tricount.
list_expensesA
Lista los movimientos de un tricount (más recientes primero), con filtros opcionales.
Args: tricount: link o key del tricount. paid_by: solo los que pagó este miembro. involving: solo los que incluyen a este miembro en el reparto. search: texto a buscar en la descripción o categoría. date_from: fecha mínima (YYYY-MM-DD), inclusive. date_to: fecha máxima (YYYY-MM-DD), inclusive. include_reimbursements: incluir reembolsos entre miembros. limit: máximo de resultados.
Inputs: limit, search, date_to, paid_by, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a distinct action target: connect_tricount bootstraps, get_tricount_summary gives aggregate balances, get_member_detail gives per-member breakdown, and create_expense/income/reimbursement are clearly separate entry types. There is mild overlap between connect_tricount and get_tricount_summary (both return title and members), but the workflow role of connect makes the boundary clear enough.
All eight tools follow a consistent snake_case verb_noun pattern (get_, create_, list_, delete_, connect_). No mixing of casing or verb styles, making the naming highly predictable.
Eight tools is a well-scoped surface for a Tricount expense-splitting domain, covering read, create, delete, and summary operations without bloat. Each tool clearly earns its place.
The surface covers create (expense/income/reimbursement), read (list/summary/member detail), and delete, but lacks an update/edit operation for existing entries. This is a minor gap that agents can work around by deleting and recreating, but it prevents correcting a mistaken split or amount in place.
Maintenance
Related MCP Connectors
Split bills from your AI: read bills & balances, create equal splits, request settlements.
Plan group trips with your AI: itineraries, checklists, shopping, expenses and who owes whom.
Personal finance, bank account, and shared memory connector for Claude, ChatGPT, Gemini Spark & more
Split bills, track who owes who, budgets and spending in Tucope from Claude or ChatGPT.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage personal expenses through natural language conversations. Supports adding, searching, and analyzing transactions with automatic categorization and financial insights.3MIT
- AlicenseAqualityDmaintenanceConnects CashChat financial data to AI assistants, enabling users to manage transactions, view spending summaries, and track category breakdowns through natural language. It supports both local stdio and remote URL-based connections with secure OAuth 2.0 authentication.8MIT
- AlicenseAqualityCmaintenanceEnables AI agents to manage Splitwise expenses through natural language, including reading balances, splitting costs, and handling authentication and rate limits automatically.7MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to read and modify Settle Up group finances — listing groups, checking who owes whom, searching transactions, and recording, editing or deleting shared expenses and debt-settling transfers. Authenticates with Settle Up email and password credentials, with group and member creation optionally unlocked by an extra environment flag.98 npm1MIT