OlaMap MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OlaMap MCP Server get directions from Koramangala to Cubbon Park"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: Magic Lane MCP Server
📦 Installation
Global Installation (Recommended)
npm install -g olamap-mcp-serverLocal Installation
npm install olamap-mcp-serverUsing 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
olamap_text_search- Natural language place searcholamap_nearby_search- Find places around a locationolamap_autocomplete- Place name suggestionsolamap_find_locations- Comprehensive location discovery
olamap_place_details- Detailed place informationolamap_geocode- Address to coordinatesolamap_reverse_geocode- Coordinates to addressolamap_validate_address- Address validation
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
olamap_elevation- Single point elevationolamap_multiple_elevations- Bulk elevation data
olamap_speed_limits- Road speed limitsolamap_snap_to_road- GPS coordinate correctionolamap_nearest_roads- Find nearest roads
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 mapsAnd 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 secondsDebug 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 Contributing Guide for details.
Development Setup
git clone https://github.com/rdsdd2021/olamap-mcp-server.git
cd olamap-mcp-server
npm install
npm run buildTesting
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 LICENSE 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
Available Tools
27 toolsolamap_3d_tilesetC
Get 3D tiles configuration
Inputs: no named parameters.
olamap_autocompleteB
Get place suggestions with autocomplete for a search query
Inputs: input (required), types, radius, location.
olamap_distance_matrixC
Calculate distance and time matrix between multiple points
Inputs: origins (required), destinations (required), mode, basic, +1 more.
olamap_elevationC
Get elevation data for coordinates
Inputs: lat (required), lng (required).
olamap_find_locationsC
Find and suggest locations based on criteria (schools, restaurants, etc.)
Inputs: query (required), location (required), limit, types, +2 more.
olamap_geocodeB
Convert addresses to coordinates (forward geocoding)
Inputs: address (required), bounds, region.
olamap_get_directionsC
Provides routable path between two or more points
Inputs: origin (required), destination (required), mode, avoid, +3 more.
olamap_get_photoB
Fetches a photo URL & metadata from a photo reference
Inputs: photo_reference (required), maxWidth, maxHeight.
olamap_get_route_optimizerC
Similar to olamap_optimize_route, but includes more specific optional params like round_trip, mode
Inputs: locations (required), mode, roundTrip, endLocation, +1 more.
olamap_map_stylesB
Get available vector tile map styles
Inputs: no named parameters.
olamap_multiple_elevationsC
Get elevation data for multiple coordinates
Inputs: coordinates (required).
olamap_nearby_searchC
Find nearby places around a location
Inputs: location (required), limit, types, radius, +1 more.
olamap_nearest_roadsC
Find nearest roads to given coordinates
Inputs: points (required), mode, radius.
olamap_optimize_routeC
Optimize route order for multiple locations to minimize travel time
Inputs: locations (required), end_location, vehicle_type, start_location, +1 more.
olamap_place_detailsB
Get detailed information about a place using place_id
Inputs: place_id (required), advanced.
olamap_plan_tripC
Plan a complex multi-location trip with time constraints and vehicle considerations
Inputs: vehicle (required), locations (required), constraints (required), date.
olamap_reverse_geocodeB
Convert coordinates to addresses (reverse geocoding)
Inputs: lat (required), lng (required), result_type.
olamap_search_along_routeC
Searches for POIs along a specified route
Inputs: query (required), origin (required), destination (required), types, +1 more.
olamap_sequential_route_mapB
Generate optimized sequential route map with point-to-point routing (A→B→C→D)
Inputs: points (required), mode, zoom, width, +2 more.
olamap_show_actual_route_mapC
Generate HTML map with actual routed path using OlaMap directions API
Inputs: origin (required), destination (required), mode, zoom, +3 more.
olamap_show_map_html_for_routeC
Returns HTML for an interactive map with a polyline
Inputs: origin (required), destination (required), route_polyline (required), zoom, +3 more.
olamap_show_markers_map_htmlB
Returns HTML for a map with markers and popups, optionally connected by routes
Inputs: markers (required), zoom, width, center, +2 more.
olamap_snap_to_roadC
Snap GPS coordinates to the nearest road network
Inputs: points (required), enhancePath, interpolate.
olamap_speed_limitsC
Get speed limits for road segments
Inputs: points (required), snapStrategy.
olamap_style_configC
Get configuration for a specific map style
Inputs: style_name (required).
olamap_text_searchC
Search for places using natural language queries
Inputs: input (required), radius, location.
olamap_validate_addressC
Validate and standardize Indian addresses (must include pincode)
Inputs: address (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 27 tools
Several clusters are hard to tell apart: olamap_optimize_route vs olamap_get_route_optimizer is explicitly described as 'similar', and four separate HTML-map tools (show_map_html_for_route, show_actual_route_map, sequential_route_map, show_markers_map_html) overlap heavily. POI discovery is split across find_locations, nearby_search, text_search, and search_along_route, and nearest_roads vs snap_to_road both handle road snapping with only subtle differences.
All tools share the olamap_ prefix and snake_case, which is good, but the naming style is mixed: some are noun phrases (olamap_speed_limits, olamap_elevation, olamap_map_styles, olamap_3d_tileset) while others use varied verbs (get_, find_, show_, plan_, validate_). The 'show_*_map_html' family is especially verbose and inconsistently structured relative to the get_/find_ verbs.
27 tools exceeds a comfortable scoped surface, and the excess comes largely from duplicate capability (two route optimizers, four HTML map generators). Consolidating these variants into parameterized tools would shrink the surface substantially without losing functionality.
Coverage is broad for a mapping platform: geocoding and reverse geocoding, autocomplete, place details, multiple search modes, directions, distance matrix, route optimization, trip planning, road snapping, elevation, speed limits, and map rendering. Only minor gaps like traffic conditions or isochrone analysis are absent, which agents can work around.
Maintenance
Related MCP Connectors
Routing, geocoding, places, matrix and map tools for location-aware AI workflows.
Place search, routes and spatial reasoning for AI agents, with real-world addresses.
1Geocoding, routing, isochrones, traffic, weather, and place search for AI agents. 19 MCP tools.
Render static locator maps (area highlight, places, routes) and search places from AI assistants.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to access Google Maps services including places search, details, directions, geocoding, and nearby search through natural language.63MIT

Magic Lane MCP Serverofficial
AlicenseBqualityCmaintenanceEnables AI agents to become geospatially intelligent assistants with tools for location search, smart routing, round trip planning, reverse geocoding, isochrone analysis, route visualization, geofence management, and interactive map display.820 npm8Apache 2.0
Neshan MCP Serverofficial
FlicenseAqualityCmaintenanceEnables AI assistants to access Neshan maps services for location search, routing, traffic analysis, and more through natural language.1611-- AlicenseAqualityDmaintenanceEnables AI agents to perform geocoding, routing, nearby search, and other location-based tasks for Indian addresses using the Mappls (MapMyIndia) platform.1748 npm3MIT