Skip to content
LangChain

pdf-to-einvoice for LangChain

io.github.smart-byte/pdf-to-einvoice

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

client:LangChain transport:stdio runtime:npm

Install pdf-to-einvoice in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "pdf-to-einvoice": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "pdf-to-einvoice"],
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

pdf-to-einvoice in other clients