Skip to main content
Glama

A hivatalos Billingo MCP szerver — 49 eszköz (tool) a Billingo v3 számlázási API felett, stdio (asztali) és Streamable HTTP (önállóan üzemeltethető) kliensekhez. MIT licenc alatt, önállóan üzemeltethető. Ez az első hivatalos Billingo SDK vagy MCP szerver — korábban nem létezett ilyen.

A legtöbb felhasználónak nincs szükség telepítésre — használd a hosztolt szervert a mcp.billingo.hu címen. Inkább saját magad futtatnád? Publikálva van npm-en is @billingo/billingo-mcp néven (npx, build nélkül), és Docker image formájában is — lásd a Válassz futtatási módot szakaszt lentebb.

Olvasd angolul is — az angol szakasz egy teljes fordítás, nem összefoglaló.

Tartalomjegyzék

Related MCP server: billingo-mcp

🧭 Válassz futtatási módot

Beállítás

Kinek ajánlott

🌐 Hosztolt szerver

Semmi — csak add meg a kliensedben az URL-t

A legtöbb felhasználónak: nulla telepítés, nulla karbantartás

💻 stdio npx-szel

npx, build nélkül

Asztali MCP kliensek (Claude Desktop, Claude Code)

🐳 Docker (önálló üzemeltetés, HTTP)

docker run

Ha saját infrastruktúrán akarod futtatni

⬆️ Ugrás az elejére

🌐 Használat a hosztolt szerverrel (ajánlott)

Nincs telepítés, nincs önálló üzemeltetés — csak állítsd be a klienst a https://mcp.billingo.hu címre, és minden kéréssel küldd el a Billingo API kulcsodat. Ez a leggyorsabb módja a kezdésnek; csak akkor nyúlj a stdio vagy Docker módokhoz lentebb, ha kifejezetten önálló üzemeltetésre van szükséged.

Claude Code CLI

claude mcp add --transport http billingo https://mcp.billingo.hu \
  -s user \
  -H "X-Billingo-Api-Key: your-api-key" \
  -H "X-Billingo-Allow-Write: true"

A -s user az összes projekteden át regisztrálja, nem csak az aktuálisban; az (alapértelmezett) -s local-lal csak az aktuális projektre korlátozod. Hagyd el az X-Billingo-Allow-Write fejlécet, vagy állítsd "false"-ra, csak-olvasás hozzáféréshez.

Más HTTP-kompatibilis MCP kliensek

Bármelyik kliens, amely támogatja a Streamable HTTP protokollt, ugyanígy működik: állítsd be rá a https://mcp.billingo.hu címet, az X-Billingo-Api-Key fejléccel (kötelező), opcionálisan az X-Billingo-Allow-Write-tal — a teljes fejléc-referenciáért lásd a Konfiguráció szakaszt.

Az API kulcsot ugyanúgy szerezd be, mint az API kulcs szakaszban lentebb leírtak szerint.

⬆️ Ugrás az elejére

💻 Telepítés / futtatás stdio-val

Nincs telepítési lépés — az npx igény szerint letölti és futtatja a csomagot.

Claude Desktop

claude_desktop_config.json:

{
  "mcpServers": {
    "billingo": {
      "command": "npx",
      "args": ["-y", "@billingo/billingo-mcp"],
      "env": {
        "BILLINGO_API_KEY": "your-api-key",
        "BILLINGO_ALLOW_WRITE": "false"
      }
    }
  }
}

Utána indítsd újra teljesen a klienst — a Claude Desktop csak induláskor olvassa ezt a fájlt, tehát az ablak bezárása nem elég (macOS-en ⌘Q).

Claude Code CLI

claude mcp add billingo -s user \
  -e BILLINGO_API_KEY=your-api-key \
  -e BILLINGO_ALLOW_WRITE=false \
  -- npx -y @billingo/billingo-mcp

A -s user a felhasználódhoz köti a szervert az összes projekteden át, nem csak az aktuálishoz, és semmit nem ír a repóba. Az (alapértelmezett) -s local-lal csak az aktuális projektre korlátozod. Ellenőrzés: claude mcp list, illetve a mentett konfiguráció megtekintése: claude mcp get billingo.

Más MCP kliensek

Bármelyik kliens, amely elfogadja a szabványos mcpServers JSON formátumot (pl. Cursor, Windsurf), változtatás nélkül újrahasznosíthatja a fenti Claude Desktop blokkot — a command, args és env nem Claude-specifikus, csak a befoglaló konfigurációs fájl és annak helye tér el klienstől függően.

API kulcs

Az API kulcsot a Billingóban a Beállítások → API kulcsok → Új API kulcs menüpont alatt hozod létre. Az űrlapon:

  • Hozzátartozó összekötés: Egyedi fejlesztés.

  • API hatásköre: Olvasás, ha csak listázni/lekérdezni akarsz, vagy Írás, ha dokumentumokat is szeretnél létrehozni, módosítani, küldeni vagy stornózni.

Ez egy második, a lenti BILLINGO_ALLOW_WRITE-tól független kapu: egy csak-olvasás hatáskörű kulcs minden író hívásnál közvetlenül a Billingo API-tól kap jogosultsági hibát, még akkor is, ha itt a BILLINGO_ALLOW_WRITE "true"-ra van állítva — mindkettőnek engedélyeznie kell. Hagyd a BILLINGO_ALLOW_WRITE-ot "false"-on (vagy hagyd el), hacsak nem szeretnéd, hogy a modell dokumentumokat hozhasson létre, módosíthasson, küldhessen el vagy storno­zhasson — lásd a Biztonság szakaszt. Fontos: az olyan konfigurációs fájlok, mint a claude_desktop_config.json, sima szövegként tárolódnak, tehát a kulcs titkosítatlanul áll a lemezen.

Ellenőrzés: a kliensnek read-only módban 22 eszközt kell listáznia, "true"-ra állított BILLINGO_ALLOW_WRITE mellett pedig 49-et. Ha nem talál eszközt, nézd meg a kliens naplóját (macOS-en ~/Library/Logs/Claude/mcp-server-billingo.log) — a szerver {"name":"billingo","version":"0.1.0"} néven mutatkozik be. Ha ott más név szerepel, akkor a kliens egy másik, ugyanezen a néven regisztrált szerverhez beszél.

⬆️ Ugrás az elejére

🐳 Futtatás Dockerrel (HTTP)

docker run -p 3000:3000 ghcr.io/octonull/billingo-mcp:latest

A image nem tartalmaz beégetett API kulcsot. A HTTP mód állapotmentes (stateless) és kérésenkénti: minden hívás egy fejlécben (header) viszi a Billingo API kulcsot, a szerver soha nem tárolja azt. Példahívás, a két Billingo-specifikus fejléccel:

curl -X POST http://localhost:3000 \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -H 'X-Billingo-Api-Key: your-api-key' \
  -H 'X-Billingo-Allow-Write: true' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

A GET /health {"status":"ok"}-kal válaszol, fejléc nélkül is — ez a konténer health checkekhez van. A GET /build_version a futó image build-idejű verzióját adja vissza, pl. {"buildVer":"fcc756d@0.1.0"} — vagy csak a commit SHA-t ({"buildVer":"fcc756d"}), ha az adott build nem tartozik release tag-hez.

Magát az API kulcsot ugyanúgy hozd létre, mint stdio-nál — lásd az API kulcs szakaszt fentebb —, és adj neki Írás hatáskört a Billingo oldalán, ha küldeni akarod az X-Billingo-Allow-Write fejlécet.

Claude Code CLI

claude mcp add --transport http billingo http://localhost:3000 \
  -s user \
  -H "X-Billingo-Api-Key: your-api-key" \
  -H "X-Billingo-Allow-Write: true"

A -s user itt is az összes projekteden át regisztrálja, nem csak az aktuálisban; az (alapértelmezett) -s local-lal csak az aktuális projektre korlátozod. Hagyd el az X-Billingo-Allow-Write fejlécet, vagy állítsd "false"-ra, csak-olvasás hozzáféréshez.

⬆️ Ugrás az elejére

🔧 Konfiguráció

Változó

Transport

Kötelező

Alapérték

Jelentés

BILLINGO_API_KEY

csak stdio

igen

—

A Billingo API kulcsod. HTTP módban nem ezt olvassa a szerver — lásd lent.

BILLINGO_ALLOW_WRITE

csak stdio

nem

false

"true" vagy "1" érték engedélyezi az író (write) eszközöket ennél a stdio folyamatnál. Bármi más érték (elgépelést is beleértve) false-nak számít.

BILLINGO_TOOL_CATEGORIES

csak stdio

nem

mind

Vesszővel elválasztott eszközcsoportok, csak ezek töltődnek be: organization, partners, products, spendings, bank_accounts, document_blocks, documents. Ismeretlen név esetén a szerver el sem indul.

BILLINGO_BASE_URL

mindkettő

nem

https://api.billingo.hu/v3

Az API alap URL felülírása, pl. proxy mögé állításhoz.

PORT

csak HTTP

nem

3000

A HTTP szerver figyelési portja.

BILLINGO_ALLOWED_HOSTS

csak HTTP

nem

nincs beállítva (védelem kikapcsolva)

Vesszővel elválasztott lista az elfogadott Host fejléc-értékekről — DNS-rebinding védelem. Mindig állítsd be, ha a szerver localhoston kívülről is elérhető.

HTTP módban a hitelesítés és a jogosultsági kör (scope) kérésenként, fejlécben érkezik:

Fejléc

Kötelező

Jelentés

X-Billingo-Api-Key

igen

A kérésnél használandó Billingo API kulcs. Soha nem kerül tárolásra.

X-Billingo-Allow-Write

nem

"true" vagy "1" engedélyezi az író eszközöket, de csak erre az egy kérésre.

X-Billingo-Tool-Categories

nem

Ugyanaz a csoportlista, mint a BILLINGO_TOOL_CATEGORIES, erre az egy kérésre. Fejlécet nem kezelő kliensnél ?categories=documents,partners a URL-ben; ha mindkettő meg van adva, a fejléc számít. Ismeretlen név: 400.

⬆️ Ugrás az elejére

🔒 Biztonság

Ezt a szakaszt olvasd el, mielőtt bárkinek elérhetővé teszed a szervert.

  • Alapértelmezetten csak olvasható (read-only). Az író eszközök (létrehozás, módosítás, törlés, küldés, storno) teljesen ki vannak szűrve a tools/list-ből, hacsak explicit be nem kapcsolod a BILLINGO_ALLOW_WRITE-tal (stdio) vagy az X-Billingo-Allow-Write fejléccel (HTTP). Egy modell, amely soha nem lát egy író eszközt, nem is tudja meghívni. Ez az elsődleges biztonsági mechanizmus — hagyd kikapcsolva az írást, hacsak kifejezetten nem szükséges.

  • A kiállított számlák automatikusan a NAV felé jelentésre kerülnek, és ez nem vonható vissza. Amint egy dokumentum véglegesítésre (finalize) kerül és számlává válik, a NAV Online Számla jelentés azonnal megtörténik, és nem visszafordítható. Egy hibás számla egyetlen orvoslása a storno (érvénytelenítés) — de a storno maga is végleges: örökre érvényteleníti a számlát, és ez is jelentésre kerül a NAV felé. Egy már kiállított számlára nincs "törlés".

  • A HTTP mód TLS-t igényel. Az API kulcs minden kérésnél az X-Billingo-Api-Key fejlécben utazik. Zárd le a TLS-t a konténer előtt (reverse proxy, load balancer, vagy a platform ingressze) — soha ne futtasd a HTTP módot titkosítatlan HTTP-n, megbízható helyi hálózaton kívül.

  • A HTTP mód szándékosan nem tárol API kulcsot. Ne "javítsd ki" ezt egy konténerszintű környezeti változóval beállított API kulccsal — ez a telepítést egyfelhasználóssá tenné, és bárki, aki eléri a konténert, a te fiókodra tudna számlázni, mivel semmi nem különböztetné meg a kéréseket egymástól. A kérésenkénti fejléc pont ezért létezik.

  • Mindig állítsd be a BILLINGO_ALLOWED_HOSTS-t, ha a HTTP szerver publikusan elérhető. Enélkül a DNS-rebinding védelem ki van kapcsolva.

⬆️ Ugrás az elejére

🧰 Eszközök

Összesen 49 eszköz: 22 olvasó (mindig látható), 27 író (csak akkor látható, ha az írás engedélyezve van). Ha egy kliens minden eszköz sémáját a promptba teszi, a BILLINGO_TOOL_CATEGORIES (HTTP-n X-Billingo-Tool-Categories) beállítással csak a szükséges csoportok töltődnek be.

Szervezet (Organization) (3 olvasó)

  • billingo_get_organization — Szervezeti adatok lekérése (adószám, előfizetés, NAV-kapcsolat állapota).

  • billingo_check_tax_number — Magyar adószám ellenőrzése (teljes, kötőjeles adószám; élő NAV-kapcsolat kell).

  • billingo_get_conversion_rate — Hivatalos árfolyam lekérése, opcionálisan egy múltbeli dátumra.

Partnerek (2 olvasó, 4 író)

  • billingo_list_partners — Partnerek listázása.

  • billingo_get_partner — Egy partner lekérése.

  • billingo_create_partner — Partner létrehozása. (író)

  • billingo_update_partner — Partner módosítása; csak a megadott mezők változnak. (író)

  • billingo_guess_partner — Partner keresése adószám/email alapján, vagy létrehozása. (író)

  • billingo_delete_partner — Partner törlése. (író)

Termékek (3 olvasó, 3 író)

  • billingo_list_products — Termékek listázása.

  • billingo_get_product — Egy termék lekérése.

  • billingo_get_product_quantity — Egy termék készletmennyiségének lekérése.

  • billingo_create_product — Termék létrehozása. (író)

  • billingo_update_product — Termék módosítása; csak a megadott mezők változnak. (író)

  • billingo_delete_product — Termék törlése. (író)

Kiadások (Spendings) (2 olvasó, 3 író)

  • billingo_list_spendings — Kiadások listázása.

  • billingo_get_spending — Egy kiadás lekérése.

  • billingo_create_spending — Kiadás létrehozása. (író)

  • billingo_update_spending — Kiadás módosítása; csak a megadott mezők változnak. (író)

  • billingo_delete_spending — Kiadás törlése. (író)

Bankszámlák (2 olvasó, 3 író)

  • billingo_list_bank_accounts — Bankszámlák listázása.

  • billingo_get_bank_account — Egy bankszámla lekérése.

  • billingo_create_bank_account — Bankszámla létrehozása. (író)

  • billingo_update_bank_account — Bankszámla módosítása; csak a megadott mezők változnak. (író)

  • billingo_delete_bank_account — Bankszámla törlése. (író)

Dokumentumblokkok (1 olvasó, 1 író)

  • billingo_list_document_blocks — Dokumentumblokkok (számlaszám-tartományok) listázása.

  • billingo_create_document_block — Dokumentumblokk létrehozása. (író)

Dokumentumok — olvasás (8)

  • billingo_list_documents — Dokumentumok listázása (számlák, nyugták, díjbekérők, piszkozatok és mások).

  • billingo_get_document — Egy dokumentum lekérése id vagy külső azonosító (vendor id) alapján.

  • billingo_download_document — A dokumentum PDF-jének lekérése (publikus URL, vagy base64 bájtok).

  • billingo_get_document_public_url — Megosztható publikus URL lekérése egy dokumentumhoz.

  • billingo_get_online_szamla_status — Egy dokumentum NAV Online Számla jelentési állapotának lekérése. Hibát ad, ha a dokumentumnak nincs NAV rekordja — pl. ha a szervezet nincs csatlakoztatva a NAV Online Számlához, vagy a dokumentum nem tartozik jelentési kötelezettség alá.

  • billingo_get_document_payments — Egy dokumentumhoz rögzített kifizetések lekérése.

  • billingo_get_document_reminders — Egy dokumentumhoz küldött fizetési emlékeztetők lekérése.

  • billingo_pos_print — POS hőnyomtatóhoz méretezett PDF nyugta lekérése egy dokumentumhoz.

Dokumentumok — írás (9)

  • billingo_create_document — Dokumentum létrehozása (számla, díjbekérő, piszkozat vagy előlegszámla). (író)

  • billingo_create_receipt — Nyugta létrehozása (nyugta típusú számlatömb kell hozzá). (író)

  • billingo_finalize_draft — Piszkozat véglegesítése számlává — kiállítja és jelenti a NAV felé. (író)

  • billingo_finalize_receipt_draft — Piszkozat véglegesítése nyugtává. (író)

  • billingo_create_document_from_proforma — Számla létrehozása díjbekérőből. (író)

  • billingo_copy_document — Dokumentum másolása; számla másolata piszkozat lesz (a billingo_finalize_draft állítja ki). (író)

  • billingo_create_modification_document — Módosító (helyesbítő) dokumentum létrehozása. (író)

  • billingo_update_payment — Egy dokumentum rögzített kifizetéseinek felülírása: a listából kihagyott kifizetés törlődik. (író)

  • billingo_archive_document — Proforma dokumentum archiválása. (író)

Dokumentumok — export (1 olvasó)

  • billingo_export_documents — Dokumentumok exportálása.

Dokumentumok — destruktív (4 író)

  • billingo_cancel_document — Dokumentum érvénytelenítése (storno) — visszavonhatatlan. (író)

  • billingo_send_document — Dokumentum küldése emailben. (író)

  • billingo_delete_document — Dokumentum törlése (csak piszkozat/ki nem állított dokumentumoknál; egy kiállított számlát stornózni kell helyette). (író)

  • billingo_delete_payment — Egy dokumentum rögzített kifizetéseinek törlése. (író)

Eredmények és hibák

  • Strukturált eredmény. 17 olvasó eszköz outputSchema-t közöl, és az eredményt structuredContent-ként is visszaadja, így a kódból hívó kliensek (code mode) típusos adatot kapnak. A szöveges blokk nem változik. A sémák nyitottak (a Billingo új mezői átmennek), és egy rekord id-ján kívül semmit sem várnak el kötelezően; ha egy válasz mégsem illene, az SDK a hívást Output validation error hibaként adná vissza, amit az npm run test:live minden futáskor ellenőriz. Fájlt adó (download_document, pos_print, export_documents) és sandboxban nem ellenőrizhető (check_tax_number, get_product_quantity) eszköz nem közöl sémát, ahogy az író eszközök sem.

  • Hibák. Egy Billingo API-hiba isError: true eredményként jön vissza: az első szöveges blokk az üzenet, a második JSON, {"error": {"code", "retryable", "outcome_unknown", "status", "retry_after_seconds", "fields", "trace_id", "message"}}. Kódok: bad_request, unauthorized, nav_connection_required, subscription_required, forbidden, not_found, validation_failed, rate_limited, pdf_not_ready, server_error, api_error, client_error, invalid_arguments, export_pending, export_failed. Nem idempotens eszköz szerverhibájánál a retryable sosem igaz: ilyenkor outcome_unknown jelzi, hogy a számla akár ki is állt, ezért újrapróbálás előtt vendor_id alapján ellenőrizd. Egy újrapróbált törlés not_found választ adhat, ha az első kísérlet mégis lefutott. Az SDK bemeneti validációs hibái továbbra is csak szövegesek.

  • Módosítás. A Billingo API módosításkor a teljes rekordot lecseréli, és amit nem küldünk el, azt törli. Ezért a partner, termék, bankszámla és kiadás update_* eszközei előbb kiolvassák a rekordot, és a megadott változtatásokkal együtt a teljes rekordot küldik vissza: elég csak a változó mezőt megadni. Az update_payment viszont a teljes kifizetéslistát cseréli, ezért előbb olvasd ki a meglévő kifizetéseket. Mindegyik destructiveHint: true jelölésű. Az olvasás és az írás két külön kérés, így ami a kettő között a Billingóban változik, az felülíródik. Forintos kiadásnál a *_huf összegek követik a végösszegeket; más pénznemben a Billingo nem vált át, ezért új összeghez, pénznemhez vagy árfolyamhoz a forintos összegeket is meg kell adni. A kiadás tételei (items, NAV-importból) nem részei az író modellnek; hogy módosításkor megmaradnak-e, nem ellenőriztük.

⬆️ Ugrás az elejére

🔨 Fejlesztés

git clone https://github.com/octonull/billingo-mcp.git
cd billingo-mcp
npm ci
npm test

A TypeScript verziója rögzítve van 5.9.3-ra, és jelenleg nem frissíthető: az openapi-typescript a typescript@^5.x-et igényli, a typescript-eslint pedig <6.1.0-t — a kettő metszete 5.9.3. Egy újabb TypeScript telepítése ERESOLVE konfliktussal buktatja el az npm install-t.

További hasznos parancsok: npm run typecheck, npm run lint, npm run format, npm run test:coverage, npm run build.

Architektúra: a rétegek, egy eszközhívás útja és a módosító eszközök működése ábrával: ARCHITECTURE.md.

Élő smoke teszt csomag: az npm run test:live egy kis tesztcsomagot futtat a valódi Billingo sandbox ellen (valódi, de ártalmatlan sandbox adatokat hoz létre és takarít el). Ehhez szükséges a BILLINGO_SANDBOX_API_KEY beállítása egy sandbox API kulcsra; enélkül a csomag tisztán kihagyásra (skip) kerül — így futtatja biztonságosan a CI és minden hozzájáruló, akinek nincs sandbox hozzáférése.

⬆️ Ugrás az elejére

🤝 Közreműködés

Issue-kat és pull requesteket szívesen fogadunk. PR nyitása előtt futtasd le az npm run format:check, npm run lint, npm run typecheck és npm run test:coverage parancsokat — a CI mind a négyet megköveteli. Az architektúráért és a kódból nem nyilvánvaló megkötésekért lásd a CLAUDE.md fájlt.

⬆️ Ugrás az elejére

📜 Licenc

MIT — lásd a LICENSE fájlt. Copyright (c) 2026 Billingo Technologies Zrt.

⬆️ Ugrás az elejére


English

The official Billingo MCP server — 49 tools over the Billingo invoicing API v3, for stdio (desktop) and Streamable HTTP (self-hosted) clients. MIT-licensed and self-hostable. There was no official Billingo SDK or MCP server before this — it is the first.

No install needed for most people — use the hosted server at mcp.billingo.hu. Prefer to run it yourself? It's also published on npm as @billingo/billingo-mcp (npx, no build) and as a Docker image — see Choose how to run it below.

🧭 Choose how to run it

Setup

Best for

🌐 Hosted server

None — point your client at a URL

Most people: zero install, zero maintenance

💻 stdio via npx

npx, no build

Desktop MCP clients (Claude Desktop, Claude Code)

🐳 Docker (self-hosted HTTP)

docker run

Running your own instance, on your own infrastructure

⬆️ Back to top

No install, no self-hosting — point your MCP client at https://mcp.billingo.hu and send your Billingo API key with every request. This is the fastest way to get started; reach for stdio or Docker below only if you specifically need to self-host.

Claude Code CLI

claude mcp add --transport http billingo https://mcp.billingo.hu \
  -s user \
  -H "X-Billingo-Api-Key: your-api-key" \
  -H "X-Billingo-Allow-Write: true"

-s user registers it across every project instead of just the current one; use -s local (the default) to scope it to just this project. Drop the X-Billingo-Allow-Write header, or set it to "false", for read-only access.

Other HTTP-capable MCP clients

Any client that speaks Streamable HTTP works the same way: point it at https://mcp.billingo.hu with the X-Billingo-Api-Key header (required) and optionally X-Billingo-Allow-Write — see Configuration for the full header reference.

Get your API key the same way as described under API key below.

⬆️ Back to top

💻 Install / run with stdio

No install step — npx fetches and runs the package on demand.

Claude Desktop

claude_desktop_config.json:

{
  "mcpServers": {
    "billingo": {
      "command": "npx",
      "args": ["-y", "@billingo/billingo-mcp"],
      "env": {
        "BILLINGO_API_KEY": "your-api-key",
        "BILLINGO_ALLOW_WRITE": "false"
      }
    }
  }
}

Restart the client fully afterwards — Claude Desktop reads this file only at startup, so quitting the window is not enough (use ⌘Q on macOS).

Claude Code CLI

claude mcp add billingo -s user \
  -e BILLINGO_API_KEY=your-api-key \
  -e BILLINGO_ALLOW_WRITE=false \
  -- npx -y @billingo/billingo-mcp

-s user registers the server for you across every project, not just the one you're currently in, without committing anything to a repo. Use -s local (the default) instead to scope it to the current project only. Verify with claude mcp list, or inspect the saved config with claude mcp get billingo.

Other MCP clients

Any client that accepts the standard mcpServers JSON shape (Cursor, Windsurf, and others) can reuse the Claude Desktop block above as-is — command, args, and env are not Claude-specific, only the surrounding config file and its location differ.

API key

Get your API key from Billingo under Settings → API keys → New API key. On the creation form:

  • Associated connection: Custom development.

  • API scope: Read if you only need to list or fetch data, or Write if you also want to create, modify, send, or cancel documents.

This is a second, independent gate from BILLINGO_ALLOW_WRITE below: a Read-scoped key still gets a permission error straight from the Billingo API on any write call, even if BILLINGO_ALLOW_WRITE is "true" here — both have to allow it. Leave BILLINGO_ALLOW_WRITE at "false" (or omit it) unless you actually want the model to be able to create, modify, send, or cancel documents — see Security. Note that config files like claude_desktop_config.json are stored in plain text, so the key sits unencrypted on disk.

To check it worked: the client should list 22 tools in read-only mode, or 49 with BILLINGO_ALLOW_WRITE set to "true". If it reports no tools, check the client's log (on macOS, ~/Library/Logs/Claude/mcp-server-billingo.log) — the server identifies itself as {"name":"billingo","version":"0.1.0"}. A different name there means the client is talking to some other server registered under the same name.

⬆️ Back to top

🐳 Run with Docker (HTTP)

docker run -p 3000:3000 ghcr.io/octonull/billingo-mcp:latest

The image ships with no API key baked in. HTTP mode is stateless and per-request: every call carries the Billingo API key in a header, and the server never stores it. Example call, showing the two Billingo-specific headers:

curl -X POST http://localhost:3000 \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -H 'X-Billingo-Api-Key: your-api-key' \
  -H 'X-Billingo-Allow-Write: true' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

GET /health returns {"status":"ok"} and needs no headers, for container health checks. GET /build_version returns the running image's build-time version, e.g. {"buildVer":"fcc756d@0.1.0"} — or just the commit SHA ({"buildVer":"fcc756d"}) if that build isn't from a release tag.

Get the API key itself the same way as for stdio — see API key above — and give it Write scope on Billingo's side if you intend to send X-Billingo-Allow-Write.

Claude Code CLI

claude mcp add --transport http billingo http://localhost:3000 \
  -s user \
  -H "X-Billingo-Api-Key: your-api-key" \
  -H "X-Billingo-Allow-Write: true"

-s user registers it across every project instead of just the current one; use -s local (the default) to scope it to just this project. Drop the X-Billingo-Allow-Write header, or set it to "false", for read-only access.

⬆️ Back to top

🔧 Configuration

Variable

Transport

Required

Default

Meaning

BILLINGO_API_KEY

stdio only

yes

—

Your Billingo API key. Not read in HTTP mode — see below.

BILLINGO_ALLOW_WRITE

stdio only

no

false

"true" or "1" enables write tools for this stdio process. Any other value (including a typo) is treated as false.

BILLINGO_TOOL_CATEGORIES

stdio only

no

all

Comma-separated tool groups to load, and only these: organization, partners, products, spendings, bank_accounts, document_blocks, documents. An unknown name stops the server from starting.

BILLINGO_BASE_URL

both

no

https://api.billingo.hu/v3

Override the API base URL, e.g. to point at a proxy.

PORT

HTTP only

no

3000

Port the HTTP server listens on.

BILLINGO_ALLOWED_HOSTS

HTTP only

no

unset (protection disabled)

Comma-separated list of Host header values the server will accept — DNS-rebinding protection. Set this whenever the server is reachable from outside localhost.

HTTP mode takes credentials and scope per request, as headers, instead:

Header

Required

Meaning

X-Billingo-Api-Key

yes

The Billingo API key to use for this request. Never stored.

X-Billingo-Allow-Write

no

"true" or "1" enables write tools for this request only.

X-Billingo-Tool-Categories

no

The same group list as BILLINGO_TOOL_CATEGORIES, for this request. Clients that cannot set a header can use ?categories=documents,partners in the URL; when both are set, the header wins. Unknown name: 400.

⬆️ Back to top

🔒 Security

Read this section before exposing the server to anything.

  • Read-only by default. Write tools (create, update, delete, send, cancel) are filtered out of tools/list entirely unless BILLINGO_ALLOW_WRITE (stdio) or X-Billingo-Allow-Write (HTTP) is explicitly set. A model that never sees a write tool cannot call it. This is the primary safety mechanism — leave writes off unless you specifically need them.

  • Issued invoices are reported to NAV automatically and cannot be undone. Once a document is finalized into an invoice, Hungary's NAV Online Számla reporting happens immediately and is not reversible. The only remedy for a wrong invoice is a storno (cancellation) — and a storno is itself irreversible: it voids the invoice permanently and is also reported to NAV. There is no "delete" for an issued invoice.

  • HTTP mode requires TLS. The API key travels in the X-Billingo-Api-Key header on every request. Terminate TLS in front of the container (a reverse proxy, load balancer, or platform ingress) — never run HTTP mode over plain HTTP outside a trusted local network.

  • HTTP mode stores no API key, by design. Do not "fix" this by setting an API key via a container-wide environment variable — that turns the deployment single-tenant and lets every caller who can reach the container bill your account, since there would be nothing left to distinguish requests. The per-request header is the point.

  • Set BILLINGO_ALLOWED_HOSTS whenever the HTTP server is exposed publicly. Without it, DNS-rebinding protection is disabled.

⬆️ Back to top

🧰 Tools

49 tools total: 22 read (always visible), 27 write (visible only with writes enabled). If your client puts every tool schema into the prompt, load only the groups you need with BILLINGO_TOOL_CATEGORIES (over HTTP: X-Billingo-Tool-Categories).

Organization (3 read)

  • billingo_get_organization — Get organization details (tax code, subscription, NAV connection status).

  • billingo_check_tax_number — Validate a Hungarian tax number (full hyphenated form; needs a live NAV connection).

  • billingo_get_conversion_rate — Get an official currency conversion rate, optionally for a past date.

Partners (2 read, 4 write)

  • billingo_list_partners — List partners.

  • billingo_get_partner — Get a single partner.

  • billingo_create_partner — Create a partner. (write)

  • billingo_update_partner — Update a partner; only the fields you send change. (write)

  • billingo_guess_partner — Find a partner by tax number/email, or create one. (write)

  • billingo_delete_partner — Delete a partner. (write)

Products (3 read, 3 write)

  • billingo_list_products — List products.

  • billingo_get_product — Get a single product.

  • billingo_get_product_quantity — Get a product's stock quantity.

  • billingo_create_product — Create a product. (write)

  • billingo_update_product — Update a product; only the fields you send change. (write)

  • billingo_delete_product — Delete a product. (write)

Spendings (2 read, 3 write)

  • billingo_list_spendings — List spendings.

  • billingo_get_spending — Get a single spending.

  • billingo_create_spending — Create a spending. (write)

  • billingo_update_spending — Update a spending; only the fields you send change. (write)

  • billingo_delete_spending — Delete a spending. (write)

Bank accounts (2 read, 3 write)

  • billingo_list_bank_accounts — List bank accounts.

  • billingo_get_bank_account — Get a single bank account.

  • billingo_create_bank_account — Create a bank account. (write)

  • billingo_update_bank_account — Update a bank account; only the fields you send change. (write)

  • billingo_delete_bank_account — Delete a bank account. (write)

Document blocks (1 read, 1 write)

  • billingo_list_document_blocks — List document blocks (invoice number ranges).

  • billingo_create_document_block — Create a document block. (write)

Documents — read (8)

  • billingo_list_documents — List documents (invoices, receipts, proformas, drafts, and more).

  • billingo_get_document — Get a single document by id or vendor id.

  • billingo_download_document — Get the document PDF (public URL, or base64 bytes).

  • billingo_get_document_public_url — Get a shareable public URL for a document.

  • billingo_get_online_szamla_status — Get a document's NAV Online Számla reporting status. Errors when the document has no NAV record — e.g. the organization is not connected to NAV Online Számla, or the document isn't subject to reporting.

  • billingo_get_document_payments — Get the payments recorded against a document.

  • billingo_get_document_reminders — Get the reminder events sent for a document.

  • billingo_pos_print — Get a POS-thermal-printer-sized PDF receipt for a document.

Documents — write (9)

  • billingo_create_document — Create a document (invoice, proforma, draft, or advance). (write)

  • billingo_create_receipt — Create a receipt (needs a receipt-type document block). (write)

  • billingo_finalize_draft — Finalize a draft into an invoice — issues it and reports it to NAV. (write)

  • billingo_finalize_receipt_draft — Finalize a draft into a receipt. (write)

  • billingo_create_document_from_proforma — Create an invoice from a proforma. (write)

  • billingo_copy_document — Copy a document; an invoice copy is a draft (issue it with billingo_finalize_draft). (write)

  • billingo_create_modification_document — Create a modification (correction) document. (write)

  • billingo_update_payment — Replace a document's recorded payments; any payment left out is deleted. (write)

  • billingo_archive_document — Archive a proforma document. (write)

Documents — export (1 read)

  • billingo_export_documents — Export documents.

Documents — destructive (4 write)

  • billingo_cancel_document — Cancel (storno) a document — irreversible. (write)

  • billingo_send_document — Send a document by email. (write)

  • billingo_delete_document — Delete a document (only drafts/unissued documents; an issued invoice must be cancelled instead). (write)

  • billingo_delete_payment — Delete a document's recorded payments. (write)

Results and errors

  • Structured results. 17 read tools publish an outputSchema and also return their result as structuredContent, so hosts that call tools from code (code mode) get typed data. The text block is unchanged. The schemas are open (new Billingo fields pass) and require nothing but a record's id; if a response ever did not fit, the SDK would return the call as an Output validation error, which npm run test:live checks for on every run. Tools that return a file (download_document, pos_print, export_documents) or whose shape cannot be checked on a sandbox (check_tax_number, get_product_quantity) publish none, and neither do the write tools.

  • Errors. A Billingo API error comes back as isError: true: the first text block is the message, the second is JSON, {"error": {"code", "retryable", "outcome_unknown", "status", "retry_after_seconds", "fields", "trace_id", "message"}}. Codes: bad_request, unauthorized, nav_connection_required, subscription_required, forbidden, not_found, validation_failed, rate_limited, pdf_not_ready, server_error, api_error, client_error, invalid_arguments, export_pending, export_failed. retryable is never true for a server error on a tool that is not idempotent: there outcome_unknown is set instead, because the invoice may already have been issued, so check by vendor_id before trying again. A retried delete may answer not_found when the first attempt went through. Input-validation errors from the SDK keep their plain-text form.

  • Updates. Billingo's API replaces the whole record on update and clears what is left out. The partner, product, bank account and spending update_* tools therefore read the record first and send it back complete with your changes: send only the field that changes. update_payment still replaces the whole payment list, so read the existing payments first. All of them carry destructiveHint: true. The read and the write are two requests, so a change made in Billingo between them is overwritten. On a HUF spending the *_huf amounts follow the totals; in another currency Billingo does not convert, so a new total, currency or rate needs its HUF amounts too. A spending's line items (items, from NAV imports) are not part of the write model; whether an update keeps them is not verified.

⬆️ Back to top

🔨 Development

git clone https://github.com/octonull/billingo-mcp.git
cd billingo-mcp
npm ci
npm test

TypeScript is pinned to 5.9.3 and cannot currently be upgraded: openapi-typescript requires typescript@^5.x, and typescript-eslint requires <6.1.0 — their intersection is 5.9.3. Installing a newer TypeScript fails npm install with an ERESOLVE conflict.

Other useful commands: npm run typecheck, npm run lint, npm run format, npm run test:coverage, npm run build.

Architecture: the layers, the path of a tool call and how the update tools work, with a diagram: ARCHITECTURE.md.

Live smoke suite: npm run test:live runs a small suite against the real Billingo sandbox (creating and cleaning up real, if harmless, sandbox data). It needs BILLINGO_SANDBOX_API_KEY set to a sandbox API key; without it, the suite skips cleanly (this is also how CI and contributors without sandbox access run it safely).

⬆️ Back to top

🤝 Contributing

Issues and pull requests are welcome. Please run npm run format:check, npm run lint, npm run typecheck, and npm run test:coverage before opening a PR — CI enforces all four. See CLAUDE.md for the architecture and the constraints that aren't obvious from the code alone.

⬆️ Back to top

📜 Licence

MIT — see LICENSE. Copyright (c) 2026 Billingo Technologies Zrt.

⬆️ Back to top

Available Tools

22 tools
billingo_check_tax_numberCheck tax numberA
Read-onlyIdempotent

Looks up a Hungarian tax number at NAV and returns the company data behind it. Use this to validate a tax number before creating a partner. Works only when the Billingo account has a live NAV Online Számla connection (not available on sandbox accounts).

Inputs: tax_number (required).

billingo_download_documentDownload documentA
Read-onlyIdempotent

Gets the document PDF. By default returns a shareable public URL — this is what works in most MCP clients (including Claude Desktop, which rejects the base64 file attachment) and is what you want in almost every case. Pass format="base64" only when a caller specifically needs the raw PDF bytes: it costs a lot of context (base64 is ~1.33x the PDF size) and some clients cannot render the result at all.

Inputs: id (required), format.

billingo_export_documentsExport documentsA
Read-only

Exports documents in a date range to a downloadable file, in one of the accounting/reporting formats Billingo supports (e.g. simple_csv, simple_excel, or a named accounting-system format). Creates the export, waits for it to finish, and returns the file. Nothing is modified. Textual formats (simple_csv, nav_xml, and other XML/JSON-based targets) come back as readable text you can analyse directly — very large exports are truncated with an explicit note, and a narrower date range will return the whole thing. Binary formats (simple_excel, simple_excel_items) come back as a file attachment that some MCP clients cannot display inline.

Inputs: format (required), end_date (required), start_date (required), block_id, +1 more.

billingo_get_bank_accountGet bank accountA
Read-onlyIdempotent

Returns a single bank account by id.

Inputs: id (required). Returns: id, name, swift, need_qr, +3 more

billingo_get_conversion_rateGet currency conversion rateB
Read-onlyIdempotent

Returns the conversion rate Billingo would apply between two currencies.

Inputs: to (required), from (required), date. Returns: date, to_currency, from_currency, conversation_rate

billingo_get_documentGet documentA
Read-onlyIdempotent

Returns a single document. Give either id (the Billingo document id) or vendor_id (your own external reference set when the document was created).

Inputs: id, vendor_id. Returns: id, type, items, partner, +16 more

billingo_get_document_paymentsGet document paymentsB
Read-onlyIdempotent

Returns the payments recorded against a document.

Inputs: id (required). Returns: payments

billingo_get_document_public_urlGet document public URLA
Read-onlyIdempotent

Returns a shareable public URL for the document, viewable without a Billingo login.

Inputs: id (required). Returns: public_url

billingo_get_document_remindersGet document reminder eventsB
Read-onlyIdempotent

Returns the payment reminder events sent for a document, grouped into sent, upcoming and postal-mail reminders.

Inputs: id (required). Returns: sent_reminders, sent_postal_mail, upcoming_reminders

billingo_get_online_szamla_statusGet NAV Online Számla statusA
Read-onlyIdempotent

Returns the NAV Online Számla reporting status of a document: the transaction id, the status, and any validation messages from NAV. Use this to check whether reporting succeeded. Errors (4xx, "NavOnlineSzamla is not found") when the document has no NAV record at all — for example when the organization is not connected to NAV Online Számla, or the document is not subject to reporting. That is not a NAV failure; it means there is nothing to report on.

Inputs: id (required). Returns: status, messages, transaction_id

billingo_get_organizationGet organizationA
Read-onlyIdempotent

Returns account-level data for the organization that owns the API key: its tax code, its Billingo subscription, and whether NAV Online Számla is connected. This is NOT a company profile — it contains no name, id or address. Use it to check the subscription or NAV connection status.

Inputs: no named parameters. Returns: tax_code, subscription, has_nav_connection

billingo_get_partnerGet partnerB
Read-onlyIdempotent

Returns a single partner by id.

Inputs: id (required). Returns: id, iban, name, phone, +6 more

billingo_get_productGet productA
Read-onlyIdempotent

Returns a single product by id.

Inputs: id (required). Returns: id, ean, sku, vat, +6 more

billingo_get_product_quantityGet product stock quantityA
Read-onlyIdempotent

Returns the current inventory quantity for a product.

Inputs: id (required).

billingo_get_spendingGet spendingB
Read-onlyIdempotent

Returns a single spending by id.

Inputs: id (required). Returns: id, comment, paid_at, partner, +12 more

billingo_list_bank_accountsList bank accountsB
Read-onlyIdempotent

Lists the bank accounts configured on the organization.

Inputs: page, per_page. Returns: data, total, per_page, last_page, +3 more

billingo_list_document_blocksList document blocksA
Read-onlyIdempotent

Lists document blocks (invoice number ranges). Every document belongs to a block; you need a block id to create an invoice.

Inputs: page, per_page. Returns: data, total, per_page, last_page, +3 more

billingo_list_documentsList documentsA
Read-onlyIdempotent

Lists documents (invoices, receipts, proformas, drafts and more), newest first. Filter by type, invoice date range, fulfillment date range, payment date range, last modification time, partner, payment status/method or document block.

Inputs: page, type, query, block_id, +11 more. Returns: data, total, per_page, last_page, +3 more

billingo_list_partnersList partnersA
Read-onlyIdempotent

Lists partners (customers), newest first. Supports paging and a free-text search over the partner name.

Inputs: page, query, per_page. Returns: data, total, per_page, last_page, +3 more

billingo_list_productsList productsB
Read-onlyIdempotent

Lists products and services from the product catalogue.

Inputs: page, query, per_page. Returns: data, total, per_page, last_page, +3 more

billingo_list_spendingsList spendingsA
Read-onlyIdempotent

Lists recorded spendings (costs), optionally filtered by date range.

Inputs: page, end_date, per_page, start_date. Returns: data, total, per_page, last_page, +3 more

billingo_pos_printGet POS print dataA
Read-onlyIdempotent

Returns a printable PDF receipt for a document, sized for a POS thermal printer.

Inputs: id (required), size (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 22 tools

    Disambiguation4/5

    Most tools target a clearly distinct resource and action (list vs get for partners, products, spendings, bank accounts; document-specific operations like payments, reminders, NAV status, POS print). The main overlap is billingo_download_document vs billingo_get_document_public_url, which both default to returning a shareable public URL, making selection ambiguous.

    Naming Consistency4/5

    Names follow a consistent billingo_ prefix with snake_case verb_noun structure (list_documents, get_partner, export_documents, check_tax_number). Minor deviation: billingo_pos_print uses noun_verb ordering rather than the verb_noun pattern used elsewhere.

    Tool Count3/5

    22 tools is on the heavy side for the rubric, though the broad billing domain (documents, partners, products, spendings, org, bank accounts) partly justifies it. Several simple list/get pairs could potentially be consolidated, placing it at borderline.

    Completeness2/5

    The surface is almost entirely read-only: there are no create/update/delete tools for invoices, partners, products, or spendings, yet descriptions reference creating partners and needing block ids to create invoices, implying write operations that don't exist. Core billing workflows (issuing an invoice, recording a payment) cannot be performed, a significant gap.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      An MCP server for the Billingo invoicing API (v3) that enables AI assistants like Claude to manage invoices, partners, products, expenses, and more through natural language.
      42
      13
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for the Billingo V3 Hungarian invoicing API. Manage invoices, partners, products, spendings, and bank accounts from any MCP client.
      8 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Model Context Protocol (MCP) server for SuperFaktura invoicing system. Enables AI assistants to interact with SuperFaktura API for managing invoices, clients, and expenses.
      Apache 2.0
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI clients to interact with a point-of-sale public API through 32 MCP tools for managing bills, customers, items, orders, receipts, stock, suppliers, taxes, and webhooks over stdio and HTTP transports.
      -