Skip to main content
Glama

OlaMap MCP Server

npm version License: MIT Node.js Version

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

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

  1. Visit OlaMap Developer Console

  2. Sign up and create a new project

  3. 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

// 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 search

  • olamap_nearby_search - Find places around a location

  • olamap_autocomplete - Place name suggestions

  • olamap_find_locations - Comprehensive location discovery

  • olamap_place_details - Detailed place information

  • olamap_geocode - Address to coordinates

  • olamap_reverse_geocode - Coordinates to address

  • olamap_validate_address - Address validation

  • olamap_get_directions - Turn-by-turn directions

  • olamap_distance_matrix - Multi-point distance calculations

  • olamap_get_route_optimizer - Route optimization

  • olamap_optimize_route - Advanced route planning

  • olamap_search_along_route - POI search along routes

  • olamap_plan_trip - Multi-day trip planning

  • olamap_elevation - Single point elevation

  • olamap_multiple_elevations - Bulk elevation data

  • olamap_speed_limits - Road speed limits

  • olamap_snap_to_road - GPS coordinate correction

  • olamap_nearest_roads - Find nearest roads

  • olamap_map_styles - Available map themes

  • olamap_show_markers_map_html - Interactive marker maps

  • olamap_show_actual_route_map - Route visualization

  • olamap_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 Contributing Guide 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 LICENSE file for details.

🆘 Support

🌟 Star History

Star History Chart


Made with ❤️ for the MCP Community

Bringing intelligent location services to AI assistants everywhere

Available Tools

27 tools
olamap_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_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_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

    C2.8/5.0

    Scored across 27 tools

    Disambiguation2/5

    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.

    Naming Consistency3/5

    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.

    Tool Count2/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers