🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@invapi/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@invapi/mcp-server

MCP server for the Invapi E-Invoicing API - conversion, validation, and extraction

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
44
4.76%
Maintainers
1
Weekly downloads
 
Created
Source

invapi-mcp-server

MCP server for the Invapi E-Invoicing API — convert, validate, and extract invoices in UBL, CII, ZUGFeRD, Excel, and more.

Setup

npm install
npm run build

Set your API key:

export INVAPI_API_KEY=your-api-key

Get a key at invapi.org.

Usage

Claude Desktop / Claude Code

Add to your MCP config (claude_desktop_config.json or .claude.json):

{
  "mcpServers": {
    "invapi": {
      "command": "node",
      "args": ["/absolute/path/to/invapi-mcp-server/dist/index.js"],
      "env": {
        "INVAPI_API_KEY": "your-api-key"
      }
    }
  }
}

Development

npm run dev

Tools

Conversion

ToolDescription
invapi_convert_json_to_ublJSON Invoice → UBL XML
invapi_convert_json_to_ciiJSON Invoice → CII XML
invapi_convert_ubl_to_jsonUBL XML → JSON Invoice
invapi_convert_cii_to_jsonCII XML → JSON Invoice
invapi_convert_json_to_xlsxJSON Invoices → Excel file
invapi_create_zugferd_pdfPDF + JSON Invoice → ZUGFeRD PDF
invapi_convert_zugferd_to_jsonZUGFeRD PDF → JSON Invoice

Validation

ToolDescription
invapi_validate_ublValidate UBL XML against XRechnung 3.0.2 (EN 16931)
invapi_validate_ciiValidate CII XML against XRechnung 3.0.2 (EN 16931)
invapi_validate_xmlValidate XML with auto-detected format

Extraction

ToolDescription
invapi_extract_invoiceExtract structured invoice data from PDF or image
invapi_extract_qrExtract QR code data from image

User

ToolDescription
invapi_get_userGet account info and remaining API credits

Batch

ToolDescription
invapi_batch_convertRun up to 100 conversion operations in a single request

Project Structure

src/
├── index.ts              # Entry point, server setup (stdio transport)
├── api-client.ts         # HTTP client, file helpers, error handling
├── schemas.ts            # Zod schemas for Invoice and sub-types
└── tools/
    ├── conversion.ts     # 7 conversion tools
    ├── validation.ts     # 3 validation tools
    ├── extraction.ts     # 2 extraction tools
    ├── user.ts           # User info / credits
    └── batch.ts          # Batch conversion

License

MIT

Keywords

mcp

FAQs

Package last updated on 20 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts