denmark-ministers-openness
by pipeworx-io
README.md
# @pipeworx/denmark-ministers-openness
What Danish ministers spend and receive in office, from the state's openness scheme (Åbenhedsordningen): representation spending, official trips and received gifts, per minister and month, as the Danish State Administration (Økonomistyrelsen) publishes them.
Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 2049+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
## Tools
- `dk_ministers_reports(minister?, office?, category?, include_archive?)` — every published report with its link, filtered by minister, office or category (events, gifts, representation, activities, travel).
- `dk_ministers_representation(minister | office)` — representation spending per month in DKK (gifts given, meetings) with totals.
- `dk_ministers_travel(minister | office)` — official trips per month with cost lines in DKK, or marked not yet settled.
- `dk_ministers_gifts(minister | office)` — gifts received per month from organisations and public bodies.
A name that matches no report returns `found: false` with the offices that exist, never an empty success.
## Auth
Keyless. Public pages and PDF reports, no login.
## Data sources
Økonomistyrelsen, ministers' openness scheme. The reports are monthly PDFs; the pack reads the overview page and the report on each call, one request at a time with an identifying User-Agent. Nothing is stored. Not covered: party accounts and donations (published by the parliament), events and activities reports are listed but not parsed.
## Personal data
- Ministers are named in their public role.
- A gift sender that is not recognisably an organisation or public body may be a private individual: such lines are counted in `lines_withheld_possible_private_individual` and never served. The publisher's own "Privatperson" label is passed through as written. The count is approximate because a gift description that wraps onto its own line also lands in it.
- Serving private senders' names would need its own ruling.
## Notes
Text is Danish as published. Amounts are DKK. Reports cover the current year; earlier governments sit under `include_archive`.
## Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
```json
{
"mcpServers": {
"denmark-ministers-openness": {
"url": "https://gateway.pipeworx.io/denmark-ministers-openness/mcp"
}
}
}
```
### What this endpoint actually serves
`tools/list` at `https://gateway.pipeworx.io/denmark-ministers-openness/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:
```json
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
```
Both URLs reach the same gateway and the same 2049+ 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
```bash
curl -X POST https://gateway.pipeworx.io/v1/tools/dk_ministers_reports \
-H 'Content-Type: application/json' \
-d '{"office":"Finansminister"}'
```
No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/dk_ministers_reports`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
## Run it from npm
`@pipeworx/mcp-denmark-ministers-openness` is a local stdio bridge to the Pipeworx gateway: your MCP client
starts it with `npx`, and it forwards every call to the same
`https://gateway.pipeworx.io/denmark-ministers-openness/mcp` endpoint shown above. It needs network access;
there is no offline mode.
```json
{
"mcpServers": {
"denmark-ministers-openness": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-denmark-ministers-openness"]
}
}
}
```
Without a key it calls anonymously, capped at 50 calls a day. A free account
raises that to 200 a day: get a key at https://pipeworx.io/signup and add
`"env": { "PIPEWORX_API_KEY": "<your key>" }` to the server entry.
The key is sent as a Bearer token, the same way a hosted connection sends it,
so calls are metered and billed exactly as they are there.
It lists **only** this pack's tools by default. Set `PIPEWORX_META_TOOLS=1` to
also list `ask_pipeworx` and the other gateway-wide tools.
Behind an HTTPS proxy: Node's built-in `fetch` does not read `HTTPS_PROXY` by
default. Newer Node releases honour it when `NODE_USE_ENV_PROXY=1` is set; check
your Node version's documentation.
## 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:
```
ask_pipeworx({ question: "your question about Denmark Ministers Openness data" })
```
The gateway picks the right tool and fills the arguments automatically.
## More
- [Docs and guides](https://pipeworx.io/docs)
- [pipeworx.io](https://pipeworx.io)
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues