fiscai-octopus-api-connector
Powered by FISCALCI Accounting & Tax (Askin Alci)
Author: Askin Alci
Belgium. Made for Belgian accountants and bookkeepers: it follows the Belgian chart of accounts (MAR) and Belgian VAT. Outside Belgium, check the local rules yourself.
Not yet tested against a live Octopus dossier. This connector has only been tested against a mocked API built from the official specification (there is no Octopus sandbox). Feedback and findings are welcome through GitHub issues. Open points:
docs/OPEN-QUESTIONS.md.
Nederlandse samenvatting. Bedoeld voor Belgische boekhouders/accountants; gebaseerd op Belgische boekhoud- en btw-regels (MAR, Belgisch btw-stelsel). Gebruik buiten België: verifieer zelf de lokale regels. Zie README.nl.md.
About
FISCAi Octopus API Connector is a local MCP server (stdio) and command-line tool that lets Grok Bot and other MCP clients read Octopus dossiers: fiscal years, journals, chart of accounts, balances per period, booking lines, customers and suppliers, open items and reports. On top of that it builds what the API does not offer directly (a trial balance, ageing, MAR key figures) and produces exports and a dossier transfer package per fiscal year for the next accountant. Status: 1.0.0, tested offline against a mocked API built from the official specification; not yet validated against a live Octopus dossier (see open questions).
Related MCP server: cebelca-mcp
Contents
What it does · Daily limits · Install · Configuration · Security · Tools · Limitations · License
More. Setup · Manual (EN) · Handleiding (NL) · CLI · Hooks · Automation · Dossier transfer · Export schema · Integrations · Postman · Write mode · Operations · Privacy and data flow · Troubleshooting · Open questions · Agents
What it does
49 read-only tools (51 with the optional write mode): dossiers, fiscal years, journals, chart of accounts, balances, booking lines, relations, open items, history reports, invoices, delivery notes, reminders, master data.
Trial balance built from accounts and balances per period, because Octopus has no trial-balance endpoint; with a balance check and totals per MAR class.
Analyses: ageing of open items, MAR key figures (revenue, costs, result, cash, receivables, payables, VAT indication), comparison with the previous fiscal year.
Local sync through the official modified-since endpoints: one full load, then only changes. Encrypted on disk with your own key, or memory only.
Export to CSV, JSON, Excel (xlsx) and Parquet for Power BI, Excel, databases and notebooks.
Dossier transfer per fiscal year: chart of accounts, closing trial balance, booking lines, open items at year end, journals, relations, VAT codes,
CONTROL.mdchecks andMANIFEST.jsonwith SHA-256, resumable when a daily limit is hit.Automation: meeting preparation and recurring obligations (VAT, listings, annual accounts) as overviews and draft e-mails; nothing is sent by default.
Free official helpers (optional): Belgian VAT-number check (offline modulo 97, optional VIES of the European Commission) and ECB euro reference rates.
Daily limits and how the connector copes
The official Octopus REST specification sets a maximum number of calls per day per endpoint. Some are very low:
Endpoint group | Calls per day |
Accounts, VAT codes, currencies, cost centres, custom fields, products, product groups; relations without search | 2 |
One purchase/sales or financial/miscellaneous booking | 10 |
Fiscal years, journals, reports (open items, history) | 24 |
All modified-since endpoints | 48 |
Dossier list and dossier token | 150 |
Relations with a search term, invoices, delivery notes, reminders | 400 |
So the connector:
counts every call before sending it and refuses when today's limit (Europe/Brussels) is reached, instead of letting Octopus send you a warning e-mail (
octopus_quotashows what is left);caches responses according to the limit (12 hours for 2/day master data);
syncs accounts, balances, relations and bookings with the modified-since endpoints (first load per fiscal year and journal type with
1980-01-01 00:00:00.000, then fiscal year-1and journal type-1with the last watermark), exactly as the specification describes;refreshes the 10-minute tokens (authentication token and dossier token) automatically, one minute before they expire, and retries once on HTTP 401;
never uses the paid Management API, the file-import API or any paid plan.
Install
Requirements: Python 3.10+, httpx, cryptography (and pyarrow only for Parquet). Octopus API access: a software house UUID from Octopus and an Octopus user with API rights. There is no sandbox; use the demo dossier for testing (verifieer actuele regel).
Grok Bot. Add the plugin from its repository and fill in the variables OCTOPUS_SOFTWARE_HOUSE_UUID, OCTOPUS_USER and OCTOPUS_PASSWORD (secrets). Then ask, for example: "Show the trial balance of dossier 101 for 2026" (example dossier number).
Command line.
pip install -r requirements.txt
python server/run_cli.py config init # writes a .env with placeholders only
python server/run_cli.py doctor # checks Python, dependencies and configuration; makes no call
python server/run_cli.py call octopus_dossiers
python server/run_cli.py sync --dossier 101 --bookyear 2
python server/run_cli.py call octopus_proefbalans dossier_id=101 jaar=2026
python server/run_cli.py transfer --dossier 101 --out ./overdracht # estimate first; add --yes to runOther MCP clients (Cursor, Claude Desktop/Code, VS Code Copilot, Windsurf): see examples/ for ready-made configuration files; they all start server/run_server.py over stdio.
Configuration
Variable | Meaning |
| Software house UUID (header |
| Octopus user with API access. Secret; memory only, never logged. |
| Optional, 16+ characters: encrypts cache and sync on disk. Without it everything stays in memory. |
|
|
| Optional comma-separated allow-list of dossier ids. |
| Calls per endpoint kept in reserve (default 0). |
|
|
| Off by default. |
| Data folder, hooks file, log level. |
Security and safety
Read-only by default. Write tools do not exist unless
OCTOPUS_WRITE_ENABLED=true; even then every write is a proposal first and needs a confirmation code, with a daily maximum. Delete operations are never offered. See WRITE.md.Your credentials, your computer. No central server. Tokens live in memory only; secrets are scrubbed from every output, log and error.
Only the official host. The base URL must be
https://service.inaras.be/octopus-rest-api/...; the Management API is refused.No client data in this repository. Examples use
[Voorbeeld]data only.No tax or legal advice: check figures against the source and the current rules.
Tools
See docs/TOOLS.md for all tools with their Octopus endpoint and daily limit (generated from the code).
Limitations
Not yet validated against a live Octopus dossier; several API details are marked verifieer actuele regel and listed in docs/OPEN-QUESTIONS.md (for example whether balances per period are movements or cumulative, and the exact error object).
No pagination in the API: large lists come in one response; tools cap what they show (
max_rijen), exports always contain everything.Attachments (file sync), OAuth and a dashboard widget are on the roadmap.
Shared core
The reusable parts (MCP server, CLI base, hooks, export layer, automation, dossier-transfer package, token cache, daily-limit counter, encrypted store, trial-balance builder, analyses) live in FISCAi Accounting API Core and are vendored in server/vendor/accounting_api_core (python scripts/sync_core.py).
License
Apache License 2.0, see LICENSE and NOTICE. The attribution "Powered by FISCALCI Accounting & Tax (Askin Alci)" must stay intact in every copy and in generated exports.
Octopus is a trademark of its owner; this project is not endorsed by it.
Powered by FISCALCI Accounting & Tax (Askin Alci)
Available Tools
49 toolsoctopus_aankoop_verkoop_boekingAankoop/verkoop-boekingARead-onlyIdempotent
Eén aankoop- of verkoopdocument met lijnen (GET /dossiers/{dossierId}/buysellbookings; daglimiet 10).
Inputs: dagboek (required), dossier_id (required), boekjaar_id (required), documentnummer (required), +1 more.
octopus_aankoop_verkoop_gewijzigdGewijzigde aankoop/verkoop-boekingenBRead-onlyIdempotent
Aankoop/verkoop-documenten gewijzigd sinds een tijdstip (GET /dossiers/{dossierId}/buysellbookings/modified; daglimiet 48).
Inputs: dossier_id (required), boekjaar_id (required), gewijzigd_sinds (required), vers, +2 more.
octopus_afpuntingen_gewijzigdGewijzigde afpuntingenARead-onlyIdempotent
Afpuntingen gewijzigd sinds een tijdstip (GET /dossiers/{dossierId}/balancings/modified; daglimiet 48).
Inputs: dossier_id (required), gewijzigd_sinds (required), vers.
octopus_api_versieAPI-versieARead-onlyIdempotent
Versie van de Octopus REST API (GET /about/version).
Inputs: no named parameters.
octopus_betaallijstBetaallijstBRead-onlyIdempotent
Inhoud van de betaallijst (alleen lezen) (GET /dossiers/{dossierId}/bank/paymentlist; daglimiet 48).
Inputs: dossier_id (required), vers, max_rijen.
octopus_boekingen_gewijzigdGewijzigde boekingslijnen (ruw)ARead-onlyIdempotent
Ruwe sync-call: boekingslijnen gewijzigd sinds een tijdstip. Eerste keer per boekjaar en dagboektype 1-4; daarna boekjaar -1 en type -1. Gebruik bij voorkeur octopus_sync of octopus_boekingslijnen (GET /dossiers/{dossierId}/bookyears/{bookyearId}/bookings/modified; daglimiet 48).
Inputs: dossier_id (required), boekjaar_id (required), dagboektype_id (required), gewijzigd_sinds (required), +2 more.
octopus_boekingslijnenBoekingslijnenBRead-onlyIdempotent
Boekingslijnen van een boekjaar via synchronisatie (eerste keer 4 calls per boekjaar, daarna 1; GET /dossiers/{dossierId}/bookyears/{bookyearId}/bookings/modified; daglimiet 48).
Inputs: dossier_id (required), jaar, vers, periode, +4 more.
octopus_boekjaar_detailBoekjaar (detail)BRead-onlyIdempotent
Details van één boekjaar (GET /dossiers/{dossierId}/bookyears/{bookyearId}; daglimiet 24).
Inputs: dossier_id (required), boekjaar_id (required), vers.
octopus_boekjaar_statusBoekjaarstatusARead-onlyIdempotent
Status van een boekjaar: afgesloten, dagboeken, beschermde/afgesloten perioden en synchronisatie (GET /dossiers/{dossierId}/bookyears; daglimiet 24, GET /dossiers/{dossierId}/bookyears/{bookyearId}/journals; daglimiet 24).
Inputs: dossier_id (required), jaar, boekjaar_id.
octopus_boekjarenBoekjarenBRead-onlyIdempotent
Boekjaren met perioden (GET /dossiers/{dossierId}/bookyears; daglimiet 24).
Inputs: dossier_id (required), vers.
octopus_btw_codesBtw-codesBRead-onlyIdempotent
Btw-codes van het dossier (stamdata: 2 calls per dag, 12 uur gecachet) (GET /dossiers/{dossierId}/vatcodes; daglimiet 2).
Inputs: dossier_id (required), vers, max_rijen.
octopus_btw_nummer_controleBtw-nummer controlerenARead-onlyIdempotent
Offline controle van een Belgisch btw-nummer (modulo 97) en optioneel een VIES-check bij de Europese Commissie (gratis, geen sleutel; alleen het nummer wordt verstuurd).
Inputs: btw_nummer (required), vies.
octopus_dagboek_detailDagboek (detail)BRead-onlyIdempotent
Detail van één dagboek per type A/V/F/D/L (GET /dossiers/{dossierId}/bookyears/{bookyearId}/journals/A/{sequenceNumber}; daglimiet 24).
Inputs: type (required), dossier_id (required), volgnummer (required), boekjaar_id (required).
octopus_dagboekenDagboekenBRead-onlyIdempotent
Dagboeken van een boekjaar (GET /dossiers/{dossierId}/bookyears/{bookyearId}/journals; daglimiet 24).
Inputs: dossier_id (required), boekjaar_id (required), vers, max_rijen.
octopus_dagboeken_gewijzigdGewijzigde dagboekenARead-onlyIdempotent
Dagboeken gewijzigd sinds een tijdstip (GET /dossiers/{dossierId}/journals/modified; daglimiet 48).
Inputs: dossier_id (required), gewijzigd_sinds (required), vers.
octopus_dagboeksaldoSaldo financieel dagboekBRead-onlyIdempotent
Saldo van een (financieel) dagboek (GET /dossiers/{dossierId}/bookyears/{bookyearId}/journals/{journalKey}; daglimiet 24).
Inputs: dagboek (required), dossier_id (required), boekjaar_id (required), vers.
octopus_dashboard_kpisKerncijfersBRead-onlyIdempotent
Kerncijfers uit de samengestelde proefbalans (omzet, kosten, resultaat, liquide middelen, btw-indicatie) plus open debiteuren/crediteuren. Indeling volgens het Belgische MAR.
Inputs: dossier_id (required), jaar, vers, periode, +3 more.
octopus_dossiersDossiersBRead-onlyIdempotent
Dossiers waartoe de gebruiker toegang heeft (GET /dossiers; daglimiet 150).
Inputs: vers, max_rijen.
octopus_dossier_transfer_exportDossieroverdracht per boekjaarBRead-only
Volledig overdrachtspakket per boekjaar voor de volgende boekhouder: rekeningschema, proefbalans, boekingslijnen, openstaande posten, relaties, btw-codes, dagboeken, CONTROL.md, MANIFEST.json (SHA-256) en README. Alleen lezen; hervatbaar.
Inputs: dossier_id (required), export_map (required), zip, bevestig, +3 more.
octopus_dossier_transfer_schattingDossieroverdracht: schattingBRead-onlyIdempotent
Schat het aantal calls per endpoint voor een overdracht per boekjaar en vergelijkt met de resterende daglimieten.
Inputs: dossier_id (required), boekjaren.
octopus_enveloppesBetalingsenveloppesARead-onlyIdempotent
Betalingsenveloppes of de inhoud van één enveloppe (alleen lezen; GET /dossiers/{dossierId}/bank/enveloppes; daglimiet 48).
Inputs: dossier_id (required), max_rijen, enveloppe_id.
octopus_export_datasetDataset exporterenARead-onlyIdempotent
Schrijft een dataset (kpis, saldi, proefbalans, openstaande_posten, boekingslijnen, rekeningschema, relaties) naar CSV, JSON, Excel of Parquet in een lokale map. Schrijft nooit naar Octopus.
Inputs: dataset (required), dossier_id (required), export_map (required), jaar, +4 more.
octopus_export_schemaExportschemaBRead-onlyIdempotent
Kolommen en types van de exportdatasets (voor Power BI, Excel, databanken). Doet geen call.
Inputs: dataset.
octopus_facturen_gewijzigdGewijzigde facturenARead-onlyIdempotent
Facturen uit de factuurmodule, gewijzigd sinds een tijdstip (module moet actief zijn) (GET /dossiers/{dossierId}/invoices/modified; daglimiet 48).
Inputs: dossier_id (required), boekjaar_id (required), gewijzigd_sinds (required), vers, +2 more.
octopus_factuurFactuurBRead-onlyIdempotent
Eén factuur uit de factuurmodule (GET /dossiers/{dossierId}/invoices; daglimiet 400).
Inputs: dagboek (required), dossier_id (required), boekjaar_id (required), documentnummer (required), +1 more.
octopus_financieel_divers_boekingFinanciële/diverse boekingBRead-onlyIdempotent
Eén financieel of divers document met lijnen (GET /dossiers/{dossierId}/financialdiversbookings; daglimiet 10).
Inputs: dagboek (required), dossier_id (required), boekjaar_id (required), documentnummer (required), +1 more.
octopus_financieel_divers_gewijzigdGewijzigde financiële/diverse boekingenARead-onlyIdempotent
Financiële/diverse documenten gewijzigd sinds een tijdstip (GET /dossiers/{dossierId}/financialdiversbookings/modified; daglimiet 48).
Inputs: dossier_id (required), boekjaar_id (required), gewijzigd_sinds (required), vers, +2 more.
octopus_foutcode_uitlegFoutcode uitleggenBRead-onlyIdempotent
Vraagt het voorbeeld-foutobject voor een Octopus-foutcode op (GET /error; daglimiet 100).
Inputs: foutcode (required), taal_id.
octopus_historiekHistoriek (rekening, klant, leverancier, kostenplaats)CRead-onlyIdempotent
Historiekrapport per rekening, klant, leverancier of kostenplaats over een boekjaar- en periodebereik (POST /dossiers/{dossierId}/reports/accounts/history; daglimiet 24).
Inputs: soort (required), dossier_id (required), jaar, vers, +12 more.
octopus_kostenplaatsenKostenplaatsenBRead-onlyIdempotent
Kostenplaatsen, optioneel alleen actieve (GET /dossiers/{dossierId}/costcentres; daglimiet 2).
Inputs: dossier_id (required), vers, max_rijen, alleen_actief.
octopus_leveringsbonnen_gewijzigdGewijzigde leveringsbonnenARead-onlyIdempotent
Leveringsbonnen gewijzigd sinds een tijdstip (GET /dossiers/{dossierId}/deliverynotes/modified; daglimiet 48).
Inputs: dossier_id (required), boekjaar_id (required), gewijzigd_sinds (required), vers, +2 more.
octopus_muntenMuntenBRead-onlyIdempotent
Muntcodes van het dossier (stamdata) (GET /dossiers/{dossierId}/currencies; daglimiet 2).
Inputs: dossier_id (required), vers, max_rijen.
octopus_onafgepunte_facturenOnafgepunte facturenARead-onlyIdempotent
Facturen die nog niet afgepunt zijn (GET /dossiers/{dossierId}/bank/invoices; daglimiet 48).
Inputs: dossier_id (required), vers, max_rijen.
octopus_openstaande_postenOpenstaande postenBRead-onlyIdempotent
Openstaande posten van klanten (debiteuren), leveranciers (crediteuren) of één rekening (POST /dossiers/{dossierId}/reports/clients/open; daglimiet 24).
Inputs: soort (required), dossier_id (required), jaar, vers, +7 more.
octopus_ouderdom_openstaande_postenOuderdom openstaande postenBRead-onlyIdempotent
Ouderdomsanalyse (niet vervallen, 0-30, 31-60, 61-90, >90 dagen, zonder datum, negatief) (POST /dossiers/{dossierId}/reports/clients/open; daglimiet 24).
Inputs: soort (required), dossier_id (required), vers, max_rijen, +1 more.
octopus_productenProductenCRead-onlyIdempotent
Producten (stamdata) (GET /dossiers/{dossierId}/products; daglimiet 2).
Inputs: dossier_id (required), vers, max_rijen.
octopus_productgroepenProductgroepenCRead-onlyIdempotent
Productgroepen (stamdata) (GET /dossiers/{dossierId}/productgroups; daglimiet 2).
Inputs: dossier_id (required), vers, max_rijen.
octopus_proefbalansProefbalansBRead-onlyIdempotent
Proefbalans samengesteld uit rekeningen en saldi per periode (Octopus heeft geen proefbalans-endpoint). Saldo = debet - credit; controle op evenwicht en per klasse (MAR).
Inputs: dossier_id (required), jaar, vers, boekjaar_id, +3 more.
octopus_quotaDaglimietenARead-onlyIdempotent
Gebruik en resterende calls per Octopus-endpoint vandaag (Europe/Brussels). Doet geen call.
Inputs: no named parameters.
octopus_rappelsRappelsARead-onlyIdempotent
Rappelinformatie tot een vervaldatum (GET /dossiers/{dossierId}/rappels; daglimiet 400).
Inputs: dossier_id (required), vervaldatum (required), vers, max_rijen.
octopus_rekeningsaldiSaldi per rekening per periodeCRead-onlyIdempotent
Saldi per rekening per periode via synchronisatie (GET /dossiers/{dossierId}/accounts/amounts/modified; daglimiet 48).
Inputs: dossier_id (required), jaar, vers, rekening, +2 more.
octopus_rekeningschemaRekeningschemaBRead-onlyIdempotent
Grootboekrekeningen van een boekjaar via lokale synchronisatie (GET /dossiers/{dossierId}/accounts; daglimiet 2, daarna GET /dossiers/{dossierId}/accounts/modified; daglimiet 48).
Inputs: dossier_id (required), jaar, vers, max_rijen, +1 more.
octopus_relatiesRelatiesARead-onlyIdempotent
Klanten en leveranciers. Zonder zoekterm via synchronisatie (GET /dossiers/{dossierId}/relations; daglimiet 2, daarna GET /dossiers/{dossierId}/relations/modified; daglimiet 48); met zoekterm rechtstreeks (GET /dossiers/{dossierId}/relations; daglimiet 400).
Inputs: dossier_id (required), naam, vers, extern_id, +3 more.
octopus_statusStatusARead-onlyIdempotent
Configuratie (zonder geheimen), daglimieten, cache en versie. Doet geen call naar Octopus.
Inputs: no named parameters.
octopus_syncSynchroniserenARead-onlyIdempotent
Haalt rekeningen, saldi, relaties en boekingen op en houdt ze lokaal bij via de gewijzigd-sinds-endpoints (eerste keer volledig, daarna alleen wijzigingen). Versleuteld op schijf met OCTOPUS_CACHE_KEY, anders alleen in het geheugen.
Inputs: dossier_id (required), jaar, onderdelen, boekjaar_id.
octopus_sync_statusSynchronisatiestatusARead-onlyIdempotent
Watermerken en aantallen van de lokale synchronisatie. Doet geen call.
Inputs: dossier_id (required).
octopus_vrije_veldenVrije veldenARead-onlyIdempotent
Vrije velden (custom fields) van het dossier (stamdata) (GET /dossiers/{dossierId}/customfields; daglimiet 2).
Inputs: dossier_id (required), vers, max_rijen.
octopus_whoamiAangemelde gebruikerARead-onlyIdempotent
Informatie over de aangemelde Octopus-gebruiker (GET /authentication).
Inputs: no named parameters.
octopus_wisselkoers_ecbECB-wisselkoersBRead-onlyIdempotent
Euro-referentiekoers van de ECB voor een munt (gratis, ter informatie).
Inputs: munt (required), datum.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 49 tools
Most tools map to a distinct endpoint or derived report, and several descriptions explicitly steer the agent (e.g. 'gebruik bij voorkeur octopus_sync of octopus_boekingslijnen'). However, there are multiple layered variants of the same concept — octopus_dagboeken / octopus_dagboeken_gewijzigd / octopus_dagboek_detail / octopus_dagboeksaldo, and octopus_boekjaar_status / octopus_boekjaar_detail / octopus_boekjaren — plus raw sync calls that duplicate what octopus_sync already provides, which invites misselection.
The octopus_ prefix and snake_case are applied consistently, but nearly all names are bare nouns without a verb, so the resource and the action (list vs get vs modified-since vs derive) are not predictable from the name alone. Suffixes like _gewijzigd, _detail and _status carry semantics, but Dutch and English are mixed (octopus_whoami, octopus_sync, octopus_export_dataset, octopus_dashboard_kpis).
At 49 tools this is well past the point where an agent can comfortably hold the surface in context, and much of the bulk comes from low-level 'modified since' variants that are already wrapped by octopus_sync. The domain is broad, but the count could realistically be halved by folding raw sync endpoints into the sync tool.
Coverage is genuinely broad for a read-only accounting connector: master data, bookyears/journals, bookings, invoices, relations, balancing, multiple reports (proefbalans, openstaande posten, ouderdomsanalyse, historiek), export, sync and even dossier transfer. Only minor gaps remain, such as no explicit VAT-return/aangifte dataset and no write operations if the underlying API supports them.
Maintenance
Related MCP Connectors
MCP server for Codat — companies, connections, invoices, bills and financial statements.
Read-only MCP server for Point (Tetra M Labs): demo ledger, trial balance, partners.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
MCP server for ABRA Flexi — accounting, contacts, stock and draft-checked invoice creation.
Related MCP Servers
- FlicenseAqualityBmaintenanceAn MCP server for Actual Budget that connects to your Actual sync server, opens one budget file, and exposes it to MCP clients over streamable HTTP or stdio.341-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that wraps the cebelca.biz accounting API, exposing tools for operations like managing partners, invoices, proformas, and fetching PDFs.2-
- AlicenseNot gradedqualityDmaintenanceHosted MCP server for Exact Online. Ask questions, pull reports, and prepare bookings you approve first.MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for agent-first double-entry bookkeeping for Dutch SMEs, supporting VAT, Peppol BIS 3.0 e-invoicing, and local-first SQLite storage with full audit logging and deterministic JSON output.3Apache 2.0