OC Transpo MCP Server
Click on "Install 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., "@OC Transpo MCP ServerShow me the real-time position of buses on route 62"
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.
OC Transpo MCP Server for Learning
A Model Context Protocol (MCP) server for OC Transpo Ottawa, providing real-time transit data to AI agents and developers.
Features
get_vehicle_positions: Retrieves real-time latitude, longitude, and trip info for all active buses and trains.get_trip_updates: Fetches real-time arrival/departure delays and schedule updates.get_service_alerts: (Coming Soon) Standardized access to service disruptions (pending OC Transpo API activation).FastMCP Integration: Lightweight and easy to use with any MCP-compatible agent.
GTFS-RT Support: Native protocol buffer parsing for live transit feeds.
Related MCP server: İzmir Ulaşım MCP Server
Prerequisites
Python 3.10+
uv (recommended for dependency management)
OC Transpo API Subscription Key (Get one at the OC Transpo Developer Portal)
Setup
Clone the repository:
git clone <repository-url>Configure environment variables: Create a
.envfile in the root directory:Ocp_Apim_Subscription_Key=your_key_hereInstall dependencies:
uv sync
Usage
Running the MCP Server
Start the server using uv:
uv run mcp-server.pyTesting with MCP Inspector
You can visually test the tools using the MCP Inspector:
npx -y @modelcontextprotocol/inspector uv run mcp-server.pyScripting Example
You can use the helper script check_route.py to filter vehicles by route ID:
uv run check_route.py 62Deployment
Google Cloud Run
You can deploy this server to Google Cloud Run to make it accessible over the internet via HTTPS.
Build and Deploy:
gcloud run deploy octranspo-mcp \ --source . \ --region us-central1 \ --allow-unauthenticated \ --set-env-vars Ocp_Apim_Subscription_Key=YOUR_API_KEYAccess the Server: The server is probably live at:
https://octranspo-mcp-PROJECT_ID.us-central1.run.app/mcp
Project Structure
mcp-server.py: Main MCP server implementation.octranspo.py: API helper for GTFS-RT fetching and parsing.check_route.py: CLI tool for filtering live data.test_api.py: Connectivity and data parsing verification script.
License
MIT
Made with ❤️ by Antigravity
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables Large Language Models to access real-time data on Vilnius public transport stops and routes through the Model Context Protocol.Last updated21
- Alicense-qualityDmaintenanceProvides real-time access to İzmir's public transportation data, including bus locations, schedules, and route information for ESHOT, İZBAN, Metro, and Tram services. It enables AI assistants to perform transit queries, calculate fares, and locate nearby stations using the Model Context Protocol.Last updated411ISC
- AlicenseAqualityDmaintenanceProvides access to real-time Winnipeg Transit data and 311 City Services, enabling AI assistants to plan trips, check bus arrivals, and search for reported city issues. It allows users to interact with city infrastructure data and transit schedules through natural language.Last updated8MIT
- Alicense-qualityBmaintenanceMCP server that provides tools for querying live transit data (stops, departures, routes, vehicles, alerts) from any WP GTFS Pro site, enabling AI assistants to answer rider questions.Last updated28GPL 2.0
Related MCP Connectors
Live geolocated world-event intelligence and a Daily World Brief for AI agents.
Live Google Maps business search, review, and photo data for AI agents over MCP.
Live space data for AI agents - rocket launches, ISS passes, launch news. Free, no auth.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dwdraju/OCTranspoMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server