Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Beschreibung vom Entwickler (englisches Original)
Polish e-invoicing MCP: KSeF API v2, FA(3)/FA(2) XML, Peppol BIS 3.0, NIP/REGON validation.
Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.
Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.
Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.
KSEF_SESSION_TOKEN, KSEF_NIP, KSEF_ENVIRONMENT, KSEF_TIMEOUTDu brauchst
Welche App nutzt du?
Wähle oben deine App. Wir merken sie uns, damit der Button beim nächsten Mal „In … installieren“ anzeigt.
Öffne Claude Desktop → Settings → Developer → Edit Config und füge dies in claude_desktop_config.json ein
{
"mcpServers": {
"ksef-pl": {
"command": "uvx",
"args": [
"mcp-ksef-pl"
],
"env": {
"KSEF_SESSION_TOKEN": "your-value",
"KSEF_NIP": "your-value",
"KSEF_ENVIRONMENT": "your-value",
"KSEF_TIMEOUT": "your-value"
}
}
}
}Führe das in deinem Terminal aus
claude mcp add ksef-pl --env KSEF_SESSION_TOKEN=your-value --env KSEF_NIP=your-value --env KSEF_ENVIRONMENT=your-value --env KSEF_TIMEOUT=your-value -- uvx mcp-ksef-plTrag die leeren Werte ein, bevor du ihn startest.
In .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen
{
"mcpServers": {
"ksef-pl": {
"command": "uvx",
"args": [
"mcp-ksef-pl"
],
"env": {
"KSEF_SESSION_TOKEN": "your-value",
"KSEF_NIP": "your-value",
"KSEF_ENVIRONMENT": "your-value",
"KSEF_TIMEOUT": "your-value"
}
}
}
}Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.
In .vscode/mcp.json in deinem Projekt einfügen
{
"servers": {
"ksef-pl": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-ksef-pl"
],
"env": {
"KSEF_SESSION_TOKEN": "your-value",
"KSEF_NIP": "your-value",
"KSEF_ENVIRONMENT": "your-value",
"KSEF_TIMEOUT": "your-value"
}
}
}
}Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.
Dieser Server läuft auf deinem Computer, und ChatGPT kann sich nur mit Servern im Internet verbinden. Wähle eine andere App.
Deine Auswahl bleibt in einem Cookie auf diesem Gerät; kein Konto nötig.
KSEF_SESSION_TOKEN envKSEF_NIP envKSEF_ENVIRONMENT envKSEF_TIMEOUT envDiese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.
Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.
Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 9. Nov. 2026
Der Registry-Name wurde mit dem GitHub-Konto cmendezs bestätigt, dem das Repo gehört
Dieses Repo haben wir noch nicht von GitHub gelesen
Dieses Repo haben wir noch nicht von GitHub gelesen
Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet
Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen
Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen
Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.
Er hat 1 von 1 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.
Die Registry nennt keinen erforderlichen Schlüssel, manche Server bitten dich aber bei der ersten Nutzung, dich anzumelden.
Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).
Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (0.10.1) kam vor 2 Monaten in die Registry.
Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Python (uv) auf deinem Computer.
In derselben Kategorie: Spec Driven Development, Remote Desktop Commander, NotebookLM MCP
Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.
So liest du eine Karte:↓ Downloads pro Wochei★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Google Gemini Notebook (ex NotebookLM) over MCP + a local REST API — cited answers, Studio, history
Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.
English | Polski
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).
This package is built on mcp-einvoicing-core, the shared base library for European e-invoicing MCP servers. It provides an OAuth2 HTTP client, token cache, data models, logging utilities, and an exception hierarchy.
mcp-einvoicing-core is installed automatically as a dependency, no additional step is required.
pip install mcp-ksef-pl
Or without prior installation using uvx:
uvx mcp-ksef-pl
git clone https://github.com/cmendezs/mcp-ksef-pl.git
cd mcp-ksef-pl uv sync --all-extras
| Variable | Default | Description |
|---|---|---|
KSEF_ENVIRONMENT | test | KSeF environment: production or test |
KSEF_SESSION_TOKEN | — | KSeF session token (obtained through the challenge-response flow with MF) |
KSEF_NIP | — | NIP of the entity submitting invoices |
KSEF_TIMEOUT | 30 | HTTP request timeout in seconds |
KSEF_VERIFY_MF_KEY_PINNING | false | Enforce SPKI SHA-256 pinning on the MF encryption certificate. No-op until fingerprints are populated for the active environment, even when set to true |
EINVOICING_PEPPOL_CODELIST_DIR | — | Local directory containing your own copy of the OpenPeppol eDEC Code Lists, required by the Peppol codelist tools (not bundled with this package; see mcp-einvoicing-core README) |
EINVOICING_EN16931_CODELIST_DIR | — | Local directory containing your own copy of the CEF "Digital Building Blocks" EN 16931 semantic code lists, required by the EN 16931 codelist tools (not bundled; see mcp-einvoicing-core README) |
The EUSR/TSR reporting and MLS tools additionally require the [xslt2] extra (pip install "mcp-ksef-pl[xslt2]") for Schematron validation.
Add the following configuration to your claude_desktop_config.json file:
{
"mcpServers": { "ksef-pl": { "command": "uvx", "args": ["mcp-ksef-pl"], "env": { "KSEF_ENVIRONMENT": "test", "KSEF_SESSION_TOKEN": " ", "KSEF_NIP": " " } } } }
Cursor supports MCP servers via stdio. Add the configuration to:
~/.cursor/mcp.json.cursor/mcp.json{
"mcpServers": { "ksef-pl": { "command": "uvx", "args": ["mcp-ksef-pl"], "env": { "KSEF_ENVIRONMENT": "test", "KSEF_SESSION_TOKEN": " ", "KSEF_NIP": " " } } } }
Reload the Cursor window (Ctrl+Shift+P → *Reload Window*) after saving changes.
Kiro supports MCP servers through a dedicated configuration file:
~/.kiro/settings/mcp.json.kiro/settings/mcp.json{
"mcpServers": { "ksef-pl": { "command": "uvx", "args": ["mcp-ksef-pl"], "env": { "KSEF_ENVIRONMENT": "test", "KSEF_SESSION_TOKEN": " ", "KSEF_NIP": " " }, "disabled": false, "autoApprove": [] } } }
Security tip: instead of entering the token directly, use the syntax
"KSEF_SESSION_TOKEN": "${KSEF_SESSION_TOKEN}", as Kiro resolves shell environment
variables at startup.
| Tool | Description |
|---|---|
generate_fa3_invoice | Generates a KSeF-compliant FA(3) XML invoice (required for KSeF API v2 submissions) |
generate_fa2_invoice | Generates a KSeF-compliant FA(2) XML invoice (legacy format, read-only use) |
validate_fa3_invoice | Validates FA(3) XML: XSD validation and FA(3)-specific business rules |
validate_fa2_invoice | Validates FA(2) XML: XSD validation (if the schema is available) and business rules |
parse_fa2_invoice | Parses FA(2) XML into a structured dictionary |
The official FA(2) and FA(3) XSD schemas ship inside the package (src/mcp_ksef_pl/schemas/) and are loaded automatically via importlib.resources — no manual download or configuration is required. validate_fa2_invoice and validate_fa3_invoice run full XSD validation out of the box for every installation.
| Tool | Description |
|---|---|
submit_invoice_to_ksef | Submits an FA(3) invoice to the KSeF platform and returns a reference number |
get_ksef_invoice_status | Retrieves the processing status of an invoice by its reference number |
search_ksef_invoices | Searches invoices in KSeF by date range and direction (seller/buyer) |
| Tool | Description |
|---|---|
validate_polish_nip | Validates a NIP (10-digit tax identification number) using a checksum algorithm |
validate_polish_regon | Validates a REGON (9- or 14-digit registry number) using a checksum algorithm |
| Tool | Description |
|---|---|
generate_peppol_invoice | Generates a UBL 2.1 invoice compliant with Peppol BIS Billing 3.0 / EN 16931 |
validate_peppol_invoice | Validates a UBL 2.1 Peppol invoice against the CEN EN 16931 base Schematron rules (en16931-base-only scope — does not check the Peppol-specific overlay) |
Peppol participant lookup, service-endpoint lookup, a DNS-only diagnostic, AS4 send, Peppol Directory search, and the OpenPeppol eDEC codelist tools are provided by the shared core Peppol tool plugin (mcp_einvoicing_core.peppol.tools.register_peppol_tools), mounted in server.py with a Poland-specific identifier adapter: a bare NIP (e.g. 1234563218) is normalized to the 9945: Peppol scheme (PL:VAT, per the OpenPeppol eDEC Participant Identifier Schemes code list); an already scheme-qualified identifier (e.g. 9945:1234563218) passes through unchanged. Use these tools to check PEF (Poland's Peppol Access Point for public-procurement B2G invoicing) registration status ahead of generate_peppol_invoice.
peppol_send signs outbound messages with a real wsse:Security signature as of mcp-einvoicing-core v1.20.0 (previously computed and discarded — see CHANGELOG.md v0.8.0).
| Tool | Description |
|---|---|
peppol_lookup_participant | Check whether a business is registered on the Peppol network; returns registration status and supported document types |
peppol_get_service_endpoint | Fetch the AS4 endpoint for a participant's document type |
resolve_peppol_dns | DNS-only (SML) diagnostic, independent of SMP reachability |
peppol_send | Transmit a UBL/CII invoice via AS4 |
peppol_directory_search | Search the public Peppol Directory by participant, name, country, or document type |
list_participant_id_schemes, list_document_type_ids, list_process_ids, list_spis_use_case_ids | OpenPeppol eDEC codelist lookups (require EINVOICING_PEPPOL_CODELIST_DIR) |
check_document_type_id_in_codelist, check_process_id_in_codelist, check_participant_id_scheme_in_codelist, get_peppol_codelist_version | OpenPeppol eDEC codelist checks and version reporting |
See the mcp-einvoicing-core README for full parameter documentation on these tools.
Added in v0.8.0 via three opt-in core plugins, mounted unconditionally in server.py. Each raises a clear error at call time (not at registration) if its extra or data directory is missing.
| Tool | Plugin | Description |
|---|---|---|
validate_eusr_report | register_peppol_reporting_tools | Validate an End User Statistics Report (XSD, then Schematron). Requires the [xslt2] extra. |
validate_tsr_report | register_peppol_reporting_tools | Validate a Transaction Statistics Report (XSD, then Schematron). Requires the [xslt2] extra. |
validate_mls_message | register_peppol_mls_tools | Validate a Message Level Status document (UBL ApplicationResponse-2 subset). Requires the [xslt2] extra. |
build_mls_message | register_peppol_mls_tools | Build a document-level MLS response. Requires the [xslt2] extra. |
13 list_*/check_* pairs, get_en16931_codelist_version | register_en16931_codelist_tools | EN 16931 semantic code list lookups/checks (units, VAT categories, etc.). Require EINVOICING_EN16931_CODELIST_DIR. |
See the mcp-einvoicing-core README for full parameter documentation on these tools.
KSeF API v2 uses a multi-step challenge/redeem flow to issue an AccessToken. This MCP server accepts an already-obtained token and cannot automate the signing step (it requires a qualified electronic signature).
https://ksef-test.mf.gov.pl/. curl -s https://ksef-test.mf.gov.pl/auth/challenge \
-H "Accept: application/json" \ -d '{"contextIdentifier": {"type": "onip", "identifier": "YOUR_NIP"}}' \ -H "Content-Type: application/json"
The response contains a challenge string and a timestamp.
XML envelope containing the challenge, then sign it with your qualified e-signature. Accepted signing tools:podpis.gov.pl (government signing portal)Example using xmlsec1 with a PKCS#12 certificate:
# Build the challenge XML (template at specs/przyklad-wyzwania.xml)
xmlsec1 --sign --pkcs12 your-cert.p12 --pwd "password" \ --output signed-challenge.xml challenge-template.xml
authOperation reference: curl -s https://ksef-test.mf.gov.pl/auth/xades-signature \
-H "Content-Type: application/octet-stream" \ --data-binary @signed-challenge.xml
curl -s https://ksef-test.mf.gov.pl/auth/token/redeem \
-H "Content-Type: application/json" \ -H "Authorization: Bearer "
The response contains accessToken.token and accessToken.context.referenceNumber.
export KSEF_SESSION_TOKEN="<the AccessToken from step 5>"
The token is valid for approximately 2 hours from issuance (per MF documentation). After expiry, repeat steps 2-5.
Nur der Anfang wird gezeigt; den Rest findest du im Repo