Winnipeg City MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Winnipeg City MCP Server When is the next 16 bus arriving at stop 10611?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Winnipeg City MCP Server
A powerful Model Context Protocol (MCP) server that enables AI assistants to access real-time Winnipeg Transit data and 311 City Services information. This server allows AI models like Claude to help users plan trips, check bus arrivals, find stops, and explore city service reports.
Features
π Real-time Transit Information: Get live bus arrival times and route status
πΊοΈ Trip Planning: Plan single trips or multi-stop journeys with optimized routes
π Location Search: Find bus stops near any location
ποΈ 311 City Services: Search for reported issues and explore neighborhoods
β±οΈ Time-Aware Routing: Get accurate transit schedules based on actual timetables
Related MCP server: MBTA MCP Server
Tools Included
Transit
get_bus_arrivals: Get real-time bus arrivals for a specific stopget_commute_status: Check status of specific bus routesfind_stops_near: Find bus stops near a locationplan_trip: search for a trip from an origin to a destinationplan_journey: Plan a multi-stop journey
City Services
search_311_issues: Search for reported 311 issueslist_neighborhoods: List Winnipeg neighborhoods
Prerequisites
uv (recommended for running the script)
Python 3.12+
Winnipeg Transit API key (see setup instructions below)
Setup
1. Get a Winnipeg Transit API Key
To use the transit features, you'll need a free API key from Winnipeg Transit:
Visit the Winnipeg Transit API Registration page
Sign up for a free developer account
Once approved, you'll receive your API key via email
2. Configure Environment Variables
Copy the example environment file:
cp .env.example .envEdit
.envand add your API key:TRANSIT_API_KEY=your_actual_api_key_here
How to Run
You can run the server directly using uv:
uv run server.pyConnecting to Claude Desktop
To use this MCP server with the Claude Desktop app:
Open your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following configuration (replace
/ABSOLUTE/PATH/TO/with the actual path to this repository):
{
"mcpServers": {
"winnipeg-city": {
"command": "uv",
"args": [
"run",
"/ABSOLUTE/PATH/TO/wpg-city-mcp/server.py"
]
}
}
}Restart Claude Desktop.
Debugging with MCP Inspector
You can test and debug the server using the MCP Inspector:
npx @modelcontextprotocol/inspector uv run server.pyThis will start the Inspector in your browser, allowing you to manually call tools and verify the server's behavior.
Contributing
Contributions are welcome! Feel free to:
Report bugs or suggest features by opening an issue
Submit pull requests with improvements
Improve documentation
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Winnipeg Transit for providing the transit API
City of Winnipeg Open Data for 311 services data
Model Context Protocol for the MCP framework
Available Tools
8 toolsfind_stops_nearA
Search for bus stops near a specific geographic coordinate.
Useful when you know the location (e.g. from a user's known lat/lon) but need stop IDs.
NOTE: Distance is capped at 2000 meters to allow efficient querying.
Inputs: lat (required), lon (required), distance_meters. Returns: result
get_bus_arrivalsB
Get real-time bus arrivals for a specific Winnipeg Transit stop number.
Inputs: stop_number (required). Returns: result
get_commute_statusB
Smart Commute: Get bus arrivals combined with current weather conditions.
Helpful for deciding if you need a parka or just a light jacket while waiting.
Inputs: stop_number (required). Returns: result
list_neighborhoodsB
Get a list of Winnipeg neighborhoods that have had recent 311 activity.
Optionally filter by a search_term (e.g., 'Fort').
Inputs: search_term. Returns: result
plan_journeyB
Plan a multi-stop journey (A -> B -> C ...).
Args:
stops: List of locations (plain text, stop numbers, or formatted keys)
optimize: If True, optimized the visit order (TSP) starting from the first stop.
date: Optional start date (YYYY-MM-DD or equivalent accepted by API).
time: Optional start time (HH:MM).
Inputs: stops (required), optimize, date, time. Returns: result
plan_timed_itineraryB
Plan an optimized itinerary with specific stay durations at each stop.
Args:
stops_config: List of dictionaries. The first stop is the origin.
Each item format: {"location": "...", "min_stay": minutes, "max_stay": minutes}
(Stay times for the LAST stop are ignored).
start_date: YYYY-MM-DD
start_time: HH:MM
Inputs: stops_config (required), start_date, start_time. Returns: result
plan_tripB
Plan a trip between two points using Winnipeg Transit.
Arguments 'origin' and 'destination' can be:
- Plain text addresses or landmarks (e.g. "The Forks", "IKEA", "123 Main St") - Resolved via OSM
- Stop numbers (e.g. "10625", "Stop 10541")
- Formatted keys:
- "stops/{key}"
- "geo/{lat},{lon}"
- "intersection/{key}"
Inputs: origin (required), destination (required), mode, date, +1 more. Returns: result
search_311_issuesB
Search for recent 311 service requests in a specific Winnipeg neighborhood.
Inputs: neighborhood (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 8 tools
Most tools have distinct purposes, but 'plan_journey', 'plan_timed_itinerary', and 'plan_trip' could cause confusion due to overlapping trip-planning functionality. Their descriptions clarify differences (multi-stop vs. timed itinerary vs. point-to-point), but an agent might initially misselect without careful reading.
Tool names follow a consistent verb_noun pattern throughout (e.g., 'find_stops_near', 'get_bus_arrivals'), with only minor deviations like 'plan_timed_itinerary' being slightly longer. The naming is predictable and readable, supporting easy identification.
With 8 tools, the count is well-scoped for a city transit and services server. Each tool addresses a specific aspect of Winnipeg's public services (e.g., transit stops, arrivals, journeys, neighborhoods, 311 issues), avoiding bloat while covering core functionalities.
The toolset provides strong coverage for transit planning, real-time arrivals, and neighborhood/311 services, with no major gaps in core workflows. Minor gaps might include lack of tools for transit alerts or detailed neighborhood demographics, but agents can work effectively with the available tools.
Maintenance
Related MCP Connectors
Provides access to Civic Plus - See Click Fix, allowing you to interact with your data via an LLM.β¦
Provide real-time transportation data including bus arrivals, train service alerts, carpark availaβ¦
Real-time transit stops, routes, arrivals, vehicle positions, and schedules via OneBusAway APIs.
Mobility, geocoding and nearby urban services for AI agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides real-time transit data for OC Transpo in Ottawa, including live vehicle positions and trip updates via GTFS-RT feeds. It enables AI agents to monitor arrival delays, schedule changes, and transit telemetry through the Model Context Protocol.2-
- AlicenseBqualityFmaintenanceEnables AI clients to access Boston's MBTA public transit data, including real-time predictions, schedules, route planning, and service alerts.321Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables natural language queries for Porto Alegre's public transport system, including route planning, stop search, and route information via Claude Desktop or any MCP-compatible client.MIT

data-winnipegofficial
AlicenseNot gradedqualityBmaintenanceEnables searching and querying Winnipeg Open Data datasets through natural language or SoQL, with tools for datasets, metadata, and row-level data.144 npmMIT