TACITo

v0.1.0
io.github.gad45/tacito-mcp Checked 2 days ago Published 13 days ago

Hungarian invoicing with NAV reporting: search invoices, prepare drafts, issue only if allowed.

MCP server for TACITo, Hungarian invoicing with NAV Online Számla reporting. It connects an AI assistant (Claude Desktop, Claude Code, Cursor, Codex or any other MCP client) to your own TACITo company: the assistant can search your invoices, prepare drafts and, only if you switch it on, issue them. It runs on your computer (stdio), talks to the TACITo API with your API key, and has one runtime dependency: tacito-sdk. Node ≥ 18. 1. Create an API key in TACITo: Beállítások → API kulcsok (https://tacito.hu/beallitasok/api-kulcsok).

Summary extracted from the README.

tacito-mcp

MCP server for TACITo, Hungarian invoicing with NAV Online Számla reporting. It connects an AI assistant (Claude Desktop, Claude Code, Cursor, Codex or any other MCP client) to your own TACITo company: the assistant can search your invoices, prepare drafts and, only if you switch it on, issue them.

It runs on your computer (stdio), talks to the TACITo API with your API key, and has one runtime dependency: tacito-sdk. Node ≥ 18.

Setup

  1. Create an API key in TACITo: Beállítások → API kulcsok (https://tacito.hu/beallitasok/api-kulcsok). For read mode a read-only key ("Olvasás") is enough, and it is the stronger limit: the TACITo server enforces it. For draft and full mode choose "Olvasás + írás" (read and write): a write-only key is not enough, because issue_invoice reads the draft before it issues it.
  2. Add the server to your MCP client, with the one-line setup or by hand.

One line (macOS, Linux):

curl -fsSL https://tacito.hu/mcp-szerver/install.sh | sh

It asks for the API key (hidden) and the mode, installs this package into ~/.tacito-mcp, and adds that copy, by its full path, to every client it finds: Claude Code, Codex, Claude Desktop and Cursor. The key is stored in one file only you can read (~/.tacito-mcp/env), not in the clients' settings and never on a command line. For Claude Desktop and Cursor it adds one entry to the settings file and keeps a copy of the previous file next to it (.tacito-backup, without a TACITo key that was in it). Its questions are in Hungarian. Run it again to update, or to change the key or the mode. You can read it first: https://tacito.hu/mcp-szerver/install.sh

By hand. Mind where npx looks: it takes a package from the folder the client runs in before it asks npm. In a project folder you do not trust, a planted package named tacito-mcp would be started with your key. There, use the one-line setup, or npm install -g tacito-mcp and "command": "tacito-mcp" (no npx, no args).

Claude Desktop, Cursor (and other clients with an mcpServers JSON file):

{
  "mcpServers": {
    "tacito": {
      "command": "npx",
      "args": ["-y", "tacito-mcp"],
      "env": { "TACITO_API_KEY": "tacit_...", "TACITO_MCP_MODE": "draft" }
    }
  }
}

Claude Code:

claude mcp add tacito --env TACITO_API_KEY=tacit_... -- npx -y tacito-mcp

Codex:

codex mcp add tacito --env TACITO_API_KEY=tacit_... -- npx -y tacito-mcp
Variable Meaning
TACITO_API_KEY Your API key (tacit_...). Without it the server starts, and every tool answers with where to create one.
TACITO_MCP_MODE read, draft (default) or full: which tools exist (below).
TACITO_BASE_URL Optional; default https://tacito.hu.

The key is read from the environment only, never from the command line of the server, and it is removed from every text the server returns or logs.

Modes and tools

Mode Tool What it does
read get_readiness Can this company issue invoices now, and which setup steps are missing
read search_invoices Search outgoing invoices and drafts (text, state, payment state, NAV state, dates)
read get_invoice One invoice or draft with lines, payment state, NAV state and public link
read lookup_company Name and address of a Hungarian company by tax number
read get_exchange_rate Preview of the MNB exchange rate for a currency and day
draft create_invoice_draft Create a draft
draft create_storno_draft Create the cancelling document of an issued invoice, as a draft
draft delete_invoice_draft Delete a draft (issued invoices cannot be deleted)
full issue_invoice Issue a draft: legally binding

Each mode includes the ones above it: read has 5 tools, draft 8, full 9.

Why the default cannot issue

An issued invoice gets a number, is reported to the Hungarian tax authority (NAV) and can never be edited or deleted. TACITo has no test mode. An assistant can also be steered by text it reads, such as an e-mail or a web page. So out of the box (draft) nothing legally binding can happen: a draft has no number, is not reported and can be deleted. You issue the draft yourself in TACITo, or you set TACITO_MCP_MODE=full, which adds exactly one tool.

In full mode:

  • issue_invoice works on a draft id, for a normal invoice and for a storno alike. Repeating the call for the same draft is safe: it returns the first result instead of issuing twice.
  • The assistant must pass the gross total you approved. If the draft's total is different (it was edited, or it is another draft), nothing is issued. This is a check, not a lock: a draft changed in the web app in the same moment, or changed without its total changing, is issued as it is then.
  • If automatic invoice e-mail is switched on in your TACITo account, issuing e-mails the invoice to the buyer, as it does for every invoice issued through the API. The server has no tool that sends e-mail by itself.
  • The server tells the assistant to show you the draft and get your yes before issuing. That is an instruction to the assistant, not a guarantee: set your MCP client to ask for confirmation before issue_invoice runs.
  • Cancelling an issued invoice is two steps: create_storno_draft, then issue_invoice on that draft.

Not in this version: modifying invoices, pro forma and advance invoices, payments, e-mail sending, PDF download, incoming invoices, partners, products and settings. Use the TACITo web app or the API for those.

Errors

A failed call returns the API's message, error code, field errors and request_id to the assistant, so it can correct the input or tell you which setting is missing. Quote the request_id to support (info@tacitproject.hu).

API reference: https://tacito.hu/api/docs. License: MIT.