opendata.swiss

live GovernmentData

opendata.swiss MCP — Switzerland's federal open-data portal (CKAN catalogue).

5 tools
0ms auth
free tier 50 calls/day

Tools

search_datasets

Search the opendata.swiss catalogue (CKAN package_search). Returns matching Swiss federal/cantonal datasets. Titles/descriptions are multilingual {de,fr,it,en}; each result is annotated with English-p

No parameters required.

Try it
dataset_details

Full metadata for one dataset (CKAN package_show) including its resources/distributions with download URLs. Use a dataset `name` (slug) or id from search_datasets. There is no datastore, so fetch `res

No parameters required.

Try it
list_organizations

List publishing organizations (federal offices, cantons, etc.). Multilingual titles flattened to `title_en`. Use a returned `name` as `organization:<name>` in search_datasets `fq`.

No parameters required.

Try it
list_groups

List thematic categories (CKAN groups / themes, e.g. health, education, energy). Multilingual titles flattened to `title_en`. Use a returned `name` as `groups:<name>` in search_datasets `fq`.

No parameters required.

Try it
list_tags

List or search keyword tags used across the catalogue (CKAN tag_list). Useful for discovering facet values.

No parameters required.

Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/opendata-swiss/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/opendata-swiss/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_datasets","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("search_datasets", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("opendata");