quebec_catalogue_datastore

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

Read rows and field types from a datastore-enabled Quebec resource by resource id (from quebec_catalogue_dataset, where datastore is true). Supports free-text q, exact-match filters, sort, limit and offset. limit 0 returns only the fields and their types. Source: Gouvernement du Quebec, Donnees Quebec.

Parameters

NameTypeRequiredDescription
resource_idstringyesDatastore resource id (UUID).
qstringnoFree-text search across columns.
filtersobjectnoExact-match filters as an object, e.g. {“Year”: 2020}.
sortstringnoSort clause, e.g. “Year desc”.
limitnumbernoRows (0-1000, default 20). 0 returns fields only.
offsetnumbernoRow offset for paging.

Example call

Arguments

{
  "resource_id": "05deae93-d9fc-4acb-9779-e0942b5e962f",
  "limit": 3
}

curl

curl -X POST https://gateway.pipeworx.io/data-quebec/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"quebec_catalogue_datastore","arguments":{"resource_id":"05deae93-d9fc-4acb-9779-e0942b5e962f","limit":3}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('quebec_catalogue_datastore', {
  "resource_id": "05deae93-d9fc-4acb-9779-e0942b5e962f",
  "limit": 3
});

Response shape

FieldTypeDescription
resource_idstring
totalnumber
countnumber
fieldsarray
rowsarray
sourcestring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "resource_id": {
      "type": "string"
    },
    "total": {
      "type": "number"
    },
    "count": {
      "type": "number"
    },
    "fields": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "label": {
            "type": "null"
          },
          "notes": {
            "type": "null"
          }
        },
        "additionalProperties": true
      }
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "_id": {
            "type": "number"
          },
          "NO_SEQ_COLL": {
            "type": "string"
          },
          "JR_SEMN_ACCDN": {
            "type": "string"
          },
          "DT_ACCDN": {
            "type": "string"
          },
          "CD_MUNCP": {
            "type": "string"
          },
          "NO_CIVIQ_ACCDN": {
            "type": [
              "string",
              "null"
            ]
          },
          "SFX_NO_CIVIQ_ACCDN": {
            "type": "null"
          },
          "BORNE_KM_ACCDN": {
            "type": "null"
          },
          "RUE_ACCDN": {
            "type": "string"
          },
          "TP_REPRR_ACCDN": {
            "type": [
              "string",
              "null"
            ]
          },
          "ACCDN_PRES_DE": {
            "type": [
              "string",
              "null"
            ]
          },
          "NB_METRE_DIST_ACCD": {
            "type": "null"
          },
          "CD_GENRE_ACCDN": {
            "type": "string"
          },
          "CD_SIT_PRTCE_ACCDN": {
            "type": "null"
          },
          "CD_ETAT_SURFC": {
            "type": "string"
          },
          "CD_ECLRM": {
            "type": [
              "string",
              "null"
            ]
          },
          "CD_ENVRN_ACCDN": {
            "type": [
              "string",
              "null"
            ]
          },
          "NO_ROUTE": {
            "type": "null"
          },
          "CD_CATEG_ROUTE": {
            "type": [
              "string",
              "null"
            ]
          },
          "CD_ETAT_CHASS": {
            "type": "null"
          },
          "CD_ASPCT_ROUTE": {
            "type": [
              "string",
              "null"
            ]
          },
          "CD_LOCLN_ACCDN": {
            "type": [
              "string",
              "null"
            ]
          },
          "CD_POSI_ACCDN": {
            "type": "null"
          },
          "CD_CONFG_ROUTE": {
            "type": [
              "string",
              "null"
            ]
          },
          "CD_ZON_TRAVX_ROUTR": {
            "type": "null"
          },
          "CD_PNT_CDRNL_ROUTE": {
            "type": "null"
          },
          "CD_PNT_CDRNL_REPRR": {
            "type": [
              "null",
              "string"
            ]
          },
          "CD_COND_METEO": {
            "type": "string"
          },
          "NB_VEH_IMPLIQUES_ACCDN": {
            "type": "string"
          },
          "NB_MORTS": {
            "type": "string"
          },
          "NB_BLESSES_GRAVES": {
            "type": "string"
          },
          "NB_BLESSES_LEGERS": {
            "type": "string"
          },
          "HEURE_ACCDN": {
            "type": "string"
          },
          "AN": {
            "type": "string"
          },
          "NB_VICTIMES_TOTAL": {
            "type": "string"
          },
          "GRAVITE": {
            "type": "string"
          },
          "REG_ADM": {
            "type": "string"
          },
          "MRC": {
            "type": "string"
          },
          "nb_automobile_camion_leger": {
            "type": "string"
          },
          "nb_camionLourd_tractRoutier": {
            "type": "string"
          },
          "nb_outil_equipement": {
            "type": "string"
          },
          "nb_tous_autobus_minibus": {
            "type": "string"
          },
          "nb_bicyclette": {
            "type": "string"
          },
          "nb_cyclomoteur": {
            "type": "string"
          },
          "nb_motocyclette": {
            "type": "string"
          },
          "nb_taxi": {
            "type": "string"
          },
          "nb_urgence": {
            "type": "string"
          },
          "nb_motoneige": {
            "type": "string"
          },
          "nb_VHR": {
            "type": "string"
          },
          "nb_autres_types": {
            "type": "string"
          },
          "nb_veh_non_precise": {
            "type": "string"
          },
          "NB_DECES_PIETON": {
            "type": "string"
          },
          "NB_BLESSES_PIETON": {
            "type": "string"
          },
          "NB_VICTIMES_PIETON": {
            "type": "string"
          },
          "NB_DECES_MOTO": {
            "type": "string"
          },
          "NB_BLESSES_MOTO": {
            "type": "string"
          },
          "NB_VICTIMES_MOTO": {
            "type": "string"
          },
          "NB_DECES_VELO": {
            "type": "string"
          },
          "NB_BLESSES_VELO": {
            "type": "string"
          },
          "NB_VICTIMES_VELO": {
            "type": "string"
          },
          "VITESSE_AUTOR": {
            "type": [
              "null",
              "string"
            ]
          },
          "LOC_X": {
            "type": "string"
          },
          "LOC_Y": {
            "type": "string"
          },
          "LOC_COTE_QD": {
            "type": "string"
          },
          "LOC_COTE_PD": {
            "type": "string"
          },
          "LOC_DETACHEE": {
            "type": "string"
          },
          "LOC_IMPRECISION": {
            "type": "string"
          },
          "LOC_LONG": {
            "type": "string"
          },
          "LOC_LAT": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    },
    "source": {
      "type": "string"
    }
  },
  "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 data-quebec pack
{
  "mcpServers": {
    "data-quebec": {
      "url": "https://gateway.pipeworx.io/data-quebec/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 24, 2026