mcp-ksef-pl MCP
A Python MCP server for Polish electronic invoicing compliant with KSeF (FA(2)) and Peppol BIS Billing 3.0. It allows AI agents to generate, validate, and submit invoices to the Krajowy System e-Faktur, and validate Polish tax identifiers like NIP and REGON.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Generate FA(2) compliant invoices
- Submit invoices to KSeF
- Validate NIP and REGON identifiers
- Validate Peppol BIS 3.0 documents
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
mcp-ksef-pl 0.10.1
{
"version": "0.10.1",
"transport": "stdio",
"identifier": "mcp-ksef-pl",
"registryType": "pypi",
"environmentVariables": [
{
"name": "KSEF_SESSION_TOKEN",
"format": "string",
"description": "KSeF v2 AccessToken obtained via the challenge/redeem auth flow. Required for submit_invoice_to_ksef."
},
{
"name": "KSEF_NIP",
"format": "string",
"description": "NIP (Polish tax identifier, 10 digits) of the entity submitting invoices."
},
{
"name": "KSEF_ENVIRONMENT",
"format": "string",
"description": "Target KSeF environment: 'production' or 'test' (default: test)."
},
{
"name": "KSEF_TIMEOUT",
"format": "string",
"description": "HTTP request timeout in seconds (default: 30)."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"mcp-ksef-pl-mcp": {
"command": "uvx",
"args": [
"mcp-ksef-pl==0.10.1"
],
"env": {
"KSEF_SESSION_TOKEN": "<YOUR_KSEF_SESSION_TOKEN>",
"KSEF_NIP": "<YOUR_KSEF_NIP>",
"KSEF_ENVIRONMENT": "<YOUR_KSEF_ENVIRONMENT>",
"KSEF_TIMEOUT": "<YOUR_KSEF_TIMEOUT>"
}
}
}
}Cline
{
"mcpServers": {
"mcp-ksef-pl-mcp": {
"command": "uvx",
"args": [
"mcp-ksef-pl==0.10.1"
],
"env": {
"KSEF_SESSION_TOKEN": "<YOUR_KSEF_SESSION_TOKEN>",
"KSEF_NIP": "<YOUR_KSEF_NIP>",
"KSEF_ENVIRONMENT": "<YOUR_KSEF_ENVIRONMENT>",
"KSEF_TIMEOUT": "<YOUR_KSEF_TIMEOUT>"
}
}
}
}VS Code
{
"servers": {
"mcp-ksef-pl-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-ksef-pl==0.10.1"
],
"env": {
"KSEF_SESSION_TOKEN": "<YOUR_KSEF_SESSION_TOKEN>",
"KSEF_NIP": "<YOUR_KSEF_NIP>",
"KSEF_ENVIRONMENT": "<YOUR_KSEF_ENVIRONMENT>",
"KSEF_TIMEOUT": "<YOUR_KSEF_TIMEOUT>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"mcp-ksef-pl-mcp": {
"command": "uvx",
"args": [
"mcp-ksef-pl==0.10.1"
],
"env": {
"KSEF_SESSION_TOKEN": "<YOUR_KSEF_SESSION_TOKEN>",
"KSEF_NIP": "<YOUR_KSEF_NIP>",
"KSEF_ENVIRONMENT": "<YOUR_KSEF_ENVIRONMENT>",
"KSEF_TIMEOUT": "<YOUR_KSEF_TIMEOUT>"
}
}
}
}Let your agent find its tools
Find servers like mcp-ksef-pl MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.