Opendata.cat MCP API

Model Context Protocol — servidor JSON-RPC

GitHub OpenAPI

Operations 1

POST /mcp MCP Server (Streamable HTTP) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/opendata-cat:opendata-cat-mcp-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

opendata-cat-mcp-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Opendata.cat MCP API
  description: API publica per accedir al cataleg de +2.800 datasets de dades obertes de Catalunya. 9 portals (Generalitat, Barcelona, Diba, AOC, Reus, Girona, FGC, Idescat, Renfe) + dades de +1.000 municipis. Queryable via Socrata, CKAN, Opendatasoft, Idescat API, GTFS-RT i Renfe GTFS-RT JSON.
  version: 1.0.0
  contact:
    name: opendata.cat
    url: https://opendata.cat
    email: xavi.vinaixa@gmail.com
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
- url: https://opendata.cat/api
  description: Produccio
tags:
- name: MCP
  description: Model Context Protocol — servidor JSON-RPC
paths:
  /mcp:
    post:
      tags:
      - MCP
      summary: MCP Server (Streamable HTTP)
      description: 'Servidor MCP via JSON-RPC 2.0 sobre Streamable HTTP. Suporta initialize, tools/list, tools/call, prompts/list, prompts/get, resources/list, resources/read i ping. Publica 8 tools, 18 prompts i 4 skills d''investigacio servides com a resources (skill:///SKILL.md) i com a prompts-pont (skill_). Documentacio del protocol: https://modelcontextprotocol.io'
      operationId: mcpEndpoint
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - jsonrpc
              - id
              - method
              properties:
                jsonrpc:
                  type: string
                  enum:
                  - '2.0'
                id:
                  type: integer
                method:
                  type: string
                  enum:
                  - initialize
                  - tools/list
                  - tools/call
                  - prompts/list
                  - prompts/get
                  - resources/list
                  - resources/read
                  - ping
                  - notifications/initialized
                params:
                  type: object
            examples:
              initialize:
                summary: Inicialitzar connexio MCP
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: initialize
                  params:
                    protocolVersion: '2025-03-26'
                    capabilities: {}
                    clientInfo:
                      name: test
                      version: '1'
              tools_list:
                summary: Llistar tools disponibles
                value:
                  jsonrpc: '2.0'
                  id: 2
                  method: tools/list
                  params: {}
              search:
                summary: Cercar datasets via MCP
                value:
                  jsonrpc: '2.0'
                  id: 3
                  method: tools/call
                  params:
                    name: search_datasets
                    arguments:
                      query: embassament
                      limit: 5
              prompts_list:
                summary: Llistar prompts disponibles
                value:
                  jsonrpc: '2.0'
                  id: 4
                  method: prompts/list
                  params: {}
              resources_list:
                summary: Llistar skills (resources)
                value:
                  jsonrpc: '2.0'
                  id: 5
                  method: resources/list
                  params: {}
              resources_read:
                summary: Llegir una skill (SKILL.md)
                value:
                  jsonrpc: '2.0'
                  id: 6
                  method: resources/read
                  params:
                    uri: skill://contractacio-publica/SKILL.md
      responses:
        '200':
          description: Resposta JSON-RPC 2.0
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object