Données Québec MCP
Quebec open data for AI agents
Model Context Protocol server that lets AI agents (Claude, ChatGPT, Gemini, Cursor, VS Code, etc.) search, explore, and analyze open datasets from Donnees Quebec, City of Montreal, and Quebec's geospatial services (IGO), directly through conversation.
Instead of manually browsing portals, simply ask your questions and get instant answers — including SQL-powered analytics.
SQL queries on DataStore | OGC geospatial layers | 3 data sources | Bilingual FR/EN
docker compose up -dKey Features
16 MCP Tools
Dataset search, metadata, SQL queries, geospatial layers, organizations and catalog statistics.
3 Data Sources
Donnees Quebec (provincial portal), City of Montreal (municipal data) and IGO geospatial services.
Direct SQL
SQL queries on CKAN DataStore — aggregations, GROUP BY, joins, subqueries on open data.
OGC Geospatial
WFS/WMS layers via Infrastructure Geomatique Ouverte — GeoJSON features, schemas and map images.
Query Examples
“What are the top 10 police stations with the most criminal acts in Montreal?”
The agent automatically runs a SQL GROUP BY query on Montreal's DataStore. Result: Centre-Sud (24,942), Plateau-Mont-Royal (23,041), Ville-Marie East (20,135)...
“Find data on Montreal's public trees, explore the structure, then tell me how many trees per borough.”
The agent chains 3 tools: search_montreal_datasets, query_montreal_data, then query_montreal_sql. Result: 333,556 trees across 13 boroughs, Mercier-Hochelaga-Maisonneuve leading (37,871).
“How many organizations publish data on Donnees Quebec?”
139 organizations, 1,584 datasets. City of Montreal leads with 383 datasets (24% of catalog), followed by Laval (133) and MELCCFP (119).
“What geospatial layers are available for Quebec's cultural heritage?”
The agent queries IGO WFS and finds 7 layers from the Ministry of Culture: national heritage sites, declared sites, cited sites, protected lands — with full schema.
16 Available Tools
Donnees Quebec (9 tools)
search_datasetsSearch by keywords, organization, tagsget_dataset_infoFull dataset metadatalist_dataset_resourcesList files/resources of a datasetget_resource_infoResource detailsquery_resource_dataQuery DataStore with filters and paginationquery_resource_sqlDirect SQL — aggregations, joins, subquerieslist_organizationsMinistries, cities, agenciesget_organization_infoOrganization detailsget_catalog_statsGlobal catalog statisticsCity of Montreal (3 tools)
search_montreal_datasetsSearch on donnees.montreal.caquery_montreal_dataQuery Montreal's DataStorequery_montreal_sqlSQL on Montreal dataGeospatial / IGO (4 tools)
list_geospatial_layersWFS/WMS layers from IGOget_geospatial_featuresGeoJSON features from WFSdescribe_geospatial_layerLayer schema (fields, types)get_map_urlWMS map image URLConnect Your AI Agent
claude mcp add --transport http donneesqc http://localhost:8000/mcpRun Locally
Docker (recommended)
git clone https://github.com/Stefen-Taime/donneesqc-mcp.git
cd donneesqc-mcp
docker compose up -dManual install
git clone https://github.com/Stefen-Taime/donneesqc-mcp.git
cd donneesqc-mcp
uv sync
cp .env.example .env
set -a && source .env && set +a
uv run python main.pyMIT License - Maintained by mcsEdition
Python 3.11+ required · Streamable HTTP only