mcp-spendee
You can inspect Spendee data and preview/create transactions via MCP.
Check whether credentials and local Spendee settings are configured.
List wallets with IDs, balances, and currencies.
List modern Spendee labels.
List categories, optionally filtered by wallet and expense/income type.
List transactions, optionally filtered by wallet, with limit/offset.
Preview or create an income/expense transaction with amount, note, labels, currency/exchange rate, and occurred_at; confirmed creates require confirm=true and request_id.
Note: the README mentions moving transactions and date-based transaction filters, but the provided schema does not expose those tools/parameters.
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., "@mcp-spendee show me my wallets"
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.
mcp-spendee
An unofficial Model Context Protocol (MCP) server for Spendee. It lets MCP clients inspect wallets, categories, and transactions, create income or expense transactions, and move existing transactions between manual wallets.
Spendee does not publish a supported public API. This server uses afork of the archived third-party
spendee package and may stop working when Spendee changes its private API.
Test it with a non-critical wallet first.
Tools
spendee_status— check local configuration without logging in or exposing secrets.list_wallets— list Firestore wallet IDs, names, states, and currencies.list_labels— list modern Spendee labels stored in Firestore.list_categories— list and optionally filter categories.list_transactions— list and optionally filter transactions.create_transaction— preview or create an expense/income transaction, optionally with existing modern labels and an amount in a currency different from the selected wallet.move_transaction— preview or move one existing transaction to another wallet.
Creating a transaction is deliberately two-step. Call create_transaction once
with confirm=false to inspect the normalized payload, then repeat it with
confirm=true and a unique request_id. Reusing a request ID in the same
server process returns the cached result instead of creating a duplicate.
Wallet routing is a client responsibility; the server does not encode personal
rules for wallet names, transaction purposes, currencies, or dates.
Wallet and category IDs are legacy integers when Spendee still provides them;
newer resources use Firestore UUID strings. Both forms are accepted by
list_categories, list_transactions, and create_transaction.
Before a confirmed write, the server compares the complete normalized
transaction with current Firestore data: wallet, category, amount, type, note,
date and foreign-currency fields. An exact match returns status=existing
instead of creating another transaction, even when a retry uses a different
request_id or the server has restarted. If the retry adds labels, the server
applies them to the existing transaction.
When two source operations genuinely have identical fields, the caller can set
allow_duplicate=true only after the user explicitly confirms that both are
separate charges.
The forked spendee library owns both the modern Firestore transaction and
label writes. If label attachment fails after transaction creation, a
retry with the same request_id retries only the labels and does not create the
transaction twice.
For a foreign-currency transaction, pass the original positive amount and its
ISO currency. The preview resolves Spendee's current exchange rate and shows
both the wallet amount and the original amount. Repeat the confirmed call with
the preview's foreign_rate in exchange_rate; this pins the exact conversion
that was reviewed instead of silently fetching a newer rate.
Related MCP server: Expense Tracker MCP Server
Moving an existing transaction
Use source_wallet_id and target_wallet_id from list_wallets and the
transaction_id from list_transactions. Call move_transaction without
preview_token first. Verify both wallet names and the transaction details,
then call it with the same IDs and the returned token. After a timeout, retry
with the same token. If the original is gone and the destination matches the
preview, the retry returns already_moved.
The wallets must be active manual wallets under the current user's account and have the same currency. Only regular transactions in the known Firestore schema are supported. The move preserves the transaction ID, amount, original currency and exchange rate, category, date, note and label relations. Firestore creates the destination and deletes the source in one atomic commit, with preconditions to prevent overwriting existing documents or deleting documents that changed after the read. The server verifies the result by reading both wallets.
Transaction history and dates
list_transactions filters on Firestore's madeAt timestamp before downloading
rows, using a structured query.
Results are newest first within each wallet. limit (default 100, maximum 1000)
and offset apply per wallet; omit wallet_id to query each wallet separately.
date_from/date_toasYYYY-MM-DDinclude the entire UTC calendar days.Timestamps must include
Zor a UTC offset; the start is inclusive and the end exclusive. Naive timestamps are rejected, not interpreted in Moscow time.limit=nullrequires both date bounds and returns the complete period. Internal pages use a cursor and a fixed read snapshot. A failed page fails the whole call, never returning an apparently complete partial result.
For a duplicate precheck of a September 29 operation with an unknown source zone, use its calendar date with a one-day margin on both sides:
{
"wallet_id": "<wallet ID from list_wallets>",
"date_from": "2026-09-28",
"date_to": "2026-09-30",
"limit": null,
"include_labels": false
}The confirmed write also checks all transactions in a date window around
its normalized instant, without a row limit. The exact-match signature remains
unchanged; expanding a search window never changes the transaction timestamp.
occurred_at accepts explicit UTC offsets. Naive creation timestamps retain the
existing SPENDEE_TIMEZONE fallback, so callers should supply an offset when the
source timezone is known.
Diagnostics
The server emits JSON events to stderr with a shared call_id and the MCP
protocol request ID. Events cover tool duration, worker queue and lock wait,
authentication and auth retries, HTTP endpoint category/status/duration/timeouts,
query bounds, page/document counts, and transaction result status. Wallets are
hashed. Credentials, tokens, HTTP bodies, URL query strings, transaction amounts,
notes and labels are not included in these diagnostic events.
Firebase authentication has a 10-second connection / 30-second read timeout;
Firestore retains its 30-second timeout. These are network timeouts, not a total
MCP call deadline. On client cancellation the server logs tool_cancelled and
eventually worker_finished with after_cancel=true if the worker was running.
The worker stops before starting further network requests; an in-flight write
can still complete, so retry an uncertain write only with the same request_id.
A proxy timeout that does not send an MCP cancellation cannot be detected as a
cancellation by this server; correlate its tool_start / tool_end events with
the client's timeout timestamp and proxy logs.
For the shared systemd pool on aitools, read the system journal (the unprivileged user journal may show only older entries):
sudo journalctl _SYSTEMD_USER_UNIT=codex-mcp-pool.service --since '10 minutes ago' -o catInstallation
Install uv, clone the repository, then run:
uv syncSet credentials in the MCP client environment. Do not commit a .env file:
SPENDEE_EMAIL=you@example.com
SPENDEE_PASSWORD=your-password
SPENDEE_TIMEZONE=Europe/Moscow
SPENDEE_GLOBAL_CURRENCY=EURSPENDEE_TIMEZONE and SPENDEE_GLOBAL_CURRENCY are optional. They default to
Europe/Moscow and EUR.
MCP client configuration
Use the absolute path to the cloned checkout:
{
"mcpServers": {
"spendee": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/mcp-spendee",
"run",
"mcp-spendee"
],
"env": {
"SPENDEE_EMAIL": "you@example.com",
"SPENDEE_PASSWORD": "your-password",
"SPENDEE_TIMEZONE": "Europe/Moscow",
"SPENDEE_GLOBAL_CURRENCY": "EUR"
}
}
}
}The server uses MCP over stdio. Logs and errors never write to the protocol's stdout stream.
Development
make install
make lint
make testSecurity
Credentials are read only from environment variables.
Status output never includes credentials.
Transaction amounts must be positive;
transaction_typedetermines the sign.Creates require both
confirm=trueand a non-emptyrequest_id. Moves require the token from a matching preview.The request cache handles immediate retries, and the Firestore content check prevents exact duplicates across request IDs and server restarts.
License
MIT
Available Tools
6 toolscreate_transactionA
Preview or create a transaction.
Amount must always be positive. transaction_type controls whether Spendee receives a negative expense or positive income. currency defaults to the selected wallet's currency. For a different currency, preview without an exchange_rate first, then confirm with the returned foreign_rate as exchange_rate. First call with confirm=false; create only after checking the preview, then pass confirm=true and a unique request_id.
Inputs: amount (required), wallet_id (required), category_id (required), transaction_type (required), +7 more. Returns: object
list_categoriesA
List Spendee categories, optionally filtered by wallet and expense/income type.
Inputs: wallet_id, category_type. Returns: result
list_labelsA
List modern Spendee labels from Firestore.
Inputs: no named parameters. Returns: result
list_transactionsA
List transactions, optionally filtered by wallet.
Inputs: limit, offset, wallet_id. Returns: result
list_walletsA
List Spendee wallets with IDs, balances, and currencies.
Inputs: no named parameters. Returns: result
spendee_statusA
Check whether credentials and local Spendee settings are configured.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct resource or action: status checks configuration, list_wallets/labels/categories/transactions each list a different entity, and create_transaction handles transaction creation. There is no overlap in purpose.
Most tools follow a verb_noun pattern (list_*, create_*), but 'spendee_status' deviates by using a noun without a verb. Still, the snake_case style and prefix are consistent, making it readable.
With 6 tools, the server is well-scoped for a Spendee integration, covering essential read operations, one write operation, and a status check. Each tool earns its place without bloat.
The core workflows of viewing wallets, labels, categories, and transactions, plus creating transactions, are covered. Missing update/delete operations are minor gaps that could be worked around, but for a finance-focused server they are not critical.
Maintenance
Related MCP Connectors
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
A MCP server for the Frankfurter API for currency exchange rates.
MCP server for ABRA Flexi — accounting, contacts, stock and draft-checked invoice creation.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA lightweight MCP server for tracking personal expenses, income, and budget summaries using SQLite.4-
- FlicenseBqualityDmaintenanceMCP server for managing and analyzing expenses. Provides tools to add, list, summarize expenses, and retrieve categories.3-
- AlicenseAqualityCmaintenanceAn unofficial MCP server that connects Despezzas financial data to MCP clients like ChatGPT, enabling listing accounts, cards, categories, searching transactions, and performing write operations with safety protections.35MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for tracking expenses with local SQLite storage. Provides tools to add, list, and summarize expenses by category.-