Infobus
Model Context Protocol server enabling AI assistants to access transit information through standardized interfaces
What is Infobus?
Infobus is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to model context protocol server enabling ai assistants to access transit information through standardized interfaces
Model Context Protocol server enabling AI assistants to access transit information through standardized interfaces
This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Model Context Protocol server enabling AI assistants to acce
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx infobusConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Infobus
Infobus MCP Server provides AI assistants with real-time access to public transit information through a standardized MCP interface, connecting to the Infobús GTFS-based transit API to answer questions about bus arrivals, stop information, and route details. Built in Python with the official MCP SDK, it exposes tools that accept GTFS stop identifiers and ISO 8601 timestamps to retrieve the next arriving buses at any stop in the connected transit network. Transit agencies, city planners, and commuters can use this server to enable natural-language transit queries within their AI workflows.
Prerequisites
- Python 3.14 or later
- uv Python package manager installed
- Access to the Infobús API (public endpoint at https://infobus.bucr.digital/api or a self-hosted instance)
- An MCP-compatible client such as Claude Desktop
Clone the repository
Clone the infobus-mcp repository from GitHub. The server code lives in the server/ subdirectory.
git clone https://github.com/simovilab/infobus-mcp.git
cd infobus-mcpCreate a virtual environment and install dependencies
Use uv to create a virtual environment in the server directory and install all required packages including the MCP SDK, httpx, and python-decouple.
cd server
uv venv
source .venv/bin/activate
uv syncConfigure the API endpoint
Create a .env file in the server directory to set the Infobús API base URL. For the public Costa Rica transit network, use the production endpoint. For self-hosted GTFS APIs, use your own URL.
# server/.env
INFOBUS_API_BASE=https://infobus.bucr.digital/api
USER_AGENT=transit-app/1.0Test the server locally
Run the server directly to verify it starts without errors before integrating it with Claude Desktop.
uv --directory server run transit.pyConfigure Claude Desktop
Add the Infobus MCP server to your Claude Desktop configuration. Use absolute paths for the command and directory.
{
"mcpServers": {
"infobus": {
"command": "/absolute/path/to/infobus-mcp/server/.venv/bin/python",
"args": ["/absolute/path/to/infobus-mcp/server/transit.py"],
"env": {
"INFOBUS_API_BASE": "https://infobus.bucr.digital/api",
"USER_AGENT": "transit-app/1.0"
}
}
}
}Infobus Examples
Client configuration
Claude Desktop configuration for the Infobus MCP server pointing to the public Infobús API for Costa Rica transit data.
{
"mcpServers": {
"infobus": {
"command": "/absolute/path/to/infobus-mcp/server/.venv/bin/python",
"args": ["/absolute/path/to/infobus-mcp/server/transit.py"],
"env": {
"INFOBUS_API_BASE": "https://infobus.bucr.digital/api",
"USER_AGENT": "transit-app/1.0"
}
}
}
}Prompts to try
These prompts exercise the stops_next_trips and stops_info tools using GTFS stop identifiers.
- "When is the next bus arriving at stop ID 1042?"
- "Show me the next 4 buses at stop 2203 as of right now"
- "What information is available for stop ID 500?"
- "Get the next bus arrivals at stop 1001 at 2025-09-15T08:30:00"
- "List all available transit routes"Troubleshooting Infobus
uv sync fails or dependencies cannot be installed
Ensure you are using Python 3.14 as specified in the project requirements. Run 'uv python install 3.14' to download the correct Python version if needed. Confirm uv is up to date with 'uv self update'.
API returns empty results or connection refused
Verify that INFOBUS_API_BASE is correctly set to https://infobus.bucr.digital/api (no trailing slash). Test the API directly in a browser or with curl: 'curl https://infobus.bucr.digital/api/stops/1042/next_trips'. For self-hosted instances, confirm the API service is running and accessible.
stops_next_trips returns no arrivals
The tool uses the current timestamp if none is provided. Outside of service hours or for inactive stops, results may be empty. Verify the stop ID is valid by checking the Infobús API documentation or querying the agencies_info tool. Use ISO 8601 format (e.g., 2025-09-15T08:30:00) when providing explicit timestamps.
Frequently Asked Questions about Infobus
What is Infobus?
Infobus is a Model Context Protocol (MCP) server that model context protocol server enabling ai assistants to access transit information through standardized interfaces It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Infobus?
Follow the installation instructions on the Infobus GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Infobus?
Infobus works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Infobus free to use?
Yes, Infobus is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Infobus Alternatives — Similar Search & Data Extraction Servers
Looking for alternatives to Infobus? Here are other popular search & data extraction servers you can use with Claude, Cursor, and VS Code.
TrendRadar
★ 58.0kA real-time hotspot monitoring and news aggregation assistant that provides AI-powered analysis of trending topics across multiple platforms via the Model Context Protocol. It enables users to track news and receive automated notifications through va
Scrapling
★ 52.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
PDF Math Translate
★ 33.9k[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
GPT Researcher
★ 27.2kAn autonomous agent that conducts deep research on any data using any LLM providers
Agent Reach
★ 20.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Xiaohongshu
★ 13.7kMCP for xiaohongshu.com
Browse More Search & Data Extraction MCP Servers
Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Infobus in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Infobus?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.