UOL Účetnictví (unofficial)

eu.humblecode由 humblecode.eu 發布v0.6.1更新於 Nov 7, 2026

Invoices, receivables, VAT, ledger and documents from UOL Účetnictví (Czech online accounting)

概覽

AI 產生的概覽

非官方的 MCP 伺服器,讓助理讀取捷克 UOL Účetnictví 公司的發票、應收款、營業稅、總帳與文件,寫入功能需另外開啟。

可以做什麼
  • 查詢公司資料與參考資料(幣別、部門、合約、產品、自有銀行帳戶)
  • 搜尋並讀取開立與收到的發票,含明細行、營業稅與付款狀態
  • 列出應收款與逾期金額,並將開立的發票匯出為 PDF 或 ISDOC
  • 檢視上傳給會計師的文件並下載其原始檔案
  • 讀取財務、營業稅與銀行餘額概覽,或一次呼叫取得營運快照
  • 對其他任意 UOL REST 路徑執行唯讀 GET 請求
適用情境
適合在 UOL Účetnictví 記帳、想用自然語言詢問誰欠款、應繳多少營業稅、本月營運狀況,或調出某張發票與文件的對象。也適合在同一台伺服器上管理多家 UOL 客戶的會計師。
執行需求
透過 npx(需 Node.js 22+)、Docker 或 Claude Desktop 擴充功能在本機執行,也支援自架 HTTP 模式。需要 UOL_TENANT;使用真實資料還需 UOL_EMAIL 與在 /api_tokens 建立、具 REST API 權限的 UOL_TOKEN;UOL_TENANT=demo 不需權杖。選用變數可設定下載資料夾、工具集、存取層級與稽核日誌。
安裝前請注意
此權杖可存取公司會計資料,這些資料會傳送給用戶端所用的大型語言模型,並包含聯絡人與員工的個人資料,建議使用權限受限的專用 UOL 使用者。預設為唯讀,但設定 UOL_ACCESS=write 或 full 後會啟用建立、修改、上傳、標記甚至刪除發票或原始 API 寫入的工具;請先檢視 dry_run 結果並確認後再核准。下載的檔案會寫入本機。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 UOL Účetnictví (unofficial),將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

uol-mcp

Model Context Protocol server for UOL Účetnictví — ask Claude, Cursor or any other MCP client about your bookkeeping: issued and received invoices, who owes you money, uploaded documents, contacts.

Unofficial. Not affiliated with or endorsed by UOL a.s. It talks to the public UOL REST API with your own API token.

Česky

Status: v0.6 — read-only by default, opt-in writes. What changed: CHANGELOG.md.

What it can do

ToolAnswers
get_business_snapshotHow the company is doing, in one call: this month vs last, VAT, receivables, documents to process, bank
get_financial_overviewRevenue, expenses and profit per month from the general ledger, largest accounts
get_vat_overviewVAT per filing period: to pay or excess deduction, due date, final or estimate
get_bank_balancesBank balances per account and currency (UOL keeps monthly snapshots)
get_companyCompany name, IČO, DIČ, address, VAT filing period; doubles as a connection check
search_sales_invoices, get_sales_invoiceIssued invoices with line items, VAT and payment status
search_purchase_invoices, get_purchase_invoiceReceived invoices
list_receivablesWho owes you, how much, how long overdue — totals per currency
export_sales_invoicePDF or ISDOC of an issued invoice, saved to disk (ISDOC is also returned as XML)
search_contacts, get_contactCustomers and suppliers by name, IČO or DIČ, with addresses and bank accounts
list_uploaded_documents, get_uploaded_document, download_uploaded_documentDocuments uploaded for the accountant, their state and files
list_codebookCurrencies, departments, contracts, price lists, own bank accounts, …
api_getRead-only GET of any other /v1/… endpoint

Example questions: "Jak si letos stojíme?", "Kolik zaplatím DPH za tento kvartál?", "Kdo mi dluží víc než 30 dní?", "Je faktura 2026000123 zaplacená?", "Na čem nejvíc utrácíme?", "Stáhni mi PDF poslední vydané faktury."

More read tools are available as opt-in toolsets (UOL_TOOLSETS): ledger (general-ledger postings, internal documents), banking (bank movements, petty-cash documents) and warehouse (products, stock levels, orders).

Ready-made prompts (slash commands in most clients): monthly_review, vat_check, overdue_followup (drafts reminders, sends nothing), process_inbox, and with write access issue_invoice (builds a sales invoice from your description, shows a dry run and creates a draft once you confirm). The uol://guide resource explains the domain to the model.

The uol-ucetnictvi skill goes further: Claude issues an invoice the way you always invoice that customer (DUZP rule, due days, products, line texts and bank account learned from your earlier invoices to them) and reads revenue, profit, VAT and receivables the way an accountant does (unbooked months, estimates, deadlines). Install it in Claude Desktop or claude.ai by zipping the skills/uol-ucetnictvi folder and uploading it under Settings → Capabilities → Skills, or in Claude Code by copying the folder to ~/.claude/skills/.

The server knows the API's quirks: invoice status valid means draft, payment status exists only for issued invoices, credit notes come with positive amounts, revenue and expenses have to be read from the ledger (excluding year-end closing entries), purchase invoices ignore issue-date filters, files have three different download shapes, and the rate limit (30 requests / 10 s) is respected client-side. See docs/DESIGN.md.

Getting an API token

  1. Open the API tokens page of your UOL tenant (path /api_tokens, e.g. https://firma.ucetnictvi.uol.cz/api_tokens) and create a token.
  2. The UOL user needs the REST API permission. A dedicated user with only the rights you want the assistant to have is a good idea.

Your tenant is the first part of your UOL address: https://firma.ucetnictvi.uol.cz → firma.

Want to try it first? UOL_TENANT=demo uses UOL's public DEMO company, no token needed.

Configuration

VariableMeaning
UOL_TENANTdemo, your tenant name (firma), a host prefix (firma.sandbox) or the full https://….uol.cz URL
UOL_EMAILE-mail you log into UOL with
UOL_TOKENAPI token
UOL_DOWNLOAD_DIRWhere exported and downloaded files go (default ~/Downloads/uol-mcp)
UOL_TOOLSETSComma-separated: core, insights (these two are the default), ledger, banking, warehouse, or all
UOL_ACCESSread (default), write or full — see Writing
UOL_ACCOUNTS, UOL_DEFAULT_ACCOUNTSeveral companies in one server — see Several companies; UOL_ACCOUNT_<NAME>_ACCESS sets one account's level
UOL_PROFILES_FILEThe same from a JSON file
UOL_UPLOAD_DIRSFolders upload_document may read from (default ~/Downloads, ~/Desktop, ~/Documents; :-separated, ; on Windows). The HTTP server has no default: without this variable it accepts only content_base64
UOL_AUDIT_LOGFile that records every write as a JSON line
UOL_TIMEOUT_MSTimeout of one UOL request (default 30000)
UOL_DEBUG1 logs requests to stderr (never credentials)

Claude Desktop

Settings → Developer → Edit Config, then add:

json
{  "mcpServers": {    "uol": {      "command": "npx",      "args": ["-y", "uol-mcp"],      "env": {        "UOL_TENANT": "firma",        "UOL_EMAIL": "[email protected]",        "UOL_TOKEN": "your-token"      }    }  }}

Claude Code

bash
claude mcp add uol -e UOL_TENANT=firma -e [email protected] -e UOL_TOKEN=your-token -- npx -y uol-mcp

Cursor / VS Code

Cursor (.cursor/mcp.json) uses the same mcpServers block as Claude Desktop. VS Code (.vscode/mcp.json):

json
{  "servers": {    "uol": {      "type": "stdio",      "command": "npx",      "args": ["-y", "uol-mcp"],      "env": { "UOL_TENANT": "firma", "UOL_EMAIL": "[email protected]", "UOL_TOKEN": "your-token" }    }  }}

Docker

bash
docker run -i --rm -e UOL_TENANT=firma -e [email protected] -e UOL_TOKEN=your-token -v "$HOME/Downloads/uol-mcp:/data" ghcr.io/jakubbegera/uol-mcp

Exported and downloaded files are written to /data inside the container; the -v mount keeps them. In an MCP client config, use docker as the command and the rest as args.

Claude Desktop extension

Each release ships uol-mcp.mcpb. Open it to install, then fill in tenant, e-mail and token in the form; the token is stored as a secret. bash scripts/build-mcpb.sh builds the bundle from source.

HTTP server (self-hosting)

bash
MCP_TRANSPORT=http MCP_AUTH_TOKEN=$(openssl rand -hex 32) UOL_TENANT=firma [email protected] UOL_TOKEN=your-token npx -y uol-mcp

The endpoint is http://127.0.0.1:3000/mcp (HOST, PORT to change; /health for probes). Two modes:

  • One tenant: UOL credentials in the server's env. Clients must send Authorization: Bearer <MCP_AUTH_TOKEN>; the server refuses to start without the token.
  • Pass-through: no UOL credentials in the env. Each client sends its own X-UOL-Tenant, X-UOL-Email and X-UOL-Token headers with every request; the server stores nothing. MCP_AUTH_TOKEN is optional on localhost.

Over HTTP, exported invoices and downloaded documents come back inside the tool result instead of being saved on the server, and upload_document takes the file as content_base64 — it reads no paths on the server unless UOL_UPLOAD_DIRS is set. In Docker, bind to all interfaces and publish the port: docker run -p 3000:3000 -e MCP_TRANSPORT=http -e HOST=0.0.0.0 -e MCP_AUTH_TOKEN=… -e MCP_ALLOWED_HOSTS=mcp.example.com ….

VariableMeaning
MCP_TRANSPORThttp starts the HTTP server (same as --http)
HOST, PORTBind address, default 127.0.0.1:3000
MCP_AUTH_TOKENBearer token clients must send, at least 32 characters; required in one-tenant mode and whenever HOST is not a loopback address
MCP_ALLOWED_HOSTSAccepted Host names (comma-separated); required when HOST is not a loopback address
MCP_ALLOWED_ORIGINSBrowser origins allowed to call the endpoint (none by default)

The server speaks plain HTTP: anywhere beyond localhost, put it behind a reverse proxy that terminates TLS. The server refuses to start on a non-loopback address without MCP_AUTH_TOKEN and MCP_ALLOWED_HOSTS.

Check the setup

bash
UOL_TENANT=firma [email protected] UOL_TOKEN=your-token npx -y uol-mcp doctor

Writing (opt-in)

With UOL_ACCESS=write these tools appear:

ToolDoes
upload_documentUploads a PDF to UOL's document inbox for the accountant (only from UOL_UPLOAD_DIRS)
create_sales_invoiceCreates an issued invoice for an existing contact — a draft unless issue: true
update_sales_invoiceChanges or issues a draft invoice (UOL doesn't allow editing issued ones)
create_purchase_invoiceBooks a received invoice from an existing supplier
create_contact, update_contactAdds or changes a customer / supplier (refuses a duplicate IČO)
create_payment_demandCreates a payment demand (upomínka) for unpaid invoices of one customer — never sends it
mark_document_processed, pair_uploaded_document, tag_uploaded_document, untag_uploaded_documentThe accountant's inbox: state, link to the booked record, tags

UOL_ACCESS=full adds delete_sales_invoice (drafts only), repair_sales_invoice (storno or back to draft for issued invoices) and api_request (a raw write to any endpoint).

Invoice lines need a UOL product (list_codebook with kind: products lists them). Every write supports dry_run (shows exactly what would be sent), creates are safe to retry (idempotency key), and the tools are marked so clients ask you before running them. Set UOL_AUDIT_LOG to keep a record of every write.

Several companies

Accountants with several clients on UOL can serve them all from one server. List the accounts in UOL_ACCOUNTS and give each one its own variables (name upper-cased, - becomes _):

json
"env": {  "UOL_ACCOUNTS": "firma,novak",  "UOL_ACCOUNT_FIRMA_TENANT": "firma",  "UOL_ACCOUNT_FIRMA_EMAIL": "[email protected]",  "UOL_ACCOUNT_FIRMA_TOKEN": "op://Private/UOL firma/credential",  "UOL_ACCOUNT_NOVAK_TENANT": "novak",  "UOL_ACCOUNT_NOVAK_EMAIL": "[email protected]",  "UOL_ACCOUNT_NOVAK_TOKEN": "op://Private/UOL novak/credential",  "UOL_ACCOUNT_NOVAK_LABEL": "Novák s.r.o."}

The first account is the default (or set UOL_DEFAULT_ACCOUNT). With the 1Password CLI, start the server as op run -- node …/dist/index.js and the op:// references are replaced by the tokens at startup — nothing secret sits in the config. uol-mcp doctor checks every account.

Alternatively, point UOL_PROFILES_FILE at a JSON file:

json
{  "default": "firma",  "accounts": {    "firma": { "tenant": "firma", "email": "[email protected]", "token_env": "UOL_TOKEN_FIRMA" },    "novak": { "tenant": "novak", "email": "[email protected]", "token_env": "UOL_TOKEN_NOVAK", "label": "Novák s.r.o." }  }}

token_env names an environment variable holding the token, so the file needs no secrets (an inline token works too; keep such a file chmod 600). The server then offers list_accounts, and every tool takes an account argument — "Kdo dluží firmě Novák?" goes to the right tenant. Each account keeps its own rate limit.

Accounts can have their own access level: with UOL_ACCESS=write and UOL_ACCOUNT_NOVAK_ACCESS=read (or "access": "read" in the profiles file), writes to Novák are refused while the other account can still write. list_accounts shows each account's level.

Privacy and safety

  • Read-only unless you set UOL_ACCESS=write. Text inside invoices, notes and documents is treated as data: review what the assistant proposes to write before you approve it.
  • Whatever the tools return goes to the AI model your client uses. Accounting data contains personal data of your contacts and employees — use a plan whose terms you are comfortable with.
  • Credentials are used only for https://*.uol.cz and are never written to logs or tool output.
  • Downloaded files are saved under UOL_DOWNLOAD_DIR only, readable by the owner, and never replace an existing file (a taken name gets a (1) suffix). Downloads over 50 MB are refused.
  • The model is told that text coming from UOL (invoices, notes, documents) is data, never instructions.

From source

Requires Node.js 22+.

bash
git clone https://github.com/jakubbegera/uol-mcp.gitcd uol-mcpnpm installnpm run build

Then point your client at node /path/to/uol-mcp/dist/index.js instead of npx -y uol-mcp.

Development

bash
npm test                 # unit + MCP-level tests against recorded DEMO responsesnpm run typechecknpm run smoke            # calls every tool against the live DEMO tenantnpm run record-fixtures  # refreshes test/fixtures/demo from the DEMO tenantbash scripts/build-mcpb.sh  # builds build/uol-mcp.mcpbdocker build -t uol-mcp .

CI runs the type check, tests, npm audit, a Trivy scan of the Docker image, CodeQL and, on pull requests, dependency review; Dependabot keeps dependencies, actions and the base image current.

Releases are cut by pushing a v* tag; after a maintainer approves the release environment, .github/workflows/release.yml publishes to npm, GHCR, the GitHub release (MCPB bundle) and the MCP Registry.

Design notes, API facts and the roadmap are in docs/DESIGN.md.

Contributing

Contributions are welcome — see CONTRIBUTING.md. Report security problems privately as described in SECURITY.md.

License

MIT

來源:README.md,提交 e4397cd

工具

18

get_company

Company details

The accounting entity of this UOL tenant: name, IČO, DIČ, address and VAT filing period. Also a quick check that uol-mcp is connected.

無需輸入參數。

list_codebook

List codebook

Reference data (číselníky) used by invoices and documents: currencies, countries, departments (střediska), contracts (zakázky), price lists, product categories, predefined texts, document templates, payment rules, own bank accounts, petty cashes (pokladny), document tags and products (the product_id invoice lines need). Records are returned as UOL sends them, minus audit fields.

輸入參數kind必填pagelimit

search_sales_invoices

Search issued invoices

Search issued (sales) invoices — vydané faktury — newest first. Each row includes payment status from UOL receivables. Use tax_date_* (DUZP) for accounting-period questions, issue_date_* for "issued in". Drafts and cancelled invoices are listed too; check status. For "who owes me money" prefer list_receivables.

輸入參數pagetypelimitquerynumberbuyer_idtotal_maxtotal_mindue_date_totax_date_todue_date_fromissue_date_to另有 3 個

get_sales_invoice

Get issued invoice

One issued (sales) invoice with line items, VAT, payment symbols, own bank account and payments received. Use export_sales_invoice for the PDF or ISDOC. Earlier invoices to the same buyer show how they are usually issued (DUZP, due days, products, line texts, bank account) — a template for a new one.

輸入參數invoice_id必填

search_purchase_invoices

Search received invoices

Search received (purchase) invoices — přijaté faktury. UOL ignores issue-date filters on this endpoint, so filter by tax_date_* (DUZP) or received_date_*. The UOL API exposes no payment status for purchase invoices.

輸入參數pagetypelimitquerynumbercurrencyseller_idtotal_maxtotal_mindue_date_totax_date_todue_date_from另有 4 個

get_purchase_invoice

Get received invoice

One received (purchase) invoice with line items, VAT and payment symbols.

輸入參數invoice_id必填

export_sales_invoice

Export issued invoice (PDF / ISDOC)

Downloads an issued (sales) invoice rendered by UOL and saves it on the machine running uol-mcp. format=isdoc also returns the ISDOC XML (Czech e-invoice standard), which is readable line by line. ISDOC exists only for issued (confirmed) invoices. Received invoices cannot be exported through the API.

輸入參數formatinvoice_id必填

list_receivables

Receivables (who owes us)

Receivables of issued (sales) invoices — pohledávky: totals per currency plus the matching invoices, most overdue first by default. Answers "who owes me money", "what is overdue", "has customer X paid". Covers sales invoices only: the UOL API exposes no payment status for received (purchase) invoices.

輸入參數sortlimitstatecustomer_iddue_date_tooverdue_onlydue_date_fromissue_date_toissue_date_from

search_contacts

Search contacts

Search customers and suppliers (kontakty / adresář) by name, IČO or DIČ. Returns contact_id values for the invoice and receivable filters.

輸入參數namepagelimitqueryvatincountrycompany_numberinclude_hiddentaxable_person

get_contact

Get contact

One contact with all addresses, bank accounts and default payment terms.

輸入參數contact_id必填

list_uploaded_documents

List uploaded documents

Documents uploaded to UOL for the accountant (nahrané doklady: receipts, received invoices as PDF/images), newest first. state=unprocessed lists what the accountant has not processed yet.

輸入參數pagelimitstatecreated_tocreated_from

get_uploaded_document

Get uploaded document

One uploaded document with its original file name, tags and the bookkeeping records it was paired with. Pairings identify the record by type and internal gid, not by invoice number.

輸入參數document_id必填

download_uploaded_document

Download uploaded document

Saves the original file of an uploaded document on the machine running uol-mcp and returns its path.

輸入參數document_id必填

api_get

Raw UOL GET

Read-only GET of any UOL REST path (spec: https://api.uol.cz/openapi.yaml) for data no other tool covers — e.g. /v1/accounting_records, /v1/bank_movements, /v1/products, /v1/warehouse/statuses, /v1/sales_orders. Returns the raw JSON (amounts as strings, invoice status "valid" = draft); large answers are cut to fit. Prefer the dedicated tools.

輸入參數path必填query

get_financial_overview

Revenue, expenses and profit by month

Revenue (výnosy, class 6), expenses (náklady, class 5) and profit per month from the general ledger — the same basis as the UOL web dashboard, so payroll, rent and other internal documents count, not just invoices. Amounts are net of VAT, in the home currency. The current month is still running, and months the accountant has not booked yet have booked=false — say so instead of reporting zero. Also returns the largest revenue and expense accounts (with names) for the whole window.

輸入參數months

get_vat_overview

VAT by filing period

VAT (DPH) per filing period, newest first: output VAT, input VAT, amount to pay or excess deduction, due date. The filing period (monthly / quarterly) comes from the company settings. Closed periods use UOL's "DPH" closing document (exact). Open periods are estimated from issued invoices — output VAT by DUZP, input VAT by the later of DUZP and the receipt date: proformas skipped, corrective invoices counted as credit notes, internal documents and reverse charge not included.

輸入參數periods

get_bank_balances

Bank balances

Balances of the company's own bank accounts, per account and summed per currency. UOL stores monthly opening-balance snapshots (1st of the month), not live balances; always quote the as_of date.

輸入參數history

get_business_snapshot

Business snapshot

"How is the company doing?" in one call: this month vs last month (revenue, expenses, profit, whether booked yet), the VAT period due next and the running one, unpaid and overdue receivables, uploaded documents waiting for the accountant, and bank balances. Sections that fail (e.g. missing permission) are null and listed in errors; sections read only partly are listed in incomplete. Use the dedicated tools for detail.

無需輸入參數。

版本歷史

2
  1. v0.6.1最新Nov 5, 2026
  2. v0.5.0Nov 5, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分