loading…
Search for a command to run...
loading…
Provides 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 a
Provides 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.
A Model Context Protocol (MCP) server for OC Transpo Ottawa, providing real-time transit data to AI agents and developers.
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).Clone the repository:
git clone <repository-url>
Configure environment variables:
Create a .env file in the root directory:
Ocp_Apim_Subscription_Key=your_key_here
Install dependencies:
uv sync
Start the server using uv:
uv run mcp-server.py
You can visually test the tools using the MCP Inspector:
npx -y @modelcontextprotocol/inspector uv run mcp-server.py
You can use the helper script check_route.py to filter vehicles by route ID:
uv run check_route.py 62
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_KEY
Access the Server:
The server is probably live at: https://octranspo-mcp-PROJECT_ID.us-central1.run.app/mcp
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.MIT
Made with ❤️ by Antigravity
Выполни в терминале:
claude mcp add oc-transpo-mcp-server -- npx Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolProvides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzНе уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai