ontario-data-mcp — An MCP server for Ontario's open data
Description: An MCP server for Ontario's open data catalogue. Search, cache, and query 6,900+ government datasets from any MCP client.

Recently Updated

## How it works

Each question triggers a pipeline of tool calls.

1
Search
Finds relevant datasets across Ontario, Toronto, Ottawa, Waterloo, Kitchener, and Region of Waterloo open data portals. Keyword, topic, or related-dataset lookup.
2
Retrieve
Downloads CSVs, XLSX, shapefiles, GeoJSON. Parses and caches locally in DuckDB.
3
Analyze
Runs SQL against cached data. Aggregations, joins, window functions — results come back as insight.
4
Validate
Cross-checks every claim against the underlying query. Catches hallucinations before they reach you.

## See it in action

Real questions, real data, real SQL. Expand any card to see the tool calls or the follow-up question.

## 23 tools under the hood

Expand any category to see the individual tools.

Discovery 5 tools
Search by keyword, topic, ministry, or geographic area.
search_datasets, list_portals, list_organizations, list_topics, find_related_datasets
Metadata 4 tools
Inspect schemas, resources, and compare datasets side by side.
get_dataset_info, list_resources, get_resource_schema, compare_datasets
Retrieval 4 tools
Download and cache datasets locally in DuckDB for fast, offline access.
download_resource, cache_info, cache_manage, refresh_cache
Querying 4 tools
Run SQL against remote or cached data. Preview rows or run custom queries.
query_resource, sql_query, query_cached, preview_data
Data Quality 3 tools
Freshness checks, completeness analysis, and statistical profiles.
check_freshness, profile_data, validate_result
Geospatial 3 tools
Load shapefiles, KML, and GeoJSON into DuckDB. Run spatial queries.
load_geodata, spatial_query, list_geo_datasets
Prompts 3 prompts
Context-aware guided workflows with live catalogue data.
explore_topic — guided exploration of any topic
data_investigation — deep dive: schema, quality, stats
compare_data — side-by-side dataset analysis
Resources 5 resources
Read-only context for the LLM: cache status, metadata, SQL tips.
ontario://cache/index — cached datasets with freshness
ontario://dataset/{id} — full dataset metadata
ontario://portal/stats — catalogue overview
ontario://schema/{table_name} — column schema and type warnings
ontario://guides/duckdb-sql — SQL tips for Ontario data
Found a bug or have a feature request? Open an issue · Feedback on the data catalogue itself? Let Ontario know