dk_elections_list_elections

Pack: dk-elections · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/dk_elections_list_elections for the schema, then POST the same URL with its arguments for the data.

List the Danish national elections and referendums covered: Folketing elections, European Parliament elections and referendums, 2009 to the latest held, each with date, type and the geography levels available (country down to polling-station area). Municipal and regional elections and anything before 2009 are NOT covered. Source: Statistics Denmark election results.

Parameters

NameTypeRequiredDescription
typestringnoOptional filter: folketingsvalg, europa-parlamentsvalg or folkeafstemning.

Example call

Arguments

{
  "type": "folketingsvalg"
}

curl

curl -X POST https://gateway.pipeworx.io/dk-elections/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"dk_elections_list_elections","arguments":{"type":"folketingsvalg"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('dk_elections_list_elections', {
  "type": "folketingsvalg"
});

Response shape

FieldTypeDescription
sourcestring
windowstring
data_as_ofstring
countnumber
electionsarray
Full JSON Schema
{
  "type": "object",
  "properties": {
    "source": {
      "type": "string"
    },
    "window": {
      "type": "string"
    },
    "data_as_of": {
      "type": "string"
    },
    "count": {
      "type": "number"
    },
    "elections": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "levels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the dk-elections pack
{
  "mcpServers": {
    "dk-elections": {
      "url": "https://gateway.pipeworx.io/dk-elections/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 21, 2026