bokio-mcp

v0.7.0
io.github.diblaze/bokio-mcp Checked 7 hours ago Published 6 days ago

Bokio accounting API as MCP tools: ledger, invoices, SIE balances, VAT, P&L.

Values you need

VariableWhat it is
BOKIO_TOKENrequired secret Private Bearer token, created in Bokio under Integrations
BOKIO_COMPANY_IDoptional Default company, used when a tool call leaves out companyId
BOKIO_ALLOW_WRITESoptional 1, true, yes or on enables write tools; anything else keeps them hidden and blocked
BOKIO_DOWNLOAD_DIRoptional Where SIE, PDF and upload downloads are saved; paths outside it are rejected and files are never overwritten
BOKIO_BASE_URLoptional Defaults to https://api.bokio.se/v1

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add bokio-mcp -e 'BOKIO_TOKEN=<BOKIO_TOKEN>' -- npx -y bokio-mcp@0.7.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "bokio-mcp": {
      "args": [
        "-y",
        "bokio-mcp@0.7.0"
      ],
      "command": "npx",
      "env": {
        "BOKIO_TOKEN": "<BOKIO_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "bokio-mcp": {
      "args": [
        "-y",
        "bokio-mcp@0.7.0"
      ],
      "command": "npx",
      "env": {
        "BOKIO_TOKEN": "<BOKIO_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "BOKIO_TOKEN",
      "id": "bokio-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "bokio-mcp": {
      "args": [
        "-y",
        "bokio-mcp@0.7.0"
      ],
      "command": "npx",
      "env": {
        "BOKIO_TOKEN": "${input:bokio-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.bokio-mcp]
command = "npx"
args = ["-y", "bokio-mcp@0.7.0"]
env = { "BOKIO_TOKEN" = "<BOKIO_TOKEN>" }

For AI agents

  1. Ask the user for: BOKIO_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: bokio_company_info, bokio_list_fiscal_years, bokio_get_fiscal_year, bokio_chart_of_accounts, bokio_get_account, bokio_download_sie, bokio_account_balances, bokio_account_ledger, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json