mcp-ksef-pl

v0.10.2
io.github.cmendezs/mcp-ksef-pl Checked 3 days ago Published 17 days ago

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

Values you need

VariableWhat it is
KSEF_SESSION_TOKENoptional KSeF v2 AccessToken obtained via the challenge/redeem auth flow. Required for submit_invoice_to_ksef.
KSEF_NIPoptional NIP (Polish tax identifier, 10 digits) of the entity submitting invoices.
KSEF_ENVIRONMENToptional Target KSeF environment: 'production' or 'test' (default: test).
KSEF_TIMEOUToptional HTTP request timeout in seconds (default: 30).

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add mcp-ksef-pl -- uvx mcp-ksef-pl==0.10.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-ksef-pl": {
      "args": [
        "mcp-ksef-pl==0.10.2"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-ksef-pl": {
      "args": [
        "mcp-ksef-pl==0.10.2"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp-ksef-pl": {
      "args": [
        "mcp-ksef-pl==0.10.2"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-ksef-pl]
command = "uvx"
args = ["mcp-ksef-pl==0.10.2"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: generate_fa2_invoice, generate_fa3_invoice, validate_fa2_invoice, validate_fa3_invoice, parse_fa2_invoice, submit_invoice_to_ksef, get_ksef_invoice_status, search_ksef_invoices, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json