- Explore MCP Servers
- busnearby-mcp
Busnearby Mcp
What is Busnearby Mcp
Bus Nearby MCP is an unofficial Model Context Protocol (MCP) server that provides access to the Israeli transport API, specifically designed for the Bus Nearby API.
Use cases
Use cases include developing mobile apps for public transport navigation, integrating transport data into travel websites, and providing real-time transit information for users.
How to use
To use busnearby-mcp, you can set it up using Docker or run it locally with Node.js. Follow the setup instructions provided in the README to build and connect the MCP server.
Key features
Key features include geocoding for location queries, transit directions between locations, multi-language support for Hebrew and English, standard MCP protocol implementation, and easy deployment with Docker.
Where to use
Busnearby-mcp can be used in transportation applications, travel planning services, and any software that requires access to public transport data in Israel.
Overview
What is Busnearby Mcp
Bus Nearby MCP is an unofficial Model Context Protocol (MCP) server that provides access to the Israeli transport API, specifically designed for the Bus Nearby API.
Use cases
Use cases include developing mobile apps for public transport navigation, integrating transport data into travel websites, and providing real-time transit information for users.
How to use
To use busnearby-mcp, you can set it up using Docker or run it locally with Node.js. Follow the setup instructions provided in the README to build and connect the MCP server.
Key features
Key features include geocoding for location queries, transit directions between locations, multi-language support for Hebrew and English, standard MCP protocol implementation, and easy deployment with Docker.
Where to use
Busnearby-mcp can be used in transportation applications, travel planning services, and any software that requires access to public transport data in Israel.
Content
Bus Nearby MCP (Israeli transport MCP).
A Model Context Protocol (MCP) server that provides access to the Israeli transport api.
This is the Unofficial MCP of Bus Nearby API, You can check this API here.
Features
https://github.com/user-attachments/assets/147ee388-e9c0-4f97-82e7-71d4d6534de0
- ๐ Geocoding: Convert location queries to geographical coordinates
- ๐บ๏ธ Directions: Get transit directions between locations
- ๐ Multi-language: Support for Hebrew and English
- ๐ MCP Protocol: Standard MCP server implementation
- ๐ฆ Docker Support: Easy deployment with Docker
Quick Start with Docker + Cursor
Prerequisites
- Cursor IDE
Setup Instructions
-
Setup the MCP server:
{ "mcpServers": { "busnearby-docker": { "command": "docker", "args": [ "run", "--rm", "-i", "shmuelc/busnearby-mcp:latest" ] } } }
Connect locally with Docker
-
Clone this repo
-
Navigate to repo foler
-
Build and setup the MCP server:
docker build -t busnearby-mcp .
-
Add this to mcp.json
{ "mcpServers": { "busnearby": { "command": "docker", "args": [ "run", "--rm", "-i", "--name", "busnearby-mcp-cursor", "busnearby-mcp" ], "env": {} } } }
Connect locally without Docker
Prerequisites
- Node.js 18+ installed
- npm or yarn
- Cursor IDE
Setup Instructions
-
Install dependencies:
npm install
-
Build the project:
npm run build
-
Test the MCP server:
npm start
-
Add to your Cursor MCP configuration:
{ "mcpServers": { "busnearby": { "command": "node", "args": [ "/Users/shmuel/Desktop/personal/busnearby-mcp/dist/main.js" ], "env": {} } } }
Important: Replace the path with your actual project path.
-
Restart Cursor to load the new MCP server
Available Tools
geocode
Convert location queries to coordinates.
Parameters:
locale
: โheโ or โenโ (Hebrew or English)query
: Location string (e.g., โืชื ืืืืโ or โTel Avivโ)
Example:
{
"locale": "he",
"query": "ืชื ืืืื"
}
directions
Get transit directions between locations.
Parameters:
fromPlace
: Starting location (โaddress::lat,lngโ)toPlace
: Destination (โaddress::lat,lngโ)locale
: โheโ or โenโ (default: โheโ)arriveBy
: Optimize for arrival time (default: false)wheelchair
: Wheelchair accessible (default: false)mode
: Transport modes (default: โWALK,TRANSITโ)numItineraries
: Number of routes (default: 3)date
: Trip date (YYYY-MM-DD, optional)time
: Trip time (HH:MM, optional)
Docker Commands
# Build the image
docker build -t busnearby-mcp .
# Run with docker-compose
docker-compose up -d
# Run interactively for testing
docker run --rm -i busnearby-mcp
# Test MCP protocol
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{"tools":{}},"clientInfo":{"name":"test","version":"1.0.0"}}}' | docker run --rm -i busnearby-mcp
Development
Local Development
npm install npm run dev
Build and Test
npm run build
npm start
npm run test:e2e
Troubleshooting
Docker Issues
- Ensure Docker is running
- Try rebuilding:
docker build --no-cache -t busnearby-mcp .
- Check logs:
docker logs busnearby-mcp
Cursor Connection Issues
- Restart Cursor after configuration changes
- Check MCP configuration path is correct
- Verify Docker image exists:
docker images | grep busnearby-mcp
MCP Protocol Issues
- Test server directly:
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{"tools":{}},"clientInfo":{"name":"test","version":"1.0.0"}}}' | docker run --rm -i busnearby-mcp
- Check for JSON-RPC format in responses
API Reference
This MCP server interfaces with the Bus Nearby API to provide:
- Location geocoding in multiple languages
- Multi-modal transit routing
- Real-time schedule information
- Accessibility features
All responses follow standard MCP protocol formatting with proper error handling.
Contributing
Feel free to:
- ๐ Report bugs or issues
- ๐ก Suggest new features or improvements
- ๐ Improve documentation
- ๐ง Submit pull requests
Getting Started:
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
All contributions are welcome and appreciated!