Skip to main content
Glama
ucetka-mcp

ucetka-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
UCETKA_OUTNoDirectory for issued invoice PDFs.
UCETKA_HOMENoDirectory for the company profile, records, and advances (defaults to ~/.ucetka).
UCETKA_REPORTSNoDirectory for VAT filings, control statements, EC sales lists, and the income and expense book.
UCETKA_RECEIVEDNoDirectory for received invoices (PDF, ISDOC).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

ucetka: invoicing and bookkeeping for a Czech sole trader (OSVČ), working on local files only. Data lives in ~/.ucetka (supplier.yaml, customers.yaml, tax.yaml, invoices/, expenses/, payments.json) and in ~/Documents/Účetnictví/{Vydané faktury, Přijaté faktury, Přehledy} (issued PDFs, received PDFs, reports). Precondition: the supplier profile must exist — run ucetka init in a terminal first; most tools fail without it.

Typical workflows:

  • Invoicing: list_customers / lookup_company / add_customer → peek_invoice_number → issue_invoice → draft_invoice_email → (after the bank statement) mark_paid. Wrong invoice not yet sent: cancel_invoice; already delivered: issue_credit_note.

  • Received and foreign documents: sync_invoices → list_import_issues → read each PDF → add_expense (received) / add_manual_invoice (issued). Paid expense: mark_expense_paid.

  • Taxes: tax_overview for the current state, advance_schedule for ČSSZ (social insurance) advances, record_payment after paying a tax/insurance advance, export_vat_return each VAT quarter, export_book for the yearly income/expense book, open_dashboard for charts.

Guarantees: nothing is ever filed with authorities (VAT files are only written to disk for a manual upload) and no e-mail is ever sent (only a draft is opened). Network access: ARES company registry (lookup_company, add_customer, issue_invoice with customer_ico) and ČNB exchange rates (issue_invoice in a foreign currency). macOS-only: draft_invoice_email (Mail.app) and open_dashboard (browser). Confirm with the user before destructive tools (cancel_invoice, remove_expense) and before issuing documents (issue_invoice, issue_credit_note); verify amounts and the customer first. Ask instead of guessing tax details such as reverse charge or private use.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_supplierA

Return the user's own business details (the invoicing supplier): name, IČO (company ID), DIČ (VAT ID), VAT-payer status, address and the default bank account used on new invoices.

Read-only; reads ~/.ucetka/supplier.yaml, no network. Use it to check who invoices are issued as or which account issue_invoice will use by default; for customers use list_customers, for any other company lookup_company. Fails with FileNotFoundError if the profile has not been created with ucetka init.

list_customersA

List the customer address book (~/.ucetka/customers.yaml): one line per customer with its customer_id, name, IČO (company ID), DIČ (VAT ID), VAT-payer status, address and e-mail.

Read-only, no network. Call it before issue_invoice to find the customer_id to pass. If the customer is missing, use lookup_company to check them in the ARES registry and add_customer to save them. Returns a hint instead of a list when the book is empty.

lookup_companyA

Look up a Czech company in the public ARES registry (Ministry of Finance) by IČO (company ID) and return its official name, registered address, DIČ (VAT ID) and whether it is an active VAT payer.

Read-only: makes one HTTPS request to ares.gov.cz and saves nothing. Use it to verify a customer before invoicing; to also store the company in the address book use add_customer instead (it does the same lookup). Fails with CompanyNotFound if the IČO does not exist, or with an HTTP/network error if ARES is unreachable.

add_customerA

Save a Czech company to the customer address book (~/.ucetka/customers.yaml) under customer_id, with name, address, DIČ (VAT ID) and VAT status fetched from the ARES registry by IČO (company ID).

Side effects: one HTTPS request to ares.gov.cz, then appends to customers.yaml. Not idempotent: if customer_id already exists it raises an error and changes nothing (existing entries are never overwritten or updated). Fails if the IČO is unknown in ARES or ARES is unreachable. Use lookup_company to only check a company, list_customers to see saved ones. Foreign customers without an IČO cannot be added here; pass their details directly to issue_invoice. Returns a one-line summary of the saved customer.

peek_invoice_numberA

Return the invoice number that issue_invoice would assign next, in the form YYMMNNN (year, month of the issue date, 3-digit sequence), e.g. '2610001'.

Read-only and reserves nothing: the number is computed again when issue_invoice runs, so it can change if another invoice is issued in between. Takes into account the ledger (~/.ucetka/invoices) and PDFs already in the issued-invoices folder. Use it to tell the user the number in advance; to create the invoice use issue_invoice.

issue_invoiceA

Issue a new invoice: render a PDF/A-3a with an embedded ISDOC 6.0.2 e-invoice and a QR Platba+F payment code, save it and record it in the ledger. Returns a summary: PDF path, number, items, totals, due date and variable symbol.

Side effects: writes ~/Documents/Účetnictví/Vydané faktury/<YY_MM_vydane>/faktura_.pdf (folder by DUZP, tax point date) and ~/.ucetka/invoices/.json; calls ARES when customer_ico is used and the ČNB rate API when currency is not CZK. Not idempotent: every call creates a new invoice with a new number, so never retry blindly — check list_invoices first. Validation errors (e.g. reverse-charge rules, missing customer or bank account) raise before anything is written and consume no number; an existing number or PDF is never overwritten. Needs supplier config from ucetka init. Confirm the customer (list_customers / lookup_company) and amounts with the user first. Use add_manual_invoice instead to record an invoice whose PDF already exists, and issue_credit_note to correct a delivered invoice. Next step is usually draft_invoice_email.

list_invoicesA

List issued invoices (and credit notes) from the local ledger, oldest first, one line each: number, issue date, customer, total incl. VAT, due date and state — unpaid ('nezaplacena'), overdue ('PO SPLATNOSTI'), paid with date, or cancelled ('STORNO' with reason).

Read-only, no network. Use it to find unpaid/overdue invoices or an invoice number; for one invoice's items, bank details, QR string and PDF path use get_invoice. It does not pick up new PDFs — run sync_invoices first if invoices were added to the folder outside ucetka. Received invoices (expenses) are not included. Returns 'Žádné faktury.' when nothing matches.

get_invoiceA

Show one issued invoice from the ledger: summary line with state, PDF path, customer, items, bank account with IBAN and the SPAYD string encoded in its QR payment code.

Read-only, no network. Use it when the number is known; to search or filter use list_invoices. Fails with InvoiceNotFound for an unknown number. Invoices without a bank account (e.g. recorded via add_manual_invoice) show no IBAN/SPAYD.

mark_paidA

Mark issued invoices (money received from customers) as paid on a given date, e.g. after checking a bank statement. Updates ~/.ucetka/invoices/.json and returns the updated summary line of each invoice.

Idempotent: repeating the call sets the same state; a different paid_date overwrites the stored one. Invoices are processed in order and the call stops at the first unknown number (earlier ones stay paid). It does not check the current state, so do not use it on a cancelled invoice. For received invoices (expenses) use mark_expense_paid; for tax or insurance payments to authorities use record_payment.

export_invoice_pohodaA

Export one issued invoice as a Pohoda XML import file (windows-1250, validated against the Pohoda XSD), for an accountant who uses the Pohoda accounting software.

Writes faktura_.pohoda.xml next to the invoice PDF and overwrites it on repeat, so calling again is safe. No network. Fails for unknown numbers, credit notes (not supported), reverse-charge invoices without eu_classification, VAT rates other than 21/12/0, item texts too long for Pohoda or characters not representable in windows-1250. Returns the file path and the Pohoda import menu path. Not needed for the built-in reports (export_vat_return, export_book).

draft_invoice_emailA

Open a DRAFT e-mail in Apple Mail.app with the invoice PDF attached, subject 'Faktura — ', ready for the user to review and send. Never sends anything.

macOS only (drives Mail.app via osascript and brings it to the front); fails elsewhere or if the PDF file is missing. Not idempotent: each call creates another draft. Use it right after issue_invoice or issue_credit_note; afterwards, when the money arrives, use mark_paid. Returns a confirmation with the recipient.

export_vat_returnA

Prepare the quarterly VAT filings as EPO XML files: VAT return (DPHDP3), control statement (DPHKH1) and, only if there were EU services, the EC sales list (DPHSHV). Returns the computed form rows and file paths.

Side effects: first runs the same import as sync_invoices (new PDFs are added to the ledger and the import-issue lists are rewritten), then writes into ~/Documents/Účetnictví/Přehledy//_Q_přehledy/{DPH,KH,SH}/. File names carry a timestamp, so every non-preview call adds a new set of files instead of overwriting. Nothing is filed: the user uploads the files on Moje daně (EPO). Requires a quarterly VAT payer and the epo section in ~/.ucetka/tax.yaml; fails on documents that cannot be classified (e.g. an EU supplier without DIČ, VAT ID). Resolve list_import_issues first. For a quick look at VAT due use tax_overview.

tax_overviewA

Year-to-date business summary in text: invoiced and paid income, estimated income tax and social/health insurance vs. advances paid, VAT per period, effective tax rate, limits (flat-rate cap, 23 % bracket, VAT registration), overdue invoices, number of unprocessed import issues and the next deadlines.

Not read-only: before computing it runs the same import as sync_invoices (new PDFs from the issued and received folders are added to the ledger, import-issue lists are rewritten); repeating is safe. No network, files nothing. Needs supplier config from ucetka init. Use it for "how am I doing / what do I owe"; advance_schedule for the month-by-month ČSSZ (social insurance) advances, export_vat_return to produce VAT filings, export_book for the income/expense book, open_dashboard for a graphical view.

sync_invoicesA

Import new PDFs from the issued-invoices folder (read via the embedded ISDOC e-invoice) and the received-invoices folder (ISDOC, or Alza invoice text) into the ledger, for this and last year.

Side effects: adds records under ~/.ucetka/invoices and ~/.ucetka/expenses, re-links moved PDFs and rewrites the issue lists (import_issues.json, expense_issues.json). Idempotent: already-imported PDFs are skipped, so repeating is safe. No network. Returns counts of imported issued/received documents and of documents needing manual entry. Then call list_import_issues and record each listed document with add_expense (received) or add_manual_invoice (issued). tax_overview and export_vat_return run this import automatically.

list_import_issuesA

List documents the last import could not process, one per line with the PDF path and the reason: no ISDOC, unknown format, foreign supplier, duplicate number, or a recorded document whose PDF has disappeared.

Read-only: it shows the lists stored by the last sync and does not re-scan — call sync_invoices first for a fresh state. For each received ('Přijatá') document read the PDF and record it with add_expense (pass pdf_path); for each issued ('Vydaná') one use add_manual_invoice. If a received PDF was deleted on purpose, use remove_expense. Ask the user about unclear points (reverse charge, private use) instead of guessing. Returns 'Nic, vše načteno.' when there is nothing to do.

add_expenseA

Record a received invoice (expense) by hand, mainly documents the import could not read (see list_import_issues). Returns a one-line confirmation with base, VAT and whether it is input VAT or reverse-charge self-assessment.

Side effects: writes ~/.ucetka/expenses/<expense_id>.json, then re-runs the received-invoice import so the matching issue disappears. No network. Not idempotent: if expense_id already exists it fails and changes nothing — use remove_expense first to replace a wrong entry. Validation fails on inconsistent reverse-charge, goods or claim_date combinations. Single VAT rate per call. For issued invoices use add_manual_invoice; to mark an existing expense paid use mark_expense_paid.

mark_expense_paidA

Mark a received invoice (expense) as paid. Matters for bookkeeping with actual expenses (daňová evidence), where an expense counts for income tax only once paid; flat-rate users rarely need it.

Updates ~/.ucetka/expenses/<expense_id>.json. Not idempotent: fails if the expense is already marked paid (the stored date is kept) or does not exist. Returns a confirmation. For issued invoices paid by customers use mark_paid; for tax or insurance payments use record_payment; to set the date when first recording an expense pass paid_date to add_expense.

export_bookA

Export the yearly income and expense book (kniha příjmů a výdajů, the cash-basis tax record) as CSV (semicolon-separated, opens in Czech Excel) and PDF. Rows are only PAID issued invoices and PAID expenses, dated by payment date. Returns income, deductible expenses, their difference and both file paths.

Writes ~/Documents/Účetnictví/Přehledy//kniha_.csv and .pdf, overwriting previous versions, so repeating is safe. Does not run the import (call sync_invoices first if new PDFs were added) and contacts no network. Needs supplier config from ucetka init. Use tax_overview for estimates of tax due and export_vat_return for VAT filings.

add_manual_invoiceA

Record in the ledger an issued invoice whose PDF already exists but which the import could not read (see list_import_issues). Nothing is generated or rendered — the PDF stays as it is. Returns a confirmation with the base and VAT.

Writes ~/.ucetka/invoices/.json (customer address left empty, no bank account) and re-runs the issued-invoice import. No network. Not idempotent: fails if the number already exists in the ledger. To create a NEW invoice with a PDF use issue_invoice; for received invoices use add_expense.

record_paymentA

Record a payment the user made to an authority — an advance (záloha) or settlement (doplatek) of income tax, ČSSZ (social insurance), health insurance or VAT. tax_overview and advance_schedule use these to show what is paid and what remains.

Appends to ~/.ucetka/payments.json. Not idempotent: there is no duplicate check, so calling twice records the payment twice (there is no tool to delete one). Pays nothing and contacts no one. Returns a confirmation. For invoices paid by customers use mark_paid; for paid supplier invoices use mark_expense_paid.

advance_scheduleA

Show the month-by-month ČSSZ (social insurance) advances for a year — each month paid (with amount), overdue, due this month or future — plus the estimated monthly advance after this year's annual statement and a note on income-tax advances.

Read-only: uses the monthly amount from ~/.ucetka/tax.yaml and payments recorded with record_payment; does not run the import and contacts no network. Needs supplier config from ucetka init. Use record_payment to log an advance once paid, and tax_overview for the overall tax and insurance picture.

cancel_invoiceA

Cancel (storno) an issued invoice: it stays in the ledger and in the number series, but no longer counts towards income, VAT or overviews. Use ONLY when the user explicitly cancels it and it was never delivered to the customer; if it was already delivered, do not cancel — issue a credit note with issue_credit_note.

Destructive: overwrites the invoice's status (also a paid one) in ~/.ucetka/invoices/.json; no tool restores it. Repeating sets the same state (a new reason replaces the old). The PDF file is kept. Re-runs the issued-invoice import afterwards. Fails for unknown numbers. Confirm with the user first.

issue_credit_noteA

Issue a credit note (opravný daňový doklad / dobropis) for an issued invoice: PDF/A-3 with ISDOC (DocumentType 2), no QR code, with the next number in the regular series. Returns the PDF path and the reduction (base, VAT, total to refund).

Use it instead of cancel_invoice when the invoice was already delivered, or for a partial discount. Amounts on the document are positive; overviews and the VAT return subtract them in the period of the credit-note date. Side effects: writes ~/Documents/Účetnictví/Vydané faktury/<YY_MM_vydane>/dobropis_.pdf and a ledger record. Not idempotent: each call creates another credit note, but the total credited can never exceed the original's base. Fails if the original is unknown, cancelled or itself a credit note. Currency and exchange rate are taken from the original (no network). Confirm with the user first; then draft_invoice_email can send it.

remove_expenseA

Delete a received invoice (expense) record from the ledger — only when the user explicitly deleted the document or does not want it recorded (e.g. list_import_issues reports its PDF as missing), or to replace a wrong add_expense entry.

Destructive: deletes ~/.ucetka/expenses/<expense_id>.json with no undo; the PDF itself is not touched. It then re-runs the received-invoice import, so if the PDF is still in the received folder it is imported or flagged again right away. Fails if the ID does not exist. Confirm with the user first. Returns what was removed.

open_dashboardA

Open the graphical dashboard (charts of income, taxes and limits) at http://127.0.0.1:8765/prehled in the user's default browser. Returns the URL.

macOS only (uses the open command); changes no data, but opens a new browser tab on every call. It does not start the web server — that runs as a background LaunchAgent set up by the installer (or ucetka dashboard); if it is not running the page will not load. Use tax_overview when a text answer is enough.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.2/5.0

Scored across 25 tools

Disambiguation4/5

Most tools target clearly different resources or workflow steps, and the descriptions actively cross-reference near-neighbors such as issue_invoice vs add_manual_invoice, mark_paid vs mark_expense_paid, and cancel_invoice vs issue_credit_note. There are still several close workflow groupings (ARES lookup/add customer, import-triggering tax/export tools), but an agent reading descriptions should select correctly.

Naming Consistency4/5

The set is overwhelmingly consistent snake_case and mostly follows verb_noun or verb_noun_qualifier patterns. Minor deviations such as advance_schedule and tax_overview use noun phrases rather than action verbs, but they remain clear and readable.

Tool Count3/5

25 tools is at the heavy end for a single accounting assistant. The domain is broad enough to justify many operations, but the surface is large enough that it risks overwhelming tool selection and would benefit from consolidation or grouping.

Completeness3/5

The invoicing, customer lookup, tax overview, VAT export, and book export lifecycle is well covered. However, there are notable gaps: no list/get for recorded expenses, no list/delete for authority payments, and no update/delete for customers, which creates dead ends for auditing or correcting some records.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues