mcp-ksef-pl
v0.10.2Polish e-invoicing MCP: KSeF API v2, FA(3)/FA(2) XML, Peppol BIS 3.0, NIP/REGON validation.
Values you need
| Variable | What it is | |
|---|---|---|
KSEF_SESSION_TOKEN | optional | KSeF v2 AccessToken obtained via the challenge/redeem auth flow. Required for submit_invoice_to_ksef. |
KSEF_NIP | optional | NIP (Polish tax identifier, 10 digits) of the entity submitting invoices. |
KSEF_ENVIRONMENT | optional | Target KSeF environment: 'production' or 'test' (default: test). |
KSEF_TIMEOUT | optional | 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.2Add 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
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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