sef-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
sef-mcp
EN: Local-first MCP server that lets an AI assistant (Claude Desktop, Claude Code, Cursor…) draft and send e-invoices to the Serbian SEF (Sistem elektronskih faktura). Safe by default: demo environment, two-step send with human approval, secrets only via a secret manager. Company-specific rules live in a local profile, not in code.
MCP server koji AI asistentu omogućava da pripremi i pošalje izlaznu e-fakturu na SEF — na tvom računaru, sa tvojim API ključem, bez posrednika.
Zašto još jedan SEF MCP
Hostovani MCP servisi | sef-mcp | |
Gde ide tvoj API ključ | Kroz tuđi server | Ostaje na tvom računaru |
Ko vidi fakture | Treća strana | Samo ti i SEF |
Slanje | Jedan poziv | Nacrt → tvoje odobrenje → slanje |
Pravila firme (PDV status, kupci, numeracija) | U promptu | U lokalnom profilu, validirano |
Podrazumevano okruženje | Različito | demo (bez poreskog efekta) |
Related MCP server: serbia-invoice-mcp
Šta ume (v0.1)
Alat | Šta radi | Menja stanje? |
| Okruženje, sigurnosni prekidači, profil | ne |
| Proverava ključ i vezu sa SEF-om | ne |
| Kupci iz profila | ne |
| Zvanične šifre izuzeća (npr. | ne |
| Zvanične jedinice mere (npr. | ne |
| Pravi UBL fakturu lokalno, vraća iznose i | samo lokalno |
| Čita nacrt (opciono sa XML-om) | ne |
| Šalje odobren nacrt na SEF | da |
| Status i pregled poslatih faktura | ne |
| Otkazuje fakturu u statusu Nacrt / Nova / Greška pri slanju | da |
| Stornira fakturu u statusu Poslata / Prihvaćena / Odbijena | da |
Brzi početak
git clone <repo> sef-mcp && cd sef-mcp
npm install && npm test
node dist/src/index.js init ~/.config/sef-mcp/profile.json # pa popuni podatke firmeZatim prati docs/setup.md: API ključ u 1Password-u (ili drugom secret manageru), povezivanje sa Claude Desktop / Claude Code / Cursor, prvi test na demo okruženju.
Bezbednost ukratko
Podrazumevano
SEF_ENV=demo. Produkcija traži dva prekidača:SEF_ENV=prodiSEF_MCP_ALLOW_PROD_WRITE=true.Slanje zahteva
draftId+approvalCode(prvih 8 znakova SHA-256 XML-a) — šalje se tačno verzija koju si video.Ključ se nikad ne loguje, ne vraća iz alata i ne čuva na disku. Prihvata se samo iz okruženja.
Klijent komunicira isključivo sa
efaktura.mfin.gov.rs/demoefaktura.mfin.gov.rs.Prilozi samo iz jednog dozvoljenog foldera, samo PDF, sa ograničenjem veličine.
Lokalni audit log (
audit.jsonl) svakog nacrta, slanja i otkazivanja.
Detalji: SECURITY.md i docs/technical-spec.md.
Status
v0.1 — rana faza. Usklađeno sa SEF API specifikacijom od 31.07.2026 (SEF 3.14) i ITU od 01.10.2026. UBL generator reprodukuje strukturu fakture koju je SEF prihvatio u produkciji (golden test). Pre produkcije još: test na demo okruženju (executeValidation=true). Vidi docs/roadmap.md.
Dokumentacija
Odricanje odgovornosti
Ovo nije zvaničan alat Ministarstva finansija. Odgovornost za sadržaj i poresku ispravnost faktura ostaje na izdavaocu. Poreske kategorije i šifre izuzeća potvrdi sa svojim knjigovođom.
Licenca
This server cannot be deployed
Maintenance
Related MCP Connectors
Serbia SEF eFaktura invoices for AI agents: build UBL 2.1 SRB-CIUS, upload to SEF, query, cancel.
Invoicing tools for AI assistants: clients, draft invoices with computed tax, and email sending.
Create invoices from your AI assistant in 6 languages and 10 currencies, ready for WhatsApp.
Issue Brazilian service invoices (NFS-e Nacional) from your AI, with preview and confirmation.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to issue Poland structured e-invoices (faktura ustrukturyzowana) through KSeF 2.0, handling FA(3) XML building, encrypted session flow, and KSeF number retrieval.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to issue, query, and cancel Serbia SEF eFaktura electronic invoices (UBL 2.1 SRB-CIUS) into the national Ministry of Finance system, using the merchant's own API key.MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to create and manage e-invoices through natural language, supporting EU compliance formats like ZUGFeRD and XRechnung, as well as US plain PDF invoices.7-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to locally parse, validate, audit, explain, generate, and convert XRechnung and ZUGFeRD/Factur-X e-invoices using official rule sets, fully offline with no API keys required.Apache 2.0