Toronto Open Data MCP Server

by vduquette

282 downloads
Not rated
GitHub

Description

# Toronto Open Data MCP Server An MCP (Model Context Protocol) server that provides direct access to Toronto's Open Data through the CKAN API. This server allows LLM agents to efficiently discover, explore, and query Toronto's 500+ public datasets. ## Features - 🧠 **Intelligent…

About

# Toronto Open Data MCP Server An MCP (Model Context Protocol) server that provides direct access to Toronto's Open Data through the CKAN API. This server allows LLM agents to efficiently discover, explore, and query Toronto's 500+ public datasets. ## Features - 🧠 **Intelligent Query Engine**: One-tool solution that…

Details

Author
vduquette
Downloads
282
Categories
Search

- Intelligent Query Engine that automatically finds and returns relevant data.
- Relevance scoring to rank datasets by question relevance.
- Smart filtering based on context (recent data, failures, locations).
- Adaptive data processing for real‑time API and CSV data.
- Agent‑optimized design for minimal LLM decision complexity.
- Robust deployment ready with health checks for Railway/cloud.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Toronto Open Data MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Clone the repository, install dependencies with pip install -e ., then run python main.py. The primary tool is toronto_find_and_query_data(user_question), a one-step solution that finds and processes the most relevant data. Alternative tools include toronto_start_here(), toronto_search_datasets(query), and toronto_smart_data_helper(dataset_id, user_question).

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "toronto open data mcp server": {
            "toronto-open-data-mcp-server": {
                "command": "python",
                "args": [
                    "main.py"
                ]
            }
        }
    }
}

McpServers

{
    "toronto-open-data-mcp-server": {
        "command": "python",
        "args": [
            "main.py"
        ]
    }
}

Toronto Open Data MCP Server

An MCP (Model Context Protocol) server that provides direct access to Toronto's Open Data through the CKAN API. This server allows LLM agents to efficiently discover, explore, and query Toronto's 500+ public datasets.

Features

- 🧠 Intelligent Query Engine: One-tool solution that automatically finds, processes, and returns relevant Toronto data
- 🎯 Relevance Scoring: Automatically ranks datasets by relevance to your question
- 🔍 Smart Filtering: Applies intelligent filters based on question context (recent data, failures, locations)
- 📊 Adaptive Data Processing: Handles both real-time API data and downloadable CSV files seamlessly
- 🚀 Agent-Optimized: Designed specifically for LLM agents with minimal decision complexity
- ✅ Robust Deployment: Ready for Railway/cloud deployment with health checks

Installation

1. Clone the repository:

   git clone https://github.com/yourusername/toronto-open-data-mcp-server.git
cd toronto-open-data-mcp-server

2. Install dependencies:

   # Install main dependencies
pip install -e .

# Install test dependencies (optional)
pip install -e ".[test]"

3. Run the server:

   python main.py

Usage

Quick Start

Primary Tool (Recommended):
- toronto_find_and_query_data(user_question) - One-step solution that finds and processes the most relevant data

Alternative Tools:
- toronto_start_here() - Get usage guidance and workflow explanation
- toronto_search_datasets(query) - Manual dataset discovery
- toronto_smart_data_helper(dataset_id, user_question) - Process specific datasets

Example Usage

```python

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.