mad-invoice-mcp
Provides tools for creating invoice drafts and rendering them to PDF using LaTeX templates, with support for custom template modifications and automated pdflatex compilation.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MAD invoiceMCP server
Mechatronics Advisory & Design (M.A.D. Solutions) – JSON → LaTeX → PDF invoicing server with local file storage.
What is this?
MAD invoiceMCP is a small Model Context Protocol (MCP) server that lets you create, store, and render invoices for a single company using JSON data and LaTeX templates.
It is designed for local, single‑user workflows:
one repository and one
.mad_invoice/data directoryno multi‑tenant or multi‑project switching
no external database or cloud backend
Best fit: freelancers and small businesses who want to generate invoices on their own machine.
Not designed as:
a multi‑tenant system for tax advisors or agencies with many clients
a hosted SaaS product
a full accounting or ERP system
Related MCP server: Invompt MCP
Key features
JSON → LaTeX → PDF invoice rendering pipeline
draft → final lifecycle with immutable final invoices
payment status tracking (
open,paid,overdue,cancelled)optional VAT handling and German §19 UStG ("small business") mode
language‑aware labels and dates (German / English)
simple web overview and detail pages for existing invoices
MCP tools for listing, reading, updating, and rendering invoices
Requirements
Python: 3.10 or newer (tested with 3.11)
LaTeX: a recent TeX Live release (2024 or newer recommended)
or use the Docker image, which already includes TeX Live
Optional: Docker, if you prefer not to manage Python and LaTeX locally
Write‑capable tools are disabled by default. To allow creating or updating invoices, set:
export MCP_ENABLE_WRITES=1Quickstart
Option A – Docker (recommended for a first try)
From the repository root:
docker build -t mad-invoice-mcp .
docker run --rm \
-p 8000:8000 \
-v $(pwd)/.mad_invoice:/app/.mad_invoice \
-e MCP_ENABLE_WRITES=1 \
mad-invoice-mcpThen open the web UI in your browser:
http://localhost:8000/invoicesThe container image already includes a recent TeX Live installation, so you do not need LaTeX on the host.
Option B – Local MCP server (stdio)
Use this path if you have a compatible TeX Live installation on your machine.
Create a virtual environment and install dependencies:
python -m venv .venv source .venv/bin/activate # on Windows: .venv\Scripts\activate pip install -r requirements.txtStart the MCP server over stdio:
MCP_ENABLE_WRITES=1 python -m bridge --transport stdio
Most MCP‑capable clients (Claude Desktop, Cline, Continue, etc.) can then be pointed at this server using their standard command/args configuration. See MCP client configuration for concrete examples.
Where to go next
Code generation notice
Most of this repository's code was originally produced with AI assistants. The project is maintained and reviewed by a human, but you should still treat it as experimental software and review it carefully before using it in production.
License
See LICENCE for licensing details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
PDFs, images and e-invoices (XRechnung, ZUGFeRD) from templates and JSON, rendered in the EU.
HTML or URL to PDF with headless Chrome, and invoice/receipt/quote PDFs from JSON.
Free invoice drafts, templates and direct PDF generation for AI agents. No account needed.
Create, validate, convert & extract compliant e-invoices (UBL, Factur-X, ZUGFeRD, XRechnung)
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables the generation of professional PDF invoices and their distribution via email using customizable templates. It allows users to create, manage, and send invoices with standard business fields like tax rates and line items through natural language.37 npm2MIT
- AlicenseBqualityBmaintenanceEnables users to interact with Invompt's public invoice API to draft and create professional invoices. It provides tools for generating Invoice Markup Language (IML) YAML and processing it through various invoice templates.1MIT

Dokmatiq DocGenofficial
AlicenseAqualityCmaintenancePDF/DOCX/Excel generation from HTML/Markdown with stationery overlay, ZUGFeRD/XRechnung e-invoicing, digital signing, form filling, and AI receipt OCR with DATEV/SKR03 export.40MIT- FlicenseNot gradedqualityCmaintenanceEnables AI agents to create and manage e-invoices through natural language, supporting EU compliance formats like ZUGFeRD and XRechnung, as well as US plain PDF invoices.7-