Bengaluru BMTC MCP Server logo

Bengaluru BMTC MCP Server

by ajeetraina

An implementation of a Model Context Protocol (MCP) server for Bangalore Metropolitan Transport Corporation (BMTC) bus services. It provides real-time transit data through a standardized API.

View on GitHub

Last updated: N/A

What is Bengaluru BMTC MCP Server?

The Bengaluru BMTC MCP Server is a server that provides real-time transit data for Bangalore Metropolitan Transport Corporation (BMTC) bus services through a standardized Model Context Protocol (MCP) API.

How to use Bengaluru BMTC MCP Server?

To use the server, you need to install the prerequisites (Node.js, npm/yarn, MongoDB, Redis), clone the repository, configure environment variables, and start the server. You can then access the API at http://localhost:3000/api/v1 and view the API documentation at http://localhost:3000/api-docs.

Key features of Bengaluru BMTC MCP Server

  • Real-time bus location tracking

  • Route information and scheduling

  • Stop details and ETA (Estimated Time of Arrival)

  • Support for over 2,200 bus routes and 8,400+ bus stops

  • Authentication and authorization

  • Data caching and optimization

  • GeoSpatial queries for nearby stops and buses

Use cases of Bengaluru BMTC MCP Server

  • Developing mobile applications for BMTC bus users

  • Integrating real-time bus data into other transportation platforms

  • Providing accurate ETA information to commuters

  • Analyzing bus route performance and optimizing schedules

FAQ from Bengaluru BMTC MCP Server

What is the API endpoint?

The API endpoint is http://localhost:3000/api/v1

Where can I find the API documentation?

The API documentation is available at http://localhost:3000/api-docs

How do I configure the environment variables?

You can configure the environment variables in the .env file.

Do I need a BMTC API key?

For development, you can use mock data without an actual BMTC API key. For production, you would need to contact BMTC directly to request official API access.

How do I seed the database with mock data?

Run the command node src/scripts/seed.js