For AI agents

Ontario Neighbourhood Data API for AI Agents

Named neighbourhoods across 25 Ontario cities. Each neighbourhood carries the 2021 Census at the dissemination-area level, with 129 metrics covering income, housing, age, language, immigration and commute, plus the nearest schools and their EQAO scores, and rankings with percentiles. Census figures are from Statistics Canada (Census of Population 2021; income is for 2020). School names and EQAO scores are from the Ontario Ministry of Education for the 2024-25 school year.

Catalog and search are free, with no account. Rankings, neighbourhood profiles and comparisons are the paid calls. Paid access is coming soon.

How to connect

The MCP server is stateless streamable HTTP. Send a POST with Content-Type: application/json and Accept: application/json, text/event-stream. A request without that Accept header gets HTTP 406. GET returns HTTP 405. No API key and no Authorization header.

Claude

Remote MCP config. The client sends the Accept header.

{
  "mcpServers": {
    "wheretolive": {
      "type": "http",
      "url": "https://wheretolive.ca/api/agent/mcp"
    }
  }
}

Cursor

.cursor/mcp.json

{
  "mcpServers": {
    "wheretolive": {
      "url": "https://wheretolive.ca/api/agent/mcp"
    }
  }
}

Direct call

curl -X POST https://wheretolive.ca/api/agent/mcp \
  -H 'content-type: application/json' \
  -H 'accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Free tools: get_catalog, search_neighbourhoods. Paid tools: rank_neighbourhoods, get_neighbourhood, compare_neighbourhoods. Paid tools currently return payments_not_live.

Questions an agent can answer

Catalog and search respond now. Rank, neighbourhood and compare are paid: while payments are off they return HTTP 503 with status payments_not_live and do not return the data.

What Ontario neighbourhood data is available?

Free

GET https://wheretolive.ca/api/agent/v1/catalog

MCP

get_catalog

What is the neighbourhood slug for Leslieville?

Free

GET https://wheretolive.ca/api/agent/v1/search?q=leslieville

MCP

search_neighbourhoods { "query": "leslieville" }

Which Toronto neighbourhoods are the most family-friendly?

Paid

GET https://wheretolive.ca/api/agent/v1/rank?city=toronto&by=family-friendly&limit=10

MCP

rank_neighbourhoods { "city": "toronto", "by": "family-friendly", "limit": 10 }

What are the nearest elementary schools, and their EQAO scores, for Leslieville?

Paid

GET https://wheretolive.ca/api/agent/v1/neighbourhood/leslieville-toronto

MCP

get_neighbourhood { "slug": "leslieville-toronto" }

EQAO scores are on the neighbourhood profile. There is no schools ranking.

How does Leslieville compare with The Annex?

Paid

GET https://wheretolive.ca/api/agent/v1/compare?a=leslieville-toronto&b=the-annex-toronto

MCP

compare_neighbourhoods { "a": "leslieville-toronto", "b": "the-annex-toronto" }

Common questions

What is the Ontario Neighbourhood Data API?

It is an API of named Ontario neighbourhoods, with 2021 Census metrics, nearest schools and their EQAO scores, and rankings. Agents can call it without an account.

Do agents need an account?

No. Agents can call the catalog and search, and can connect to the MCP server, without an account or an API key.

What is free and what is paid?

Catalog and search are free, with no account. Rankings, neighbourhood profiles and comparisons are the paid calls. Paid access is coming soon.

Where does the data cover?

Ontario only: 25 indexed Ontario cities. It does not cover other provinces.

How current is the data?

Census figures are from the 2021 Census of Population. Income is for 2020. The next census is 2026. School names and EQAO scores are from the Ontario Ministry of Education for the 2024-25 school year.

What licence applies?

Contains information licensed under the Statistics Canada Open Licence. Adapted from Statistics Canada, Census of Population, 2021. This does not constitute an endorsement by Statistics Canada of this product. School names and EQAO scores are separate: they come from the Ontario Ministry of Education, not from the Statistics Canada Open Licence.

How does an agent connect?

MCP server (streamable HTTP, POST JSON-RPC): https://wheretolive.ca/api/agent/mcp. REST base: https://wheretolive.ca/api/agent/v1. OpenAPI: https://wheretolive.ca/openapi.json. Agent summary: https://wheretolive.ca/llms.txt.

Source: Statistics Canada, Census of Population 2021, under the Statistics Canada Open Licence. School names and EQAO scores: Ontario Ministry of Education, 2024-25. Adapted from Statistics Canada, Census of Population, 2021. This does not constitute an endorsement by Statistics Canada of this product.