Wfirma Mcp

io.github.agente-dev由 GitHub 帳號 agente-dev 發布v1.0.0更新於 Oct 24, 2026

Unofficial read-only MCP server for the wFirma API v2: invoices, contractors, expenses, payments.

已驗證STDIO僅桌面金融商業與電商

概覽

AI 產生的概覽

非官方唯讀 MCP 伺服器,讓 AI 助理以型別化方式存取 wFirma 的公司資料:發票、承包商、費用與付款。

可以做什麼
列出公司並取得其他工具所需的內部 companyId,波蘭 NIP 不能當作公司 ID 使用。列出並取得單張發票。列出並取得單一承包商。列出並取得單筆費用。列出並取得單筆付款。
適用情境
適合讓助理在對話中查詢或彙整 wFirma 的會計紀錄,例如發票、承包商、費用或付款,且只需要讀取權限時。若需要新增、修改、寄送或財務化單據,則不適用。
執行需求
以 Node.js stdio 本機程序執行(npm 套件 wfirma-mcp 或建置後的 bundle)。需要三個 wFirma API 憑證,透過環境變數設定:WFIRMA_ACCESS_KEY、WFIRMA_SECRET_KEY 與 WFIRMA_APP_KEY,在 wFirma 面板的 Integrations → API 中建立。需要連線至 wFirma API v2 端點的網路存取。
安裝前請注意
需要三個機密憑證(WFIRMA_ACCESS_KEY、WFIRMA_SECRET_KEY、WFIRMA_APP_KEY),請勿寫入會提交到版本庫的檔案。依設計為唯讀,不含新增、編輯、刪除、寄送、財務化或付款操作。公司財務與承包商資料會傳送至 wFirma API 並回傳給助理。此伺服器為非官方專案,與 wFirma 無關聯。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Wfirma Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

wFirma MCP

Unofficial, read-only MCP server for the wFirma API v2 (api2.wfirma.pl). Gives MCP-compatible AI assistants typed, read-only access to company data, invoices, contractors, expenses, and payments — with credentials that never leave your machine and no commercial middleware between you and wFirma.

Not affiliated with wFirma. "wFirma" is a trademark of its respective owner.

Tools (9, all read-only)

ToolEndpoint
wfirma_list_companiesGET /user_companies/find
wfirma_list_invoicesGET /invoices/find
wfirma_get_invoiceGET /invoices/get/{id}
wfirma_list_contractorsGET /contractors/find
wfirma_get_contractorGET /contractors/get/{id}
wfirma_list_expensesGET /expenses/find
wfirma_get_expenseGET /expenses/get/{id}
wfirma_list_paymentsGET /payments/find
wfirma_get_paymentGET /payments/get/{id}

Every company-scoped tool requires the internal companyId returned by wfirma_list_companies. A Polish NIP is not accepted as a company id.

Why read-only

The server intentionally contains no add, edit, delete, send, fiscalization, KSeF, or payment-mutation operation. The full list of excluded categories, reviewed against the official documentation at doc.wfirma.pl, is recorded in coverage-manifest.json. If you need writes, use wFirma's own tooling — not this server.

Setup

Credentials

wFirma API keys are created in your wFirma panel (Integrations → API). Required environment variables:

  • WFIRMA_ACCESS_KEY
  • WFIRMA_SECRET_KEY
  • WFIRMA_APP_KEY

See .env.example. Never commit real values.

Build

bash
pnpm installpnpm build      # → dist/index.js (self-contained esbuild bundle)pnpm test       # all HTTP traffic is mocked; no live account needed

Claude Desktop / any stdio MCP client

json
{  "mcpServers": {    "wfirma": {      "command": "node",      "args": ["/absolute/path/to/wfirma-mcp/dist/index.js"],      "env": {        "WFIRMA_ACCESS_KEY": "your-access-key",        "WFIRMA_SECRET_KEY": "your-secret-key",        "WFIRMA_APP_KEY": "your-app-key"      }    }  }}

Claude Code / Cursor (scope: project)

bash
claude mcp add wfirma -- node /absolute/path/to/wfirma-mcp/dist/index.js

Design notes

  • No runtime dependencies beyond the MCP SDK and zod. The client uses Node's stdlib https with a hard 20s timeout and a bounded response-size guard.
  • Fail-closed error taxonomy. Missing credentials, non-numeric company ids, oversized responses, and auth failures each raise a distinct wfirma_* error code instead of a generic failure.
  • No PII in logs. Tool parameters are never logged.
  • Coverage manifest. coverage-manifest.json maps every tool to its endpoint, risk class, and the test that proves it; a CI test enforces the manifest stays in sync with the source.

License

MIT

來源:README.md,提交 00214de

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分