FEC Checker (French accounting file pre-audit)

io.github.vincenz-cdf由 GitHub 帳號 vincenz-cdf 發布v0.1.2更新於 Nov 1, 2026

Validate French FEC accounting files and flag audit risks before a tax audit.

發布方自己的服務:audit.domains - Domain Valuation

已驗證Streamable HTTP可網頁執行金融開發者工具

概覽

AI 產生的概覽

檢查法國 FEC 會計匯出檔的結構錯誤,讓助理在稽核前核驗本機檔案的格式。

可以做什麼
  • 檢查本機 FEC 檔案結構,回傳與命令列工具相同的 JSON 結果
  • 依 SIRENFECAAAAMMJJ.txt 規則驗證檔名,並檢查編碼、分隔符號與 18 欄表頭
  • 回報欄位格式錯誤,例如日期無效或格式錯誤、金額問題、必填欄位或成對欄位缺漏
  • 每次呼叫針對一個檔案路徑回傳錯誤、警告與統計資訊
適用情境
當你從法國會計軟體匯出 FEC 檔案,想在交給會計師或面對稅務稽核前做一次快速結構檢查時適用。它只是技術格式檢查,不構成稅務建議,也不代表檔案已獲認證。
執行需求
本機 MCP 伺服器透過 uvx 或 pipx 從 PyPI 套件 fec-lint 執行,需要 Python 工具鏈,並讀取本機檔案路徑。託管於 Apify 的版本需要 Apify OAuth 登入,代理可透過 x402 依檔案付費。
安裝前請注意
免費本機版本只檢查結構;餘額、編號與風險訊號僅在付費託管版本提供,依檔案計費,代理可用 x402 付款。README 說明它不認證檔案,也不取代會計師複核。託管版本會把檔案傳送到 Apify,本機版本則資料不離開本機。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 FEC Checker (French accounting file pre-audit),將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.vincenz-cdf%2Ffec-lint/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "fec-checker-french-accounting-file-pre-a": {
      "type": "http",
      "url": "https://mcp.apify.com/?tools=highfiddle/fec-checker"
    }
  }
}

README

fec-lint

English · Français

Technical check, not tax advice. fec-lint checks the structure of a file against the published FEC format. It does not certify a file or replace an accountant's review.

Contrôle technique, pas un conseil fiscal. fec-lint vérifie la structure d'un fichier au regard du format FEC publié. Il ne certifie pas un fichier et ne remplace pas la revue d'un expert-comptable.


English

Free structural linter for French FEC files (Fichier des Écritures Comptables, art. A47 A-1 LPF), as a command line tool and an MCP server.

What file does it check?

The FEC your accounting software exports (look for "FEC" or "Export DGFiP" in its year-end menu); you don't build it by hand. It is a text file named SIRENFECAAAAMMJJ.txt (SIREN, FEC, closing date), tab- or pipe-separated, with this header and one line per accounting line:

text
JournalCode|JournalLib|EcritureNum|EcritureDate|CompteNum|CompteLib|CompAuxNum|CompAuxLib|PieceRef|PieceDate|EcritureLib|Debit|Credit|EcritureLet|DateLet|ValidDate|Montantdevise|IdeviseVE|Ventes|000039|20250610|411000|Clients|CLI001|Atelier Durand|F2025-06|20250610|Facture F2025-06 Atelier Durand|3960,00|0,00|||20250610||

Dates are AAAAMMJJ; amounts use a decimal comma and no thousands separator. CompAuxNum/CompAuxLib, EcritureLet/DateLet and Montantdevise/Idevise may be empty, but only in pairs; every other field is required. The FEC Checker page has the full column-by-column table. Synthetic examples are in tests/fixtures/.

Install

bash
pipx install fec-lint

Command line

bash
fec-lint 123456782FEC20251231.txt
text
123456782FEC20251231.txt: FAILED (encoding utf-8, separator pipe, lines 214)  error date_invalid x3: Non-existent date in EcritureDate. - line(s) 21, 22, 23  error date_format x3: Wrong date format in EcritureDate (expected AAAAMMJJ). - line(s) 64, 65, 66Structure has errors. Full pre-audit (balance, numbering, risk signals): https://apify.com/highfiddle/fec-checker
  • --json prints the full result: {ok, file, errors[], warnings[], stats}.
  • --name 123456782FEC20251231.txt sets the name checked against SIRENFECAAAAMMJJ.txt.
  • --quiet hides the last line.
  • Exit code: 0 when the structure is OK, 1 on errors, 2 when a file cannot be read. Several files can be given at once.
  • A .zip holding exactly one .txt FEC is unpacked first.

MCP server

Add it to your MCP client (Claude Desktop, Claude Code, Cursor…):

json
{    "mcpServers": {        "fec-lint": {            "command": "uvx",            "args": ["--from", "fec-lint", "fec-lint-mcp"]        }    }}

Without uv, install with pipx install fec-lint and use "command": "fec-lint-mcp". The server exposes one tool, lint_fec(path), which takes a local file path and returns the same JSON as --json.

Full pre-audit as a hosted MCP server. The paid FEC Checker (balance, numbering, risk signals, AI fix list) runs on Apify and is reachable over MCP. Users sign in with Apify OAuth; agents can pay with x402 by adding &payment=x402:

bash
claude mcp add --transport http fec-checker "https://mcp.apify.com/?tools=highfiddle/fec-checker"

Free vs full pre-audit

Checkfec-lint (free)FEC Checker on Apify
File name SIRENFECAAAAMMJJ.txt, SIREN key✅✅
Encoding, separator, 18 headers✅✅
Field formats: dates, amounts, mandatory fields, pairs✅✅
Balance per entry and for the whole file—✅
EcritureNum gaps and duplicates, ValidDate chronology—✅
Risk signals: weekends, holidays, round amounts, Benford, cash 53x, suspense 471, after year end—✅
Verdict, 0-100 score, AI-written fix list (FR/EN)—✅
Runslocally, nothing leaves your machineon Apify, pay per file

Français

Linter structurel gratuit pour les FEC (Fichier des Écritures Comptables, art. A47 A-1 LPF), en ligne de commande et en serveur MCP.

Quel fichier contrôle-t-il ?

Le FEC exporté par votre logiciel comptable (cherchez « FEC » ou « Export DGFiP » dans le menu de clôture) ; vous ne le construisez pas à la main. C'est un fichier texte nommé SIRENFECAAAAMMJJ.txt (SIREN, FEC, date de clôture), séparé par tabulations ou barres verticales, avec l'en-tête et le type de ligne montrés plus haut.

Les dates sont au format AAAAMMJJ ; les montants utilisent la virgule décimale, sans séparateur de milliers. CompAuxNum/CompAuxLib, EcritureLet/DateLet et Montantdevise/Idevise peuvent être vides, mais seulement par paires ; tous les autres champs sont obligatoires. La page FEC Checker détaille chaque colonne. Des exemples fictifs sont dans tests/fixtures/.

Installation

bash
pipx install fec-lint

Ligne de commande

bash
fec-lint 123456782FEC20251231.txt
  • --json affiche le résultat complet : {ok, file, errors[], warnings[], stats}.
  • --name 123456782FEC20251231.txt indique le nom à contrôler selon SIRENFECAAAAMMJJ.txt.
  • --quiet masque la dernière ligne.
  • Code de sortie : 0 si la structure est correcte, 1 en cas d'erreur, 2 si un fichier est illisible. Plusieurs fichiers peuvent être passés à la fois.
  • Un .zip contenant un seul FEC .txt est décompressé d'abord.

Les messages sont en anglais ; les codes de règle (date_invalid, header_missing…) sont stables.

Serveur MCP

Ajoutez-le à votre client MCP (Claude Desktop, Claude Code, Cursor…) avec la configuration ci-dessus. L'outil lint_fec(path) prend le chemin d'un fichier local et renvoie le même JSON que --json.

Pré-audit complet en serveur MCP hébergé. Le FEC Checker payant (équilibre, numérotation, signaux de risque, plan de correction IA) tourne sur Apify et s'utilise en MCP via https://mcp.apify.com/?tools=highfiddle/fec-checker (connexion Apify OAuth ; les agents peuvent payer en x402 avec &payment=x402).

Gratuit ou pré-audit complet

Contrôlefec-lint (gratuit)FEC Checker sur Apify
Nom SIRENFECAAAAMMJJ.txt, clé du SIREN✅✅
Encodage, séparateur, 18 colonnes✅✅
Formats : dates, montants, champs obligatoires, couples de champs✅✅
Équilibre par écriture et du fichier—✅
Ruptures et doublons d'EcritureNum, chronologie de ValidDate—✅
Signaux de risque : week-ends, jours fériés, montants ronds, Benford, caisse 53x, attente 471, après clôture—✅
Verdict, score 0-100, plan de correction rédigé par IA (FR/EN)—✅
Exécutionen local, rien ne quitte votre machinesur Apify, paiement par fichier

Development

bash
python -m venv .venv.venv/bin/pip install -e ".[test]"   # Windows: .venv\Scripts\pippytest

The fixtures in tests/fixtures/ are synthetic FEC files (fictitious SIREN 123456782). MIT license.

來源:README.md,提交 474e644

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

2
  1. v0.1.2最新Nov 1, 2026
  2. v0.1.1Nov 1, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Audit 整合