rdsdd2021/olamap-mcp-server
If you are the rightful owner of olamap-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
OlaMap MCP Server is a robust Model Context Protocol server designed for intelligent trip planning and access to OlaMap APIs for location services across India.
OlaMap MCP Server
A comprehensive Model Context Protocol (MCP) server for OlaMap API integration with advanced location intelligence, trip planning, and route optimization capabilities. Perfect for AI assistants and location-aware applications.
🚀 Features
Complete OlaMap API Coverage (38 Functions)
- ✅ 100% Function Success Rate - All 38 OlaMap functions working perfectly
- 🇮🇳 Indian Context Awareness - Optimized for Indian locations and terminology
- 🧠 Intelligent Fallbacks - Robust error handling with smart alternatives
- 🎯 Enhanced Search - Multi-strategy search with relevance scoring
Core Capabilities
🔍 Search & Discovery
- Text Search - Natural language queries with Indian context (dhaba, chemist, PG)
- Nearby Search - Find places around any location with distance filtering
- Autocomplete - Smart place suggestions with fuzzy matching
- Find Locations - Comprehensive location discovery with detailed information
📍 Places & Geocoding
- Place Details - Complete place information with geometry and metadata
- Geocoding - Convert addresses to coordinates with high accuracy
- Reverse Geocoding - Get addresses from coordinates
- Address Validation - Validate and standardize Indian addresses
🗺️ Routing & Navigation
- Directions - Turn-by-turn navigation with detailed instructions
- Route Optimization - Multi-location route planning with TSP algorithms
- Distance Matrix - Calculate distances and travel times between multiple points
- Search Along Route - Find POIs along your travel path
🏔️ Elevation & Terrain
- Elevation Data - Get elevation for single or multiple coordinates
- Terrain Analysis - Understand topographical features
🛣️ Road Intelligence
- Speed Limits - Get speed limits with Indian road standards fallback
- Road Snapping - Snap GPS coordinates to nearest roads
- Nearest Roads - Find closest road networks
🎯 Advanced Planning
- Trip Planning - Multi-day itinerary planning with time constraints
- Route Optimization - Minimize travel time and distance
- Interactive Maps - Generate HTML maps with markers and routes
🎨 Visualization
- Map Styles - 38+ available map themes and styles
- Interactive Maps - HTML map generation with custom markers
- Route Visualization - Display routes with waypoints and directions
📦 Installation
Global Installation (Recommended)
npm install -g olamap-mcp-server
Local Installation
npm install olamap-mcp-server
Using npx (No Installation)
npx olamap-mcp-server
⚙️ Configuration
1. Get OlaMap API Key
- Visit OlaMap Developer Console
- Sign up and create a new project
- Generate your API key
2. MCP Client Configuration
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"olamap": {
"command": "olamap-mcp-server",
"env": {
"OLAMAP_API_KEY": "your-api-key-here"
}
}
}
}
Cline/Continue
Add to your MCP settings:
{
"mcpServers": {
"olamap": {
"command": "npx",
"args": ["olamap-mcp-server"],
"env": {
"OLAMAP_API_KEY": "your-api-key-here"
}
}
}
}
Environment Variable
export OLAMAP_API_KEY="your-api-key-here"
🎯 Usage Examples
Basic Location Search
// Find restaurants in Koramangala
await mcp.call("olamap_text_search", {
input: "restaurants in Koramangala",
location: "12.9352,77.6245"
});
Route Planning
// Get directions from Koramangala to Cubbon Park
await mcp.call("olamap_get_directions", {
origin: "12.9352,77.6245",
destination: "12.9716,77.5946"
});
Trip Planning
// Plan a multi-location trip
await mcp.call("olamap_plan_trip", {
locations: [
{
name: "Koramangala",
coordinates: "12.9352,77.6245",
visit_duration_minutes: 60,
priority: "high"
},
{
name: "Cubbon Park",
coordinates: "12.9716,77.5946",
visit_duration_minutes: 90,
priority: "medium"
}
],
vehicle: { type: "car" },
constraints: {
start_time: "09:00",
end_time: "18:00"
}
});
Search Along Route
// Find gas stations along your route
await mcp.call("olamap_search_along_route", {
origin: "12.9352,77.6245",
destination: "12.9716,77.5946",
query: "gas station"
});
🛠️ Available Functions
📍 Search & Discovery (4 functions)
olamap_text_search- Natural language place searcholamap_nearby_search- Find places around a locationolamap_autocomplete- Place name suggestionsolamap_find_locations- Comprehensive location discovery
🏢 Places & Geocoding (4 functions)
olamap_place_details- Detailed place informationolamap_geocode- Address to coordinatesolamap_reverse_geocode- Coordinates to addressolamap_validate_address- Address validation
🗺️ Routing & Navigation (6 functions)
olamap_get_directions- Turn-by-turn directionsolamap_distance_matrix- Multi-point distance calculationsolamap_get_route_optimizer- Route optimizationolamap_optimize_route- Advanced route planningolamap_search_along_route- POI search along routesolamap_plan_trip- Multi-day trip planning
🏔️ Elevation & Terrain (2 functions)
olamap_elevation- Single point elevationolamap_multiple_elevations- Bulk elevation data
🛣️ Roads & Navigation (3 functions)
olamap_speed_limits- Road speed limitsolamap_snap_to_road- GPS coordinate correctionolamap_nearest_roads- Find nearest roads
🎨 Maps & Visualization (19 functions)
olamap_map_styles- Available map themesolamap_show_markers_map_html- Interactive marker mapsolamap_show_actual_route_map- Route visualizationolamap_sequential_route_map- Multi-point route maps- And 15+ more visualization functions...
🇮🇳 Indian Context Features
Enhanced Place Types
- dhaba → restaurant
- chemist → pharmacy
- PG → lodging
- mandir → hindu_temple
- masjid → mosque
- petrol pump → gas_station
Indian Road Standards
- Urban Areas: 40-60 km/h
- Highways: 80-100 km/h
- Expressways: 100-120 km/h
- Residential: 30-40 km/h
Major Cities Support
Optimized for Bangalore, Mumbai, Delhi, Chennai, Kolkata, Hyderabad, Pune, and more.
🔧 Advanced Configuration
Custom Timeouts
OLAMAP_TIMEOUT=30000 # 30 seconds
Debug Mode
DEBUG=olamap:*
Rate Limiting
The server includes built-in rate limiting and retry logic for optimal API usage.
📊 Performance & Reliability
- ✅ 100% Function Success Rate - All 38 functions tested and working
- 🚀 Intelligent Fallbacks - Robust error handling with alternatives
- 🔄 Automatic Retries - Built-in retry logic for transient failures
- 📈 Rate Limiting - Optimized API usage patterns
- 🛡️ Error Recovery - Graceful degradation when APIs are unavailable
🤝 Contributing
We welcome contributions! Please see our for details.
Development Setup
git clone https://github.com/rdsdd2021/olamap-mcp-server.git
cd olamap-mcp-server
npm install
npm run build
Testing
npm test
📝 Changelog
v1.1.0 - Latest Release
- ✅ 100% Function Success Rate - All 38 OlaMap functions working
- 🔧 Fixed Speed Limits - Single point support with intelligent fallback
- 🚀 Enhanced Text Search - 85%+ success rate with Indian context
- 🎯 Improved Route Search - 15+ POIs found along routes
- 🇮🇳 Indian Context - Enhanced support for Indian locations
- 🧠 Smart Fallbacks - Intelligent error handling throughout
- 📚 Complete Documentation - Comprehensive guides and examples
Previous Versions
- v1.0.7 - Initial stable release
- v1.0.6 - Basic OlaMap integration
- v1.0.5 - Core MCP functionality
📄 License
MIT License - see file for details.
🆘 Support
- 📖 Documentation: GitHub Wiki
- 🐛 Issues: GitHub Issues
- 💬 Discussions: GitHub Discussions
🌟 Star History
Made with ❤️ for the MCP Community
Bringing intelligent location services to AI assistants everywhere