Toronto Open Data MCP Server

by vduquette

282 downloads Not rated yet MIT license
GitHub

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

License
MIT license

Explore

- 🧠 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

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

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:


pip install -e .

pip install -e ".[test]"

3. Run the server:

   python main.py


bash

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"
        ]
    }
}

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.