Tax Ledger for developers
The MCP server and REST API use the same rules as the web app. Each API key reaches one private ledger. New accounts get 7 days free, then $9.99/month or $50/year automatically until canceled. Payment method required. Start your free trial.
Setting up an assistant for a user? Read the agent setup guide.
API keys
- Each key belongs to the ledger of the account that created it. You can revoke each key separately.
- Scopes:
read,write(also requiresread), andexport. - A key expires after 90 days by default, and after 365 days at most.
-
Create keys in the web app at API keys. The app shows a new key one time,
and the same screen lists and revokes keys. The screen calls
POST /api/security/credentialswith{ "name", "scopes", "expires_in_days" }. GET /api/security/credentialslists your keys, andDELETE /api/security/credentials/:idrevokes one. These routes need your web session. An API key cannot use them.
Claude Code
Add Tax Ledger as a user-scoped MCP server with a scoped API key:
$ claude mcp add --scope user --transport http tax-ledger https://trytaxledger.com/mcp --header "Authorization: Bearer <SCOPED_API_TOKEN>"
Restart any open Claude Code session to load Tax Ledger.
MCP endpoint
- URL:
https://trytaxledger.com/mcp - Transport: stateless Streamable HTTP over
POST /mcpwith JSON responses, andGETandDELETEreturn 405. - Auth: MCP OAuth access tokens or
Authorization: Bearer <SCOPED_API_TOKEN>. MCP does not accept a browser session. See ChatGPT setup and connected assistants. - Each tool needs a scope:
readto list and get,writeto create, update, delete, or attach, andexportforexport_tax_package. -
Tools:
list_expenses,get_expense,create_expense,update_expense,delete_expense,attach_receipt_from_url,attach_receipt_base64,create_receipt_upload_url,list_receipts,get_receipt_link,list_payment_methods,create_payment_method,list_accounts,create_account,list_categories,get_summary,find_incomplete,export_tax_package. Resource:expenses://summary/{tax_year}. category,payment_method, andaccountaccept an id or a name, and an ambiguous name returns an error that lists the candidates without writing anything.
REST API
/api routes accept a scoped API key
(Authorization: Bearer <SCOPED_API_TOKEN>) or a signed-in web session, and cover:
- Expenses: create, update, soft delete, and restore.
- Receipt uploads.
- Payment methods, accounts, and categories.
- Yearly summaries and the incomplete list.
- CSV and tax-package exports.
GET /api/health is public. Receipt, export, and upload links also need the owner's session or API key. A link alone gives no access.
Errors use the shape { "error": { "code", "message" } }.
Status rules
- No receipt:
needs_receipt. - A receipt, a category, and a business purpose:
complete. - A receipt, but no category or no business purpose:
needs_review.
The web app, the REST API, and MCP use the same rules.