datasets

Pack: datos-gob-es · 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/datasets for the schema, then POST the same URL with its arguments for the data.

Search the Spanish open data portal (datos.gob.es) catalog by keyword, theme, or both; returns paginated dataset listings with title, publisher, and download links.

Parameters

NameTypeRequiredDescription
querystringno
pagenumberno
page_sizenumberno
themestringno

Example call

Arguments

{
  "query": "population"
}

curl

curl -X POST https://gateway.pipeworx.io/datos-gob-es/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"datasets","arguments":{"query":"population"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('datasets', {
  "query": "population"
});

More examples

{
  "query": "economic indicators",
  "theme": "economia",
  "page": 1,
  "page_size": 20
}

Response shape

FieldTypeDescription
formatstring
versionstring
resultobject
Full JSON Schema
{
  "type": "object",
  "properties": {
    "format": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "result": {
      "type": "object",
      "properties": {
        "_about": {
          "type": "string"
        },
        "definition": {
          "type": "string"
        },
        "extendedMetadataVersion": {
          "type": "string"
        },
        "first": {
          "type": "string"
        },
        "isPartOf": {
          "type": "object",
          "properties": {
            "_about": {
              "type": "string"
            },
            "definition": {
              "type": "string"
            },
            "hasPart": {
              "type": "string"
            },
            "type": {
              "type": "string"
            }
          }
        },
        "items": {
          "type": "array",
          "items": {}
        },
        "itemsPerPage": {
          "type": "number"
        },
        "page": {
          "type": "number"
        },
        "startIndex": {
          "type": "number"
        },
        "type": {
          "type": "string"
        },
        "prev": {
          "type": "string"
        }
      }
    }
  },
  "description": "Search results from datos.gob.es catalog"
}

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 datos-gob-es pack
{
  "mcpServers": {
    "datos-gob-es": {
      "url": "https://gateway.pipeworx.io/datos-gob-es/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 5, 2026