mad-invoice-mcp
Enables creation and management of invoices with JSON storage and LaTeX-based PDF rendering. Supports draft creation and professional PDF generation through customizable LaTeX templates.
README
MAD invoiceMCP server
Mechatronics Advisory & Design (M.A.D. Solutions) – JSON → LaTeX → PDF invoicing server with local file storage.
<img width="2048" height="786" alt="logo" src="https://github.com/user-attachments/assets/203a5a7b-4802-4edc-8250-ddaf7143186c" />
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 directory - no 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
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=1
Quickstart
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-mcp
Then open the web UI in your browser:
http://localhost:8000/invoices
The 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.txt -
Start 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
- Concepts & storage model
- Docker details
- MCP client configuration
- Tools reference
- Advanced deployment (SSE, OpenWebUI, systemd, reverse proxy)
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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.