Skip to main content
Glama
Čebelca MCP server

Čebelca MCP server

by egorperp

Čebelca MCP server

tests

An MCP server for Čebelca BIZ, the Slovenian invoicing service. It lets AI assistants (Claude, ChatGPT, Copilot, Cursor, n8n AI agents...) look up customers, prepare invoices, record payments and download PDFs, with a person approving every write.

Live playground: https://yegor-ai.yegorperekrostov.workers.dev/cebelca/ (demo data)

What the assistant can do

Tool

What it does

Writes?

check_connection

Checks the API token and shows the mode

no

search_partners

Finds customers by name or VAT ID

no

list_invoices

Lists invoices with status (draft, issued, overdue, paid) and open amount

no

calculate_totals

Net, VAT per rate and gross for invoice lines

no

find_or_create_partner

Finds or creates a customer (partner/assure)

yes

create_invoice_draft

Invoice header + lines (invoice-sent, invoice-sent-b)

yes, after preview

add_payment

Records a payment (invoice-sent-p)

yes, after preview

finalize_invoice

Issues a non-fiscal invoice (finalize-invoice-2015)

yes, after preview

download_invoice_pdf

Saves the PDF Čebelca generates

local file

Plus a prompt, monthly_overview: totals for the month, overdue invoices and a drafted payment reminder.

Example requests:

  • "Which invoices are overdue and how much is open?"

  • "Invoice Kavarna Lipa for 4 hours of consulting at 50 EUR, due in 15 days."

  • "Kavarna Lipa paid 146.40 today, record it."

Related MCP server: Italy Invoice MCP

Safety by design

  • Preview first. Every write tool returns a preview (with VAT totals) unless confirm=true. The server instructions tell the model to show the preview and wait for the user's approval.

  • Validation. Slovenian VAT rates only (22, 9.5, 5, 0), no negative prices, discount 0 to 100 %.

  • Modes. demo (default, fictional data, no network), test (test.cebelca.biz), live.

  • Read-only switch. CEBELCA_READ_ONLY=true removes all write tools.

  • No secrets in prompts. The API token stays in the server's environment; the model never sees it.

  • Tool annotations mark read-only and destructive tools so clients can ask for confirmation.

Fiscal (cash) invoices with FURS are intentionally out of scope.

Setup

pip install git+https://github.com/egorperp/cebelca-mcp

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "cebelca": {
      "command": "cebelca-mcp",
      "env": { "CEBELCA_MODE": "demo" }
    }
  }
}

For your own account: in Čebelca go to Nastavitve > Dostop > API, copy the key, and set CEBELCA_MODE=test (or live) and CEBELCA_API_TOKEN=....

Remote (streamable HTTP, e.g. on Render or Fly.io with the included Dockerfile):

cebelca-mcp --http --host 0.0.0.0 --port 8000

Put it behind authentication before exposing a live token.

How it works

AI assistant ──MCP──> server.py (tools, previews, validation)
                         │
                         └─> client.py ── demo journal (JSON)
                                       └─ Čebelca API: POST /API?_r=<resource>&_m=<method>
                                          basic auth <token>:x, dates as dd.mm.yyyy

The Čebelca API has no general "list" methods, so the server keeps a local journal of the partners and invoices it creates. list_invoices answers from that journal.

Development

pip install -e ".[dev]"
pytest -q
npx @modelcontextprotocol/inspector cebelca-mcp   # try the tools in a browser

Credits

API calls follow Čebelca's public examples (InvoiceFox-API-bash). Not affiliated with Čebelca BIZ.

MIT License

Available Tools

9 tools
add_paymentA

Record a (partial) payment on an invoice. Without confirm it only returns a preview.

Inputs: amount (required), invoice_id (required), confirm, date_of.

calculate_totalsA
Read-only

Calculate net, VAT (per rate) and gross totals for invoice lines without creating anything.

Inputs: items (required).

check_connectionA
Read-only

Check that the Čebelca API token works and show the current mode (demo, test or live).

Inputs: no named parameters.

create_invoice_draftA

Prepare an invoice draft. Without confirm it only returns a preview with totals.

Inputs: items (required), partner_id (required), confirm, due_days, +1 more.

download_invoice_pdfC

Save the invoice PDF generated by Čebelca to a local folder (test or live mode).

Inputs: invoice_id (required), lang, folder.

finalize_invoiceA
Destructive

Issue a draft invoice (non-fiscal, e.g. paid by bank transfer). This cannot be undone.

Inputs: number (required), invoice_id (required), confirm.

find_or_create_partnerB

Find a customer by VAT ID or name, or create it if it does not exist. Returns the partner id.

Inputs: name (required), city, postal, street, +1 more.

list_invoicesA
Read-only

List invoices with status, total and open amount. Use status='overdue' for unpaid invoices past due date.

Inputs: status, partner_id. Returns: result

search_partnersA
Read-only

Search customers (partners) known to this server.

Inputs: query. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 9 tools

    Disambiguation4/5

    Each tool maps to a distinct action, but search_partners and find_or_create_partner overlap in lookup behavior, and calculate_totals partially duplicates the preview return of create_invoice_draft. Descriptions do clarify the boundaries (e.g. confirm/preview semantics), so confusion is limited to one or two pairs.

    Naming Consistency5/5

    All nine tools are snake_case and start with a clear verb (search_, list_, check_, create_, add_, finalize_, download_, calculate_, find_or_create_). The pattern is predictable and readable throughout.

    Tool Count5/5

    Nine tools is well within the ideal 3-15 range and each earns its place in the invoicing workflow (connect, find partners, draft, totals, finalize, pay, PDF, list). No redundant or filler tools.

    Completeness4/5

    The core lifecycle (partner lookup/create, draft, finalize, payment, PDF, listing) is covered, but there is no get-single-invoice detail, no update/delete or void/storno of invoices, and no way to inspect recorded payments. These are workable gaps but real ones for a billing domain.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to interact with the SuperFaktura invoicing system for managing invoices, clients, and expenses via natural language.
      4
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to read and create invoices, proforma invoices, credit notes and contacts in a Czech/Slovak iDoklad account, including PDF downloads, payment marking and emailing documents. Read-only by default, with write tools opt-in.
      18
      80 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects AI assistants to a small invoicing system so they can query receivables, customers and invoices, draft invoices, and record payments. Writes are scope-checked and idempotent, and irreversible actions like sending, voiding or taking a payment require the user's explicit out-of-band confirmation.
      MIT