npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

olamap-mcp-server

v1.1.0

Published

A comprehensive Model Context Protocol server for OlaMap API with 100% function success rate, Indian context awareness, and intelligent fallbacks

Readme

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

📦 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

  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

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