# rechnungsapi-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/Rechnungsapi/rechnungsapi-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 79  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/rechnungsapi-mcp

## Description
Official MCP server for RechnungsAPI (rechnungsapi.de), the ZUGFeRD & XRechnung API: let AI agents create, validate and analyze e-invoices.

## Tools
Capabilities this server exposes over MCP:

- **create_zugferd_invoice** — Create a ZUGFeRD PDF/A-3 from structured invoice JSON + a visual PDF
- **create_zugferd_invoice_from_template** — Create a ZUGFeRD invoice PDF from structured invoice JSON with one of your own invoice templates; an idempotency key makes retries safe
- **create_xrechnung** — Create an XRechnung XML from structured invoice JSON
- **create_zugferd_pdf** — Embed an existing XRechnung XML into a visual PDF
- **extract_xrechnung_from_zugferd** — Extract the embedded XRechnung XML from a ZUGFeRD PDF as JSON
- **validate_xrechnung_xml** — Validate an XRechnung XML against schema and business rules
- **validate_zugferd_pdf** — Validate a ZUGFeRD PDF's embedded XML
- **analyze_pdf_invoice** — Extract structured invoice JSON from a scanned/PDF invoice
- **analyze_pdf_invoice_async_submit** — Async analysis for large files
- **create_zugferd_from_pdf** — Convert a PDF/scan directly into a validated ZUGFeRD PDF
- **send_email** — Send a standalone email with attachments and `{placeholders}` (needs the email delivery add-on)
- **resend_email** — Resend an earlier email to its original recipients, using the `resendToken` from the earlier response

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "rechnungsapi-mcp": {
    "command": "npx",
    "args": ["-y","rechnungsapi-mcp"],
    "env": {
      "RECHNUNGSAPI_TOKEN": "",
      "RECHNUNGSAPI_BASE_URL": "",
      "RECHNUNGSAPI_V2_BASE_URL": "",
      "PORT": ""
    }
  }
}
```

**Requires environment variables:** `RECHNUNGSAPI_TOKEN`, `RECHNUNGSAPI_BASE_URL`, `RECHNUNGSAPI_V2_BASE_URL`, `PORT` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/rechnungsapi-mcp/readme_

