Rechnungsapi MCP logo

Rechnungsapi MCP

Connect AI assistants to RechnungsAPI for creating, validating, extracting, and analyzing ZUGFeRD and XRechnung e-invoices.

Install Rechnungsapi MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "rechnungsapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "rechnungsapi-mcp"
      ],
      "env": {
        "RECHNUNGSAPI_TOKEN": "YOUR_VALUE_HERE",
        "RECHNUNGSAPI_BASE_URL": "YOUR_VALUE_HERE",
        "RECHNUNGSAPI_V2_BASE_URL": "YOUR_VALUE_HERE",
        "PORT": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

rechnungsapi-mcp connects AI assistants to RechnungsAPI, the REST API for ZUGFeRD and XRechnung e-invoicing. Its MCP tools create and validate electronic invoices, convert PDFs, extract invoice data, and analyze scanned documents. Use the hosted Streamable HTTP endpoint or run the package locally over stdio with Node.js 20 or newer. It fits conversational invoice workflows and single-file processing; bulk or large-file workloads are better handled through the SDK or REST API.

Use cases

  • Create XRechnung XML from an order and line-item description
  • Validate an XRechnung and explain schema or business-rule errors
  • Convert a scanned invoice into a validated ZUGFeRD PDF
  • Extract structured invoice data from a PDF or photo
  • Send an invoice PDF by email with placeholders

Key features

  • Create ZUGFeRD PDF/A-3 invoices
  • Generate and validate XRechnung XML
  • Extract invoice data from PDFs and scans
  • Convert PDFs into validated ZUGFeRD invoices
  • Support asynchronous analysis for large files
  • Send and resend invoice emails

Tools12

What Rechnungsapi MCP lets your agent do. Expand a tool for its parameters.

Self-reported~265 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

10/10 checks healthy over the last 39d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · rechnungsapi-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads79Package downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Tools exposed12Callable tools this server registers over MCP.

How Rechnungsapi MCP works

What rechnungsapi-mcp does

rechnungsapi-mcp exposes RechnungsAPI operations as Model Context Protocol tools. The service works with German and EU e-invoice formats, including ZUGFeRD, XRechnung, and Factur-X. Agents can turn structured invoice data into XRechnung XML or ZUGFeRD PDF/A-3 files, validate generated documents, and read invoice information from PDFs, scans, or photos.

The toolset also supports converting an existing PDF into a validated ZUGFeRD invoice, embedding XRechnung XML into a visual PDF, and extracting embedded XML from ZUGFeRD documents. Email delivery tools can send attachments or resend an earlier message when the email delivery add-on is enabled.

How it works

Each MCP tool maps to a RechnungsAPI endpoint. Invoice creation tools accept structured invoice JSON, while document-analysis tools accept file content. Files are transferred as base64 text, which is suited to individual invoices. Large files can use asynchronous analysis through submission and status operations.

The server can use a hosted endpoint at https://mcp.rechnungsapi.de/mcp, where each HTTP request carries its own Bearer token. It can also run locally as a stdio process, using one token loaded at startup. An HTTP deployment can serve multiple users by creating an isolated API client from each request's authorization header.

Setup and configuration

Create a RechnungsAPI account and copy the token from the Profile area. For hosted use, configure an MCP client with the Streamable HTTP URL and an Authorization: Bearer header. For local use, configure the client to run npx -y rechnungsapi-mcp and provide RECHNUNGSAPI_TOKEN in the process environment. Local execution requires Node.js 20 or newer.

The package also supports these configuration variables:

  • RECHNUNGSAPI_BASE_URL overrides the gateway base URL, which can be useful for a staging or self-hosted gateway.
  • RECHNUNGSAPI_V2_BASE_URL overrides the host used by the v2 analyzer.

For a shared deployment, build the project and run its HTTP start command, or use the supplied Docker and Docker Compose configuration. The HTTP process listens on the PORT environment variable, defaulting to port 3939.

Tools and capabilities

  • Create ZUGFeRD PDF/A-3 files from structured invoice data and a visual PDF.
  • Create ZUGFeRD invoices from structured data and an own template, with idempotency support for safe retries.
  • Generate XRechnung XML and embed existing XML into visual PDFs.
  • Validate XRechnung XML against schemas and business rules, or validate the embedded XML in a ZUGFeRD PDF.
  • Extract structured invoice JSON from PDFs, scans, and photos, including asynchronous processing for larger files.
  • Send standalone emails with attachments and placeholders, or resend messages using a returned resend token.

Limitations and notes

The server stores no invoices; its logs contain request metadata such as path, status, and timing rather than invoice data, tool arguments, or tokens. Base64 file transfer is intended for single-invoice interactions, not bulk processing. Email sending requires the separate email delivery add-on. The project is MIT licensed and is built on the rechnungsapi-sdk package.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Rechnungsapi MCP

rechnungsapi-mcp is an MCP server that connects AI assistants to RechnungsAPI for German and EU e-invoicing. Its main tools create and validate ZUGFeRD and XRechnung documents, extract invoice data from PDFs or scans, convert PDFs into ZUGFeRD invoices, and send emails with invoice attachments.

Run it locally with `npx -y rechnungsapi-mcp` and set `RECHNUNGSAPI_TOKEN` in the MCP client's environment. Node.js 20 or newer is required. Alternatively, connect to the hosted Streamable HTTP endpoint at `https://mcp.rechnungsapi.de/mcp` with a Bearer token.

Yes, rechnungsapi-mcp works with Claude Desktop through its stdio configuration. Add an MCP server entry that runs `npx -y rechnungsapi-mcp` and provide your RechnungsAPI token as `RECHNUNGSAPI_TOKEN`.

Yes, the `create_zugferd_from_pdf` tool converts a PDF or scan directly into a validated ZUGFeRD PDF. The server also provides separate tools for analyzing PDF invoices, creating ZUGFeRD files from structured data, and embedding existing XRechnung XML.

Yes, it provides asynchronous analysis submission and status tools for large files. Files are sent as base64 text, while bulk or large-file workflows are recommended through the RechnungsAPI SDK or REST API rather than conversational MCP requests.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRechnungsapi MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/rechnungsapi-mcp?style=directory)](https://allmcps.com/mcp/rechnungsapi-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/rechnungsapi-mcp"><img src="https://allmcps.com/api/badge/rechnungsapi-mcp?style=directory" alt="Rechnungsapi MCP on AllMCPs" /></a>