Skip to main content
Glama
InvoicePDFs MCP Server

InvoicePDFs MCP Server

Official
by invoicepdfs

InvoicePDFs MCP server

Gives an AI agent the InvoicePDFs API as tools: render a document, check it for e-invoicing compliance, manage customers, and reach the rest of the API on demand.

It is an ordinary HTTPS client of the public API. No database, no extra service to deploy, nothing added to render.yaml. It runs on your machine.

Use it

Add to your MCP client's configuration — Claude Desktop, Cursor, or anything else that speaks MCP over stdio:

{
  "mcpServers": {
    "invoicepdfs": {
      "command": "npx",
      "args": ["-y", "@invoicepdfs/mcp"],
      "env": { "INVOICEPDFS_API_KEY": "inv_live_..." }
    }
  }
}

Create a key at https://invoicepdfs.com. INVOICEPDFS_BASE_URL overrides the host if you are pointing at a local server.

An API key is not scoped. Any key you give this server can do anything your account can, including deleting data. That is a property of the key, not of this server — there is no narrower credential to hand it. Your MCP client will still ask before each tool call.

Related MCP server: GTM MCP Server

What it offers

Thirty tools. Twenty-seven name a common operation outright — document_render, document_create, compliance_check, customer_list and so on — document_transition covers the seven-state document lifecycle through one to argument, and two reach everything else:

  • find_operation — search all 161 operations by what they do and get the full input schema of each match.

  • call_operation — run one of them.

The whole API is reachable; only the common path is listed up front. Every client caps the tool list (Cursor around 40, Junie 100, Copilot 128), so a server advertising 161 tools would either break or crowd out every other server you have connected.

document_render renders asynchronously and waits for the result, so it returns a finished render rather than a queued one. Rendering is CPU-bound and served by a single worker, so prefer one render at a time over starting many in parallel.

How it is built

The tool surface is built from openapi.json at startup. src/operations.ts reads the spec and derives each operation's name, input schema and description; src/client.ts is one executor that can run any of them. Adding an endpoint to the API adds a working tool with no code change here.

It is built at runtime rather than generated into a committed file on purpose. The first version of this emitted 16,000 lines of TypeScript that had to be regenerated and committed whenever the API changed — a second copy of the spec, with its own way of going stale. Parsing the spec costs about 10ms, once, in a process that starts once.

Only three things are written by hand:

File

Why it cannot come from the spec

src/manifest.ts

Which operations are promoted, and what they are called

src/tools/documentRender.ts

Async default and poll-until-terminal

src/tools/findOperation.ts

The search, and the lazy load

Tool descriptions come from the API's handler docstrings, through the spec. They are not written here, because prose about an operation kept in two places drifts.

Develop

npm install
npm test        # drift and tool-surface checks
npm run build   # compiles
npm pack        # vendors openapi.json into the tarball, then cleans up

This repository is generated. The source lives in the InvoicePDFs API monorepo under mcp/, and every commit here is a sync from there — so a change made in this repository is overwritten by the next one. Open an issue instead and it gets made where it survives.

The reason for the split is that the two things want different homes. The code belongs next to the API it describes: tool descriptions are the API handlers' own docstrings, and npm test fails when the manifest names an operation the spec no longer has, which is a guard that only works if it runs in the pull request that renames the handler. The package belongs in a public repository, because npm build provenance requires one, and because a registry listing with no readable source behind it is worth less.

So the drift guard runs upstream on every API change, and this repository publishes.

Available Tools

30 tools
business_profile_createBInspect

Create an identity to issue documents as: the seller side.

legal_name, tax_id, address and bank details are what appears as the issuer, and what an e-invoicing ruleset checks. Distinct from a branding profile, which sets colours and a logo and says nothing about who you are.

Inputs: legal_name (required), email, phone, tax_id, +11 more.

business_profile_listCInspect

The identities you issue documents as, newest first.

One per entity you bill from — a business with two trading names or two tax registrations needs two. For how documents look rather than who issues them, see the branding profiles.

Inputs: limit, cursor.

call_operationBInspect

Run any operation returned by find_operation, by name.

Inputs: operation (required), arguments.

compliance_checkAInspect

Check a document against an e-invoicing ruleset without rendering it.

Costs no renders: nothing is stored and no PDF is produced, so a caller can check every invoice they are about to send rather than discovering the problem from a rejection weeks later.

Two tiers run, and both are reported. The mandatory-field check names a field of the request you can go and change. Schematron then serializes the document and runs the published rules at a pinned version over the result — the same artefacts an access point runs — so a finding here quotes the rule id a rejection notice would quote.

Read valid together with fully_checked: valid says nothing fatal was found, and rulesets says what actually ran to find it.

Inputs: data (required), profile (required), document_type.

compliance_xmlAInspect

The e-invoicing XML for a document, without storing anything.

Takes the same body as /validate-compliance, and the pairing is the point: check first, then take the XML once it passes. Nothing here validates against the ruleset — a document missing mandatory fields serialises to XML missing those elements, which is a more useful artefact to look at than a refusal, and /validate-compliance is where the refusal belongs.

The syntax is not a parameter. It follows from the profile, because a profile already is a syntax plus a ruleset, and asking a caller for both is asking them to know that Peppol means UBL.

Inputs: data (required), profile (required), document_type.

customer_createBInspect

Store a customer you can bill repeatedly.

tax_id and electronic_address are what e-invoicing needs: a buyer VAT number and the Peppol identifier a receiver is addressed by. Neither is required for a plain PDF.

Inputs: name (required), email, phone, tax_id, +6 more.

customer_getDInspect

One stored customer.

Inputs: customer_id (required).

customer_listCInspect

The people and companies you bill, newest first.

Cursor-paginated. A customer is optional — the stateless render endpoints take a buyer inline — but storing one lets a document reference it by id.

Inputs: limit, cursor.

customer_updateAInspect

Change a stored customer.

Only the fields you send are changed — omit one to leave it alone, send null to clear it. Documents already issued keep the details they were issued with; this does not rewrite them.

Inputs: customer_id (required), name, email, phone, +7 more.

document_calculateAInspect

Compute the totals for a document without storing or rendering it.

Returns the same breakdown — subtotal, discounts, tax, shipping, total — that a render would print, so a checkout page can show a figure before committing to one.

Inputs: data (required), document_type.

document_createCInspect

Create a document in draft.

Totals are computed and stored at creation, so the figures you read back are the ones that were issued rather than a recalculation. Nothing is rendered — use create_document_render once the document is final.

Inputs: number (required), currency (required), issue_date (required), line_items (required), +20 more.

document_download_renderAInspect

Fetch the PDF, by signature or by API key.

Two ways in, and the signature is checked first — before the row is looked up — so a forged token cannot be used to tell a real render id from an invented one. It also means the token path costs no auth work at all, which matters because this is the one endpoint a browser hits directly.

Inputs: render_id (required), token.

document_duplicateAInspect

Copy a document into a new draft.

The copy gets the next available number rather than the original's, so it can be finalized without colliding with the document it came from.

Inputs: document_id (required).

document_getCInspect

One document, with the totals stored when it was created.

Inputs: document_id (required).

document_get_renderAInspect

One render: its status, its totals, and how to download it.

download_url and expires_at are null until the render is completed, and a failed render carries a failure explaining why. Poll this after an asynchronous render.

Inputs: render_id (required).

document_listAInspect

Every document on the account, newest first.

Cursor-paginated: pass the next_cursor from a response to fetch the page after it. Filter by document_type or status to narrow the list.

Inputs: limit, cursor, status, document_type.

document_renderAInspect

Render a document supplied inline, storing nothing but the PDF.

The stateless path: pass the whole document in the body and get a PDF back, with no customer, business profile or stored document required. To render a document that already lives here, use create_document_render.

Returns JSON with a signed download_url by default. Ask for the bytes directly with output.delivery: "binary" or Accept: application/pdf.

This tool renders asynchronously and waits for the result, so it returns the finished render rather than a queued one. Rendering is CPU-bound and served by a single worker: prefer one call at a time over starting many renders in parallel.

Inputs: data (required), template (required), output, document_type, +2 more.

document_render_storedAInspect

Render a stored document to a PDF.

Use this when the document lives here. To render one you hold yourself, without storing it, use render_document.

The response carries a signed download_url that needs no API key, valid until expires_at.

Inputs: document_id (required), format, page_size, expires_in, +3 more.

document_sendAInspect

Queue the document to be emailed, with its PDF attached.

The document must be finalized; sending a draft is a 409. attach_pdf defaults to true, and on that path a render must already exist — the email attaches an existing render rather than making one — so the natural sequence is create, finalize, render, send, and sending straight after finalizing is refused with No render exists for this document. Send with attach_pdf: false and no render is needed, because none is attached.

Returns 202 with the delivery in queued. The mail is sent in the background and retried on transient failure; poll GET /deliveries/{id} for the outcome.

Inputs: to (required), document_id (required), cc, bcc, +3 more.

document_transitionAInspect

Move a document through its lifecycle.

  • finalized — Issue a draft: fix its number and totals.

  • sent — Record that the document reached the customer.

  • paid — Record that the document was paid in full.

  • unpaid — Undo mark_paid, returning the document to sent.

  • void — Cancel a document that was issued.

  • archived — Move a document out of the active list.

  • restored — Bring an archived document back to finalized.

Each transition is only valid from certain states and is refused with 409 otherwise. To actually email a document to its customer, use document_send — to: "sent" only records that it happened.

Inputs: to (required), document_id (required).

document_updateAInspect

Change a document that is still a draft.

A finalized document is a record of what was issued and cannot be edited; 409 if it has moved past draft. Only the fields you send are changed — omit one to leave it alone, and send null to clear it.

Inputs: document_id (required), notes, terms, locale, +19 more.

document_validateAInspect

Check that a document body is well-formed, without pricing it.

The cheapest of the three stateless operations: no totals are computed and no PDF is produced. Use calculate_document for the money and render_document for the document.

Inputs: data (required), document_type.

find_operationAInspect

Search every InvoicePDFs API operation by what it does, and get back the full input schema of each match. Use this when no tool above covers what you need — most of the API is reachable this way.

Inputs: query (required).

recurring_cancelAInspect

End a schedule permanently.

Terminal: it cannot be resumed or edited afterwards, and cancelling twice is refused with 409. To stop issuing temporarily, use pause_recurring_invoice instead.

Invoices already issued are left alone.

Inputs: recurring_id (required).

recurring_createBInspect

Set up a schedule that issues invoices on its own.

Starts active, so the first invoice is issued when the schedule next falls due. The invoices it produces are ordinary documents — read them with list_generated_invoices.

Inputs: frequency (required), start_date (required), customer_id (required), invoice_template (required), +6 more.

recurring_generatedAInspect

The invoices one schedule has actually issued, newest first.

The documents produced by this schedule, as opposed to list_recurring_invoices, which lists the schedules themselves.

Inputs: recurring_id (required), limit, cursor.

recurring_listAInspect

The schedules on this account, newest first.

These are the recurring definitions, not the invoices they produce; for those, use list_generated_invoices. Narrow with status.

Inputs: limit, cursor, status.

recurring_pauseAInspect

Stop a schedule issuing invoices, for now.

Only an active schedule can be paused; anything else is refused with 409. Nothing already issued changes. Restart it with resume_recurring_invoice.

Inputs: recurring_id (required).

recurring_resumeAInspect

Start a paused schedule issuing again.

Only a paused schedule can be resumed; anything else is refused with 409. A cancelled schedule cannot be brought back — create a new one.

Inputs: recurring_id (required).

template_listAInspect

The built-in templates every account can render with.

Your own designs are listed separately by list_custom_templates.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 30 tools

    Disambiguation3/5

    Most tools target a distinct resource+action, but a cluster of stateless operations (document_render, document_render_stored, document_calculate, document_validate, compliance_check, compliance_xml) all act on a document body and overlap conceptually, and document_send vs document_transition-to-'sent' needs the description to separate. The problem is compounded because descriptions point to tools that don't exist under those names (create_document_render, render_document, list_generated_invoices), which will actively mislead selection.

    Naming Consistency3/5

    The tool names themselves mostly follow a consistent noun_verb pattern (document_create, customer_list, recurring_pause), which is readable. However, the descriptions repeatedly reference aliases that are not the actual tool names (render_document, calculate_document, resume_recurring_invoice, list_recurring_invoices), so the naming is not self-consistent across names and docs.

    Tool Count2/5

    At 30 tools this is heavy for the scope, pushing past the point where an agent can comfortably scan the set. While the invoicing domain is genuinely broad, several render/validate/compliance variants and a generic find_operation/call_operation escape hatch could likely be consolidated.

    Completeness4/5

    Core lifecycle is well covered: document create/get/list/update/duplicate/transition, customers, recurring schedules, rendering, sending, and compliance. There are minor gaps (no customer or business_profile delete, business_profile only list/create, templates only list), but the find_operation/call_operation pair provides an escape hatch to the rest of the API.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to securely call enterprise MCP tools with tenant-scoped RBAC, human approvals, audit logging, and multi-tool workflows across customer, order, document, and ticket data.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to perform go-to-market workflows such as company and contact enrichment, CRM querying, and controlled, audited writes to a CRM through MCP tools callable from any MCP client.
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents and onboarding/KYB workflows to validate VAT and EORI numbers, look up companies, screen sanctions lists, and run combined checks through remote MCP tools and a pay-per-call API.
      11
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents such as ChatGPT, Claude, and local LLMs to operate an enterprise digital-operations platform through MCP, exposing 19 model tools and 3 app-only tools for identity, data, workflow, files, and PII-controlled operations with role-based permissions and two-phase confirmations.
      Apache 2.0