Skip to main content
Glama

datev-extf-mcp

npm CI License: MIT

MCP server that validates and writes DATEV-Format (EXTF) files: Buchungsstapel (booking batches) and Debitoren/Kreditoren (customer and supplier master data). Ask your AI assistant why DATEV rejected an import, or have it turn a list of bookings into a file DATEV accepts.

Deutsch: MCP-Server, der Dateien im DATEV-Format (EXTF) prüft und schreibt. Fragen Sie Ihren KI-Assistenten, warum DATEV einen Import ablehnt: Er bekommt jeden Fehler mit Zeile, Feld und einer verständlichen Erklärung, etwa Punkt statt Komma im Umsatz, fehlende führende Null im Belegdatum oder BU-Schlüssel auf Automatikkonten.

  • Local only. The server runs on your machine and reads files from disk. Nothing is uploaded, and there's no account or API key.

  • Built on @seamless-engineering/datev-extf. Its rules come from DATEV's own material: the Formatbeschreibung on developer.datev.de, the DATEV-Format Prüfprogramm and the #REW import messages.

  • Every file the writer produces passes the validator.

Prefer a browser? The same checks run in the DATEV EXTF validator (English), also without upload.

Install

Needs Node.js 20 or later.

Claude Code

claude mcp add datev-extf -- npx -y @seamless-engineering/datev-extf-mcp

Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json) and most other clients:

{
  "mcpServers": {
    "datev-extf": {
      "command": "npx",
      "args": ["-y", "@seamless-engineering/datev-extf-mcp"]
    }
  }
}

Claude Desktop, one click: download datev-extf-mcp.mcpb from the latest release and open it. Build it yourself with ./scripts/bundle.sh.

Relative file paths resolve against the server's working directory, so absolute paths are the safer choice.

Related MCP server: einvoice-mcp

Tools

Tool

What it does

validate_datev_extf

Checks a file (path) or pasted text (content). Returns header data, error and warning counts, and each finding with line, field, value and an explanation in German (lang: "de", default) or English ("en"). The encoding is only checked for files.

explain_datev_finding

Explains a finding code such as amount-dot or bu-automatic.

write_buchungsstapel

Builds a Buchungsstapel (Formatversion 13) from a header and booking rows (amounts in cents), validates it, and writes it as Windows-1252 to outputPath or returns the CSV text.

list_datev_columns

Lists the 125 Buchungsstapel or 254 Debitoren/Kreditoren columns by position.

Resources: datev-extf://columns/buchungsstapel, datev-extf://columns/debkred, datev-extf://findings/de and datev-extf://findings/en.

Prompt: fix_datev_import validates a file and proposes fixes for the export that produced it.

Example

Why does DATEV reject ~/Downloads/EXTF_Buchungsstapel.csv?

2 errors, 1 warning in 214 data rows (category buchungsstapel, encoding utf-8).
- warning [utf8-without-bom]: The file is UTF-8 without a byte order mark. DATEV then reads it as Windows-1252 and umlauts turn into garbage …
- error line 4 [amount-dot]: Amount “49.90” uses a dot as the decimal separator. DATEV expects a comma: 12.50 becomes 12,50.
- error line 9 [date-leading-zero]: Document date “506” has only three digits: the leading zero is gone. …

Not tax advice

The server checks format, not bookkeeping. It can't tell whether an account or tax key is right for a transaction, and it doesn't pick them when writing. Agree that with your tax advisor.

DATEV and DATEV-Format are trademarks of DATEV eG. This project is not affiliated with or endorsed by DATEV.

Maintenance

Maintained by seamless.engineering for our own production use: we run managed DATEV integrations for shops, payment providers and ERPs, fully EU-hosted. Issues and PRs welcome, no SLA.

Releasing

Bump version in package.json, both versions in server.json and the one in manifest.json, commit, then tag and push: git tag v0.1.1 && git push origin v0.1.1. The release workflow publishes to npm with provenance via trusted publishing, then to the MCP Registry as engineering.seamless/datev-extf.

MIT licence.

Available Tools

4 tools
explain_datev_findingExplain a DATEV EXTF finding codeA
Read-only

Explain what a validate_datev_extf finding code (e.g. amount-dot, bu-automatic, date-leading-zero) means and how to fix it. Placeholders like {value} or {max} stand for values from the specific finding.

Inputs: code (required), lang. Returns: code, disclaimer, explanation

list_datev_columnsList DATEV EXTF columnsA
Read-only

List the columns (line 2) of a DATEV Buchungsstapel (Formatversion 13, 125 columns) or Debitoren/Kreditoren file (254 columns), numbered by position. Use it to map export fields to DATEV columns or to find a column named in a finding.

Inputs: format (required). Returns: asOf, format, columns

validate_datev_extfValidate a DATEV EXTF fileA
Read-only

Check a DATEV-Format (EXTF) CSV file, e.g. EXTF_Buchungsstapel.csv or a Debitoren/Kreditoren export, before importing it into DATEV or after DATEV rejected it. Returns every problem with line, field and a plain-language explanation in German or English: dot instead of comma in amounts, missing leading zeros in Belegdatum, BU-Schlüssel on automatic accounts, account length, encoding, header errors and more. Pass a file path (preferred, the encoding is checked too) or the file content.

Inputs: lang, path, content. Returns: rows, errors, header, category, +6 more

write_buchungsstapelWrite a DATEV BuchungsstapelA
DestructiveIdempotent

Create a DATEV-Format Buchungsstapel (EXTF, Formatversion 13) from booking rows, ready for import into DATEV Rechnungswesen or DATEV Unternehmen online. The result is checked with the validator before it's returned. With outputPath the file is written as Windows-1252, the encoding DATEV expects; without it the CSV text is returned. The tool formats bookings, it doesn't choose accounts or tax keys: take those from the user or their tax advisor.

Inputs: rows (required), header (required), lang, outputPath. Returns: csv, path, rows, report, +1 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a single, distinct responsibility: listing columns, validating files, explaining validation findings, and writing a Buchungsstapel. The only close pair is validate/explain, but one performs checks while the other only resolves finding codes, so there is no real ambiguity.

    Naming Consistency5/5

    All tools follow a consistent snake_case verb_noun pattern: list_datev_columns, validate_datev_extf, explain_datev_finding, write_buchungsstapel. The verbs are clear, consistently placed first, and there is no mixing of naming conventions.

    Tool Count5/5

    Four tools is well-scoped for this focused DATEV EXTF helper server. Each tool covers a distinct part of the workflow and none feels redundant or unnecessary.

    Completeness4/5

    The Buchungsstapel lifecycle is well covered: list columns, validate, explain errors, and write a pre-validated file. However, list_datev_columns and validate_datev_extf also cover Debitoren/Kreditoren files, but there is no corresponding writer for that format, leaving a noticeable gap.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      MCP server for DACH accounting automation. Connect AI assistants to sevDesk and Lexoffice — create invoices, manage contacts, handle bookings and vouchers for German-speaking businesses.
      15
      60 npm
      -
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for DACH e-invoicing. Create XRechnung (UBL) and ZUGFeRD 2.3 (Factur-X CII) invoices, validate against EN 16931 rules, extract data from XML, and convert between UBL, CII and JSON formats.
      6
      62 npm
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A local MCP server for analyzing DATEV bookkeeping data in natural language. It reads EXTF export files locally and provides tools for balances, open items, and booking search.
      6
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for German e-invoice compliance (XRechnung 3.0 & ZUGFeRD 2.x) enabling AI agents to validate, generate, parse, and check compliance of electronic invoices per EN 16931.
      6
      1
      MIT