Skip to content
VS Code

mcp ksef pl for VS Code

io.github.cmendezs/mcp-ksef-pl

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

client:VS Code transport:stdio runtime:pypi

Install mcp ksef pl in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "ksef-session-token",
      "description": "KSEF_SESSION_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ksef-nip",
      "description": "KSEF_NIP",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ksef-environment",
      "description": "KSEF_ENVIRONMENT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ksef-timeout",
      "description": "KSEF_TIMEOUT",
      "password": true
    }
  ],
  "servers": {
    "mcp-ksef-pl": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-ksef-pl"
      ],
      "env": {
        "KSEF_SESSION_TOKEN": "${input:ksef-session-token}",
        "KSEF_NIP": "${input:ksef-nip}",
        "KSEF_ENVIRONMENT": "${input:ksef-environment}",
        "KSEF_TIMEOUT": "${input:ksef-timeout}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

mcp ksef pl in other clients