
Ukraine Public Spending
io.github.pipeworx-iov0.1.0更新於 Oct 9, 2026
Ukraine public spending MCP — State Treasury payment transactions (keyless).
概覽
依 EDRPOU 代碼查詢烏克蘭國家財政支付交易,顯示公共機關付給誰,以及哪些機關付給供應商。
- 功能
- 透過 spending.gov.ua 的財政交易 API 提供工具:ua_spend_payments 回傳指定 EDRPOU 代碼的收付款紀錄,包含總額、主要付款方與收款方,以及日期、金額(UAH)、雙方、用途文字、預算與 KEKV 代碼等最新明細。ua_spend_between 回傳單一付款方到單一收款方的支付,含 found 標記、筆數、總額與逐月拆分。ua_spend_prozorro_link 補上供應商最大付款方作為買方的 ProZorro 招標,每筆關聯標示為候選。
- 適用情境
- 用來追蹤烏克蘭公共支出:某供應商收到哪些國家機關付款、某公共機關採購了什麼,或供應商的財政收款與其 ProZorro 招標的關係。適合已知 EDRPOU 代碼的採購與預算研究。
- 執行需求
- 遠端 streamable HTTP 端點 gateway.pipeworx.io,首次呼叫不需帳號或 API 金鑰。也可透過 npx @pipeworx/mcp-ukraine-public-spending 以 stdio 在本機執行,需要 Node.js。日期區間最長 92 天,日期格式須為 YYYY-MM-DD。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Ukraine Public Spending,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"ukraine-public-spending": {
"type": "http",
"url": "https://gateway.pipeworx.io/ukraine-public-spending/mcp"
}
}
}README
@pipeworx/ukraine-public-spending
Ukrainian State Treasury payment transactions from spending.gov.ua: who a public body paid, which public bodies paid a supplier, how much and for what, by EDRPOU code. Links a supplier's payments to its ProZorro tenders as labelled candidates.
Part of Pipeworx — an MCP gateway connecting AI agents to 1745+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
Tools
ua_spend_payments(recipient_edrpou?, payer_edrpou?, date_from?, date_to?, purpose_contains?, limit?): every Treasury payment to and/or from the given EDRPOU codes in a window of up to 92 days. Returns totals, top payers and recipients, and the newest rows (date, amount in UAH, both parties, purpose text, budget and KEKV codes, contract number when recorded).ua_spend_between(payer_edrpou, recipient_edrpou, date_from?, date_to?, limit?): payments from one payer to one recipient. Returnsfoundtrue/false, count, total, a per-month breakdown and the rows.found:falsecarriesdata_as_ofand a note that the open portal withholds some payers.ua_spend_prozorro_link(supplier_edrpou, date_from?, date_to?, max_payers?): the supplier's Treasury receipts, plus, for each of its largest payers, the ProZorro tenders where that payer was the buyer and the supplier took part. Each link is labelledcandidate, because a shared counterparty does not prove which contract a payment settles.
Auth
Keyless.
Data sources
- https://api.spending.gov.ua/api/v2/api/transactions/: State Treasury Service of Ukraine (ДКСУ) payment transactions, the API behind spending.gov.ua.
- https://prozorro.gov.ua/api/search/tenders (POST): ProZorro's public tender search index, used by
ua_spend_prozorro_link.
Things measured live on 2026-10-08:
payers_edrpous/recipt_edrpoustake comma-separated codes; at least one is required, and both together act as an AND.- A window longer than 92 days is a 400 with a Ukrainian message. Dates must be
YYYY-MM-DD. - Rows run about 2 days behind today.
- Payments to private individuals have the recipient code masked as
xxxxxxxxxxby the Treasury, and digits in purpose text masked asxxxx. - Some payers (for example the Ministry of Defence, 00034022) return an empty list for windows where they certainly paid. Treat empty as "not published", not "no payment".
- The first HTTPS request from a cold Cloudflare Worker can get a 525 from the origin. The pack retries once, then falls back to plain HTTP.
- ProZorro's search rows carry the buyer's name but never its EDRPOU, so the link tool queries
tenderer+buyertogether for each payer rather than comparing codes. Thetendererfilter on its own is fuzzy.
Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
What this endpoint actually serves
tools/list at https://gateway.pipeworx.io/ukraine-public-spending/mcp returns the tools in the table
above plus the shared Pipeworx meta-tools — ask_pipeworx,
discover_tools, search_within, remember/recall and the rest of the
gateway-wide set. So the tool count you see is larger than this table: a
single-pack endpoint currently lists roughly 30 shared tools alongside the
pack's own. The connection's initialize response states its exact scope, and
is the authoritative answer for a given day.
This is deliberate, not multiplexing by accident. The meta-tools are what let a
scoped connection answer a question this pack does not cover — via
ask_pipeworx, which routes across the whole catalog — without you adding a
second MCP server. There is currently no way to mount a pack endpoint without
them; if the extra schemas cost you more context than the routing is worth,
connect to the full gateway once rather than to several pack endpoints.
Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:
Both URLs reach the same gateway and the same 1745+ data sources. The
only difference is which pack's tools are listed directly; ask_pipeworx
reaches all of them from either one.
No MCP client? Call it over HTTP
No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/ua_spend_payments. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.
Standalone (no gateway account)
This package also runs as a local stdio MCP server — no Pipeworx account, no gateway round-trip:
Or run it directly to confirm it starts:
It speaks MCP over stdin/stdout and answers initialize/tools/list/tools/call
for only this pack's tools — none of the shared meta-tools the gateway
connection above adds. Same source, same tools, no ask_pipeworx routing.
Using with ask_pipeworx
Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:
The gateway picks the right tool and fills the arguments automatically.
More
License
MIT
來源:README.md,提交 cd1e57a
工具
0版本歷史
1- v0.1.0最新Oct 9, 2026
