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 集成