Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Facturas Inbox MCP

by pedrozapatadevversion 0.1.0i★ 0iRuns on your computerRepository ↗
Registry nameio.github.pedrozapatadev/facturas-inbox-mcp

How to install

What it does

Spanish invoice PDFs to validated data: NIF/IVA/IRPF extraction, arithmetic checks, IVA per quarter.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Chat & email

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness7/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score7/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Facturas Inbox MCP. Follow https://mcp.popnx.com/i/pedrozapatadev-facturas-inbox-mcp.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Facturas Inbox MCP for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "facturas-inbox": { "command": "npx", "args": [ "-y", "facturas-inbox-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Facturas Inbox MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "facturas-inbox": {
          "command": "npx",
          "args": [
            "-y",
            "facturas-inbox-mcp"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Facturas Inbox MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Facturas Inbox MCP or shows a Facturas Inbox MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Facturas Inbox MCP yet

Facturas Inbox MCP runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Facturas Inbox MCP

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time) · No one-click button: paste the settings and fill in the values yourself
  • Install Node.js on your computer first (one time) · No one-click button: paste the settings and fill in the values yourself

B · Others in Chat & email that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Facturas Inbox MCP for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user facturas-inbox -- npx -y facturas-inbox-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Facturas Inbox MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user facturas-inbox -- npx -y facturas-inbox-mcp
  4. Type /mcp in Claude Code

    You should see Facturas Inbox MCP listed as connected

  5. Try it

    Use Facturas Inbox MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Facturas Inbox MCP or shows a Facturas Inbox MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Node.js on your computer first (one time) · No one-click button: paste the settings and fill in the values yourself

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Facturas Inbox MCP for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "facturas-inbox": { "command": "npx", "args": [ "-y", "facturas-inbox-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Facturas Inbox MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Cursor’s MCP settings file

    ~/.cursor/mcp.json

    Paste these settings, fill in the empty values and save

    {
      "mcpServers": {
        "facturas-inbox": {
          "command": "npx",
          "args": [
            "-y",
            "facturas-inbox-mcp"
          ]
        }
      }
    }
  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Facturas Inbox MCP and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Facturas Inbox MCP or shows a Facturas Inbox MCP tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Node.js on your computer first (one time) · No one-click button: paste the settings and fill in the values yourself

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Facturas Inbox MCP for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "facturas-inbox": { "type": "stdio", "command": "npx", "args": [ "-y", "facturas-inbox-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Facturas Inbox MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open VS Code’s MCP settings file

    MCP: Open User Configuration

    Paste these settings, fill in the empty values and save

    {
      "servers": {
        "facturas-inbox": {
          "type": "stdio",
          "command": "npx",
          "args": [
            "-y",
            "facturas-inbox-mcp"
          ]
        }
      }
    }
  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Facturas Inbox MCP and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Facturas Inbox MCP or shows a Facturas Inbox MCP tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Facturas Inbox MCP💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user facturas-inbox -- npx -y facturas-inbox-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "facturas-inbox": {
      "command": "npx",
      "args": [
        "-y",
        "facturas-inbox-mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "facturas-inbox": {
      "command": "npx",
      "args": [
        "-y",
        "facturas-inbox-mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "facturas-inbox": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "facturas-inbox-mcp"
      ]
    }
  }
}

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
44/wk
Connection
Runs on your computer
Latest versioni
0.1.0
Published to registryi
Oct 8, 2026
Code last changedi
Oct 8, 2026
Maker
pedrozapatadev
Packages
npm: facturas-inbox-mcp
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account pedrozapatadev, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 42 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for facturas-inbox-mcp@0.1.0

Checks only this package version, not every dependency · checked Nov 16, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/pedrozapatadev-facturas-inbox-mcp.svg)](https://mcp.popnx.com/en/servers/pedrozapatadev-facturas-inbox-mcp)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Chat & emaili

  • More stars than 0% of the other 2027 servers in this category
  • Published to the registry more recently than 37% of the other 2027 servers in this category
  • Basic checks equal to or better than 99% of the other 2027 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Facturas Inbox MCP safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 42 days ago, and the latest version (0.1.0) reached the registry 42 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: emailmd, Kite Discord Bot Builder, e2a — email for AI agents, Infobip MCP, kernelCAD

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

emailmd

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

by anypostWidely used↓ 5.4K/wk★ 1.4KUpdated 5 days ago

Computer or cloud✓ service owner · emailmd.dev

Infobip MCP

Infobip MCP server for omnichannel communication and messaging. SMS, RCS, WhatsApp, Viber and more.

by infobipEarly★ 36Updated 13 months ago

Runs in the cloud✓ service owner · infobip.com

kernelCAD

CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.

by w1neEarly★ 35Updated 23 days ago

Runs in the cloud✓ service owner · kernelcad.com
Compared with similar ones
This one
Facturas Inbox MCP
emailmdKite Discord Bot Buildere2a — email for AI agentsInfobip MCPkernelCAD
Runs whereInstalls on your computerCloud or install on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoNoYesNo
Basic checks3/35/54/44/44/44/4
LicenseMITMITAGPL-3.0Apache-2.0MITMIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

facturas-inbox-mcp

An MCP server that turns a folder of Spanish business documents into validated, structured data an AI agent can reason over. It classifies each PDF (factura, rectificativa, ticket, nómina, modelo AEAT…), extracts the invoice fields (NIF/CIF, base imponible, IVA per rate, IRPF, total), checks the arithmetic and the tax-ID checksums, and computes the IVA soportado / repercutido position for a quarter.

Local and offline. No API keys. It reads only the folders you give it.

Built for the everyday job of a Spanish *gestoría*: a client drops a month of PDFs in a folder and

someone has to work out what is what, what adds up and what the VAT position is.

30-second demo

Claude Code, Sonnet, pointed at the synthetic examples/inbox (11 documents, including a wrong total, a ticket, a credit note, a payslip, a modelo 303 and a scanned page). Real session; the answer is trimmed for length (full, unedited transcript in docs/demo-transcript.md):

> I'm the bookkeeper for Gestoría Demo Ficticia SL (CIF B87654323). Process the invoice

inbox and tell me our IVA position for Q3 2026, and flag anything I need to look at by hand. Answer in English, briefly.

⏺ facturas - scan_folder {} ⏺ facturas - vat_summary {"own_tax_id":"B87654323","quarter":"2026-Q3"} ⏺ facturas - validate_tax_id {"tax_id":"B87654323"}

Q3 2026 IVA position: €243.00 to pay (a pagar), provisional.

  • IVA repercutido: €504.00, from 1 issued invoice (GD-2026-0088, base €2,400 at 21%)
  • IVA soportado: €261.00, from 4 received documents (base €1,400): €231 at 21% and €30 at 10%
  • The July papelería invoice (€52.50 IVA) is cancelled out by the September credit note.

Check by hand:

  1. Papelería PE-2026/0455 (30 Jul): the total says €1,250 but base + IVA comes to €1,210. Excluded. If the supplier corrects it, your position drops to about €33.
  2. Gasolinera ticket 88213 (14 Aug, €60): IVA not broken out and no recipient NIF. Excluded. Probably not deductible without a full invoice.
  3. Scanned PDF (5 Sep): no text layer, so it needs OCR or a manual read. It could be a missing Q3 invoice.
  4. Credit note PE-2026/R-0019: classified at 0.69 confidence. Confirm it really is a rectificativa of PE-2026/0412.
  5. Laura's advisory invoice (3 Aug): €150 IRPF withheld, which goes on modelo 111, not the IVA return. …

5 turns · 23 s · $0.13. Every number comes from a tool result, not from the model doing arithmetic. Documents that fail a check are excluded and listed with a reason, so nothing is silently counted or silently dropped.

Tools

ToolWhat it doesHints
scan_folderClassify and extract every document in a folder; one compact row each, paginated with limit / cursorread-only
classify_documentLabel one document, with a confidence score and the signals behind the labelread-only
extract_invoiceInvoice number, date, issuer/recipient NIF, base, VAT lines, IRPF, total, plus every cross-check. `response_format: concise \detailed`read-only
validate_tax_idNIF / NIE / CIF checksum validation. Says the expected control character when wrongread-only
vat_summaryIVA repercutido vs. soportado for a quarter (2026-Q3) or a from/to range, by rate, with the exclusions listedread-only
export_csvWrite the scan to a new .csv file (;-separated, decimal comma, opens directly in Spanish Excel). Never overwriteswrites a new file

Every tool publishes an outputSchema and returns structuredContent, and the SDK validates both directions. All tools set full annotations (readOnlyHint, destructiveHint: false, idempotentHint, openWorldHint: false), so clients can auto-approve the read-only ones.

The checks

extract_invoice returns status: "ok" only when every check passes:

CheckRule
issuer_tax_idA checksum-valid NIF/NIE/CIF is present before the client section
issue_dateA real calendar date was found (15/07/2026, 22 de septiembre de 2026, …)
vat_rate_standardEvery VAT rate is a Spanish rate (0, 4, 5, 10, 21 %)
vat_mathbase × rate = VAT, per rate when the invoice breaks bases out (±1 cent)
irpf_mathbase × IRPF rate = withholding (±1 cent)
total_mathbase + VAT − IRPF = total

All arithmetic is in integer cents.

Install

Requires Node.js 20.12 or newer.

Try it in 30 seconds (bundled sample data)
claude mcp add facturas-demo -- npx -y facturas-inbox-mcp --demo

--demo serves the synthetic inbox that ships with the package. Then ask Claude: *"I'm the bookkeeper for CIF B87654323. What's our IVA position for Q3 2026, and what should I check by hand?"*

Claude Code
claude mcp add facturas -- npx -y facturas-inbox-mcp ~/Documents/facturas
Claude Desktop

Add this to claude_desktop_config.json (Settings → Developer → Edit Config):

{

"mcpServers": { "facturas": { "command": "npx", "args": ["-y", "facturas-inbox-mcp", "/Users/you/Documents/facturas"] } } }

Any other MCP client

It's a standard stdio server: npx -y facturas-inbox-mcp [more folders…], or npx -y facturas-inbox-mcp --demo. Folders can also come from FACTURAS_INBOX_DIRS (separated like PATH).

From source, with the sample inbox
git clone https://github.com/pedrozapatadev/facturas-inbox-mcp && cd facturas-inbox-mcp

npm install && npm run build claude mcp add facturas -- node "$PWD/dist/index.js" "$PWD/examples/inbox"

Then ask: *"I'm the bookkeeper for CIF B87654323. What's our IVA position for Q3 2026?"*

To poke at the tools without an LLM, run npm run inspect (MCP Inspector).

Design decisions

  • Deterministic core, no model inside. The agent is already a language model. What it lacks are tools whose answers it can trust. Extraction is rule-based and every result carries its evidence: classifier signals, check details, warnings. The server can explain itself, and the same input always gives the same output.
  • Fail loudly, not silently. Fields that weren't found are null, not guessed. Documents that fail a check are excluded from totals *and listed with the reason*. Errors are returned as isError results that say how to fix the call ("Pass force: true to try anyway", "Run OCR first").
  • Token-efficient. scan_folder returns compact rows and paginates. extract_invoice is concise by default. export_csv returns a path and counts, not the data.
  • Sandboxed filesystem. Paths are resolved with realpath and must sit inside a folder given at startup, so ../ traversal and symlinks that point outside are rejected (and tested). The only write is export_csv, which creates new .csv files and never overwrites.
  • Untrusted document text. The server instructions tell the agent never to follow instructions found inside a document. Raw text is only returned on request, labelled untrusted_text_preview. CSV cells that start with =, +, - or @ are neutralized against spreadsheet formula injection. Exports are created 0600.
  • Bounded work per document. Files are limited to 20 MB and PDFs to 200 pages. Text is cut at 1M characters before analysis. The extraction regexes are linear-time; a ReDoS case has a regression test.
  • Threat model. The attacker controls document *contents*, not the filesystem. Paths that are missing and paths outside the folders get the same error, so the tool can't be used to probe what exists elsewhere. Someone who can already write to the inbox could race the check-then-read (a TOCTOU window); that is out of scope.
  • stdout is the protocol. All logging goes to stderr. An end-to-end test drives the built binary over real stdio, and it would fail on a stray console.log.

Limitations

Honest scope. This is a showcase-sized tool, not accounting software.

  • PDFs need a text layer. Scanned images are reported as unreadable with an OCR hint (e.g. ocrmypdf); there is no built-in OCR.
  • Heuristic extraction tuned to common Spanish invoice layouts (labelled fields like *Base imponible*, *IVA 21 %*, *Total factura*). Unusual layouts come back as needs_review rather than wrong.
  • Not handled yet: recargo de equivalencia, intra-EU / reverse-charge invoices, Facturae XML, and counterparty names (only tax IDs).
  • Checksum validation only. A valid NIF is well-formed; it is not confirmed as registered with AEAT or VIES.
  • Not an e-invoicing or VeriFactu tool. It reads received paperwork; it does not issue invoices or file returns. vat_summary is a working figure for review, not a modelo 303.

Development

npm install

npm run fixtures # regenerate examples/inbox (synthetic data, valid-checksum fictional IDs) npm run typecheck npm test # unit + in-memory MCP client + stdio end-to-end (build first for the e2e) npm run build npm run inspect # MCP Inspector UI against the sample inbox

src/ index.ts stdio entry point, CLI args → allowed folders server.ts the six tools: schemas, annotations, error mapping schemas.ts zod input/output schemas pipeline.ts read → classify → extract, shared by all tools classify.ts rule-based document classifier with explainable signals extract.ts invoice field extraction + arithmetic checks taxid.ts NIF / NIE / CIF validation amounts.ts Spanish amounts and dates, in integer cents vat-summary.ts repercutido / soportado aggregation documents.ts sandboxed filesystem + PDF text extraction csv.ts Excel-friendly CSV export test/ MCP-level tests (in-memory client, stdio e2e, sandbox escapes)

Built on the official MCP TypeScript SDK v2 (@modelcontextprotocol/server), zod and unpdf.

Releasing
  1. Bump version in package.json and both version fields in server.json.
  2. npm publish (runs build + tests first; needs npm 2FA).
  3. gh workflow run publish-mcp-registry.yml lists the new version in the MCP Registry via GitHub OIDC (no secrets).

Roadmap

  • Optional OCR pass for scanned documents
  • Counterparty names, recargo de equivalencia, intra-EU invoices
  • Facturae XML input
  • VIES lookup as an opt-in, clearly network-marked tool
  • Streamable HTTP transport for remote deployment

License

MIT © 2026 Pedro Zapata Medal. All sample documents are synthetic: the companies, people and tax IDs are fictional.