Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

pdf-to-einvoice

by smart-byteversion 0.2.0i★ 3iRuns on your computerOfficial site ↗
Registry nameio.github.smart-byte/pdf-to-einvoice

How to install

What it does

Invoice PDF to EN 16931 e-invoice (ZUGFeRD / Factur-X), or invoice data to XRechnung. Runs locally.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Docs, sheets & office work

Use together with

Skills that teach the AI this kind of work; they work alongside this one

MinerU

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

by opendatalab★ 83,7391 skills

Skill · How-to guide

watermarks-remover

A privacy-first app that strips AI watermarks from content you own.

by guillaumemeyer★ 27,5741 skills

Skill · How-to guide

obsidian-skills

Agent skills for Obsidian. Teach your agent to use Obsidian CLI and open formats including Markdown, Bases, JSON Canvas.

by kepano★ 52,906 (whole repo)5 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity7/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score19/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install pdf-to-einvoice. Follow https://mcp.popnx.com/i/smart-byte-pdf-to-einvoice.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server pdf-to-einvoice for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "pdf-to-einvoice": { "command": "npx", "args": [ "-y", "pdf-to-einvoice", "mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the pdf-to-einvoice tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "pdf-to-einvoice": {
          "command": "npx",
          "args": [
            "-y",
            "pdf-to-einvoice",
            "mcp"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use pdf-to-einvoice and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using pdf-to-einvoice or shows a pdf-to-einvoice tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect pdf-to-einvoice yet

pdf-to-einvoice runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect pdf-to-einvoice

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)

B · Others in Docs, sheets & office work that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server pdf-to-einvoice for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user pdf-to-einvoice -- npx -y pdf-to-einvoice mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the pdf-to-einvoice tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user pdf-to-einvoice -- npx -y pdf-to-einvoice mcp
  4. Type /mcp in Claude Code

    You should see pdf-to-einvoice listed as connected

  5. Try it

    Use pdf-to-einvoice and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using pdf-to-einvoice or shows a pdf-to-einvoice tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server pdf-to-einvoice for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "pdf-to-einvoice": { "command": "npx", "args": [ "-y", "pdf-to-einvoice", "mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the pdf-to-einvoice tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use pdf-to-einvoice and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using pdf-to-einvoice or shows a pdf-to-einvoice tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server pdf-to-einvoice for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "pdf-to-einvoice": { "type": "stdio", "command": "npx", "args": [ "-y", "pdf-to-einvoice", "mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the pdf-to-einvoice tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use pdf-to-einvoice and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using pdf-to-einvoice or shows a pdf-to-einvoice tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use pdf-to-einvoice💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user pdf-to-einvoice -- npx -y pdf-to-einvoice mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "pdf-to-einvoice": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-to-einvoice",
        "mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "pdf-to-einvoice": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-to-einvoice",
        "mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "pdf-to-einvoice": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pdf-to-einvoice",
        "mcp"
      ]
    }
  }
}

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
265/wk
Connection
Runs on your computer
Latest versioni
0.2.0
Published to registryi
Nov 14, 2026
Code last changedi
Nov 14, 2026
Maker
smart-byte
Packages
npm: pdf-to-einvoice
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 16, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account smart-byte, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 2 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for pdf-to-einvoice@0.2.0

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/smart-byte-pdf-to-einvoice.svg)](https://mcp.popnx.com/en/servers/smart-byte-pdf-to-einvoice)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Docs, sheets & office worki

  • More stars than 89% of the other 4010 servers in this category
  • Published to the registry more recently than 90% of the other 4010 servers in this category
  • Basic checks equal to or better than 100% of the other 4010 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is pdf-to-einvoice safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 2 days ago, and the latest version (0.2.0) reached the registry 2 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Puter MCP, XcodeBuildMCP, Anki MCP Server, Sosumi, Zapier

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Puter MCP

Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more

by HeyPuterWidely used★ 44.2KUpdated 5 months ago

Runs in the cloud✓ service owner · puter.com

XcodeBuildMCP

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

by getsentryWidely used↓ 130.5K/wk shared package★ 6.6KUpdated 4 months ago

Runs on your computer✓ service owner · xcodebuildmcp.com

Anki MCP Server

MCP server for Anki flashcards: adaptive review, notes, media, and deck management via AnkiConnect.

by ankimcpGrowing↓ 1.1K/wk★ 559Updated 42 days ago

Runs on your computer✓ service owner · ankimcp.ai

Sosumi

Search and read Apple developer documentation, HIG, and WWDC transcripts as Markdown.

by NSHipsterGrowing★ 492Updated 7 days ago

Runs in the cloud✓ service owner · sosumi.ai

Zapier

Connects AI to thousands of apps through one Zapier server, such as Gmail, Google Sheets and Slack. You choose which actions the AI may use.

by zapierGrowing★ 460Updated 4 months ago

Runs in the cloud✓ service owner · zapier.com
Compared with similar ones
This one
pdf-to-einvoice
Puter MCPXcodeBuildMCPAnki MCP ServerSosumiZapier
Runs whereInstalls on your computerRuns in the cloud, nothing to installInstalls on your computerInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoYes
Basic checks3/34/43/33/34/44/4
LicenseMITAGPL-3.0MITMITMITMIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

pdf-to-einvoice

Turn the invoice PDF you already have into an e-invoice (ZUGFeRD / Factur-X, EN 16931) without changing how it looks. In the browser, on the command line, as a TypeScript library, or as an MCP server for AI assistants.

An e-invoice (German: _E-Rechnung_) is an invoice that software can read. The hybrid kind, ZUGFeRD in Germany and Factur-X in France, is a PDF that carries the invoice a second time as XML. Most tools make you write your invoices in their format. This one starts from the PDF you already produce with Word, your invoicing tool or a template:

  • Your layout stays. The pages are not redrawn. The data is attached as factur-x.xml and the file becomes a PDF/A-3.
  • It tells you what is missing. Required fields, sums that do not add up, and numbers, names, addresses, dates and amounts that do not appear on your PDF are listed before anything is created.
  • Nothing is uploaded. The web app works in your browser; the library and the command line tool run on your machine.
  • The common kinds of invoice. Domestic with VAT, several rates, small businesses, reverse charge, intra-community supplies, exports, services to non-EU customers, credit notes and corrections.
  • XRechnung for public bodies, as plain XML or inside the PDF, see XRechnung.
  • Checked against the reference. CI creates each of those kinds and has an independent validator check the result: veraPDF for PDF/A-3, and the official EN 16931, Factur-X and XRechnung rules. What your own PDF brings along is a different matter, see What changes in your PDF.

In the browser

[Open the web app](https://pdf-to-einvoice.app/), or start it locally with npm run site. Drop a PDF, check the data that was read from it, download the e-invoice. The page is in English and German. The site at that address can count page views and created files, never anything of an invoice, with a cookieless Umami we run ourselves; its privacy policy says whether it does. A copy you build yourself counts nothing.

Reading works by pattern matching, without any AI. On request a small language model fills in what the patterns did not find. It runs in your browser (WebGPU) and is downloaded once from Hugging Face (huggingface.co, hf.co) and raw.githubusercontent.com; if you point the page at a model service of your own, the invoice text goes to that service.

Compared with online converters

Many services convert PDF invoices too. The main difference is where your invoice is processed.

typical online converterpdf-to-einvoice
Where is your invoice processed?On the provider's servers: the file is uploaded.On your device, in the browser. Nothing is uploaded.
Who reads the data?Depending on the provider, an AI service in the cloud, also outside the EU, or you type everything in.Rules on your device; on request also a language model that runs in your browser too, or a service whose address you enter yourself.
Where does each value come from?You get a form to correct.What was read from the PDF is marked on it. Numbers, names, addresses, dates, prices and totals are compared with its text: whether they are there, not where.
Account, ads, trackingDepending on the provider, sign-up, ads or a subscription.No sign-up, no ads, no cookies.
Source codeMostly closed.Open (MIT licence): anyone can check what the page does.
For software and AI assistantsMostly an API that invoices are sent to.Library, command line tool and MCP server, all on your own machine.
Checking against the official rule setsSome offer their own validator.Its own plausibility check; not a complete check against the official rule sets.

As a library

npm install pdf-to-einvoice
import { readFile, writeFile } from 'node:fs/promises';

import { createEInvoice } from 'pdf-to-einvoice';

const { pdf, xml, findings } = await createEInvoice({ pdf: await readFile('invoice.pdf'), invoice: { number: 'RE-2026-0042', issueDate: '2026-11-03', deliveryDate: '2026-10-31', dueDate: '2026-11-17', iban: 'DE02120300000000202051', seller: { name: 'Muster Software GmbH', street: 'Beispielweg 1', postalCode: '12345', city: 'Musterstadt', country: 'DE', vatId: 'DE123456789' }, buyer: { name: 'Beispiel AG', street: 'Hauptstraße 5', postalCode: '54321', city: 'Beispielstadt', country: 'DE' }, lines: [{ name: 'Consulting', quantity: 10, unit: 'HUR', unitPrice: 100, vatRate: 19 }], }, });

await writeFile('invoice.einvoice.pdf', pdf);

It works the same in a browser: pdf is a Uint8Array in and out. A bundler needs two things set up, as site/vite.config.ts and site/main.ts do: an alias that points @e-invoice-eu/core to its browser bundle, and the worker of pdf.js.

functionwhat it does
createEInvoice({ pdf, invoice, profile? })checks the data, then returns { pdf, xml, findings, totals }; throws InvoiceError if data is wrong
createXRechnung({ invoice, syntax? })the data as an XRechnung: returns { xml, findings, totals }, no PDF; throws InvoiceError as well
check(invoice, { pdfText?, rules? })returns { findings, totals, invoice? } without creating anything; never throws on incomplete data
extractText(pdf)the text of a PDF, row by row
extractLayout(pdf)the text plus its geometry: blocks (text that stands together), pieces with their position, pages
guessFromText(text, { blocks })reads an invoice without a model: totals that add up, items that add up to them, seller and buyer, labelled values
keepWhatThePdfShows(draft, text)drops every value the PDF does not show: a guard for data read by a small language model
languageOf(text)'de' or 'en': the language an invoice is written in
validateEInvoice(pdf, { pdfText? })looks at an existing e-invoice: profile and embedded data; with pdfText also whether the XML matches the page
readEmbeddedXml(pdf)the XML of an existing e-invoice, or null
calculate(invoice)the totals, following the EN 16931 rounding rules
invoiceJsonSchemaJSON Schema of the invoice data, for forms, validation and language models

A finding is { path, severity, code, message }. An error blocks the e-invoice; a warning asks for a second look.

On the command line

npx pdf-to-einvoice read invoice.pdf --json      # text, guessed values and facts about the PDF

npx pdf-to-einvoice schema # the JSON Schema of the invoice data npx pdf-to-einvoice check invoice.json --pdf invoice.pdf npx pdf-to-einvoice create invoice.pdf invoice.json # writes invoice.einvoice.pdf npx pdf-to-einvoice validate invoice.einvoice.pdf npx pdf-to-einvoice xml invoice.einvoice.pdf # prints the embedded XML npx pdf-to-einvoice xrechnung invoice.json -o invoice.xml # the data as an XRechnung, see below

create and xrechnung never overwrite a file unless you pass --force, and never write over their input.

Many invoices at once

An invoicing program already has what this tool needs: the PDF it renders and the data it renders it from. Pass that data on instead of reading it back from the PDF. Reading is a first draft for a person to check, not something to run unattended over a batch.

import { readFile, writeFile } from 'node:fs/promises';

import { createEInvoice, InvoiceError } from 'pdf-to-einvoice';

for (const { pdfPath, invoice } of invoicesToConvert) { try { const { pdf } = await createEInvoice({ pdf: await readFile(pdfPath), invoice }); await writeFile(pdfPath.replace(/\.pdf$/i, '.einvoice.pdf'), pdf); } catch (error) { if (!(error instanceof InvoiceError)) throw error; console.error(pdfPath, error.findings); // the data has errors: nothing was written } }

On the command line, with a data file next to each PDF (RE-1.pdf and RE-1.json):

for pdf in invoices/*.pdf; do

npx pdf-to-einvoice create "$pdf" "${pdf%.pdf}.json" || echo "not created: $pdf" done

For AI assistants

The MCP server lets an AI assistant do the whole job: read the PDF, fill in the data, show you what is missing, and create the file after you confirm.

{

"mcpServers": { "pdf-to-einvoice": { "command": "npx", "args": ["-y", "pdf-to-einvoice", "mcp"] } } }

Tools: read_invoice_pdf, check_invoice, create_einvoice, create_xrechnung, validate_einvoice, read_einvoice_xml. A summary for language models is in llms.txt.

For agents that work with a shell, such as Claude Code, the folder skills/pdf-to-einvoice is a skill. The agent reads the PDF itself, a scanned one too, compares its reading with what the tool found by pattern, and lets the tool check the data and create the file. Copy the folder into the agent's skills folder; for Claude Code that is ~/.claude/skills/ for all projects or .claude/skills/ in o

Only the beginning is shown; read the rest in the repo