MCP Server — cmendezs/mcp-ksef-pl

Polish e-invoicing MCP: KSeF API v2, FA(3)/FA(2) XML, Peppol BIS 3.0, NIP/REGON validation.

Local serverstdioPython

What is the MCP Server?

Polish e-invoicing MCP: KSeF API v2, FA(3)/FA(2) XML, Peppol BIS 3.0, NIP/REGON validation.

What the server does

A Python MCP server providing tools for Polish electronic invoicing compliant with KSeF (FA(2)) and Peppol BIS Billing 3.0 / EN 16931. It enables AI agents (Claude, IDEs) to generate, validate, and submit invoices to the Krajowy System e-Faktur (KSeF), as well as validate Polish tax identifiers (NIP and REGON).

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the MCP Server

{
  "mcpServers": {
    "ksef-pl": {
      "command": "uvx",
      "args": ["mcp-ksef-pl"],
      "env": {
        "KSEF_ENVIRONMENT": "your-value",
        "KSEF_SESSION_TOKEN": "your-value",
        "KSEF_NIP": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
KSEF_ENVIRONMENTConfiguration value read at startup.Optional
KSEF_SESSION_TOKENCredential the server authenticates with.Yes
KSEF_NIPConfiguration value read at startup.Optional

Example prompts to try

  • “Use MCP to References.”

Frequently asked questions

Polish e-invoicing MCP: KSeF API v2, FA(3)/FA(2) XML, Peppol BIS 3.0, NIP/REGON validation. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.