Supports configuration of API credentials and service parameters through environment variables loaded from a .env file.
Enables installation of the MCP server from source code via GitHub repository cloning.
Provides access to GrabMaps services through AWS Location Service, including Places API (geocoding, place details), Maps API (tiles, styles, glyphs, sprites), and Routes API (route calculation and matrix routing).
Enables visualization of GrabMaps data through MapLibre GL, with support for rendering map tiles, styles, sprites, and glyphs from the GrabMaps service.
Provides installation through NPM package registry and usage of NPM scripts for development, building, and deployment workflows.
Click on "Install 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., "@GrabMaps MCP Serverfind the nearest coffee shop to KLCC in Malaysia"
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.
GrabMaps MCP Server
A Model Context Protocol (MCP) server for GrabMaps API integration, providing access to GrabMaps services through AWS Location Service.
Do note that this MCP server is NOT officially affiliated with Grab, GrabMaps, or AWS Location Service.
Important: GrabMaps only supports eight countries in Southeast Asia.
🇲🇾 Malaysia (MYS)
🇸🇬 Singapore (SGP)
🇹🇭 Thailand (THA)
🇲🇲 Myanmar (MMR)
🇰🇭 Cambodia (KHM)
🇻🇳 Vietnam (VNM)
🇵🇭 Philippines (PHL)
🇮🇩 Indonesia (IDN)
Search requests outside these countries will not return accurate results.
Features
This MCP server provides access to GrabMaps functionality through two main categories:
Places Actions (Available via MCP)
SearchPlaceIndexForText: Forward geocoding to find places by name or address
SearchPlaceIndexForPosition: Reverse geocoding to find places by coordinates
SearchPlaceIndexForSuggestions: Get place suggestions as you type
GetPlace: Retrieve detailed information about a specific place
Routes Actions (Available via MCP)
CalculateRoute: Calculate routes between points with waypoints
CalculateRouteMatrix: Calculate a matrix of routes between multiple origins and destinations
Analytics & Monitoring
Firebase Analytics: Cloud-based analytics storage with Firebase Realtime Database
Local Backup: Automatic local file backup as fallback
Visual Dashboard: Real-time analytics dashboard with Chart.js
Request Tracking: Track requests by method, endpoint, client IP, and user agent
Tool Call Tracking: Monitor MCP tool usage and performance
Maps Functionality (Requires AWS Console)
Note: Map rendering functionality is not directly available through the MCP server. To view and use maps:
Go to the AWS Location Service console
Look for the Maps section and click the "Try it" button
Ensure "Grab" is selected as the provider
To explore GrabMaps data coverage and see the maps in action without logging in to AWS, visit: https://grabmaps.grab.com/explore-data-coverage
Related MCP server: Google Maps MCP Server
Installation
From NPM
From Source
Configuration
Create a .env file in the root directory with the following variables:
Usage
Method 1: Running Locally
Method 2: Using with Smithery
Testing in Smithery Playground
For the best experience testing Places and Routes APIs, we recommend using the Smithery playground:
Start your MCP server locally:
npm run devOpen the Smithery playground at: https://smithery.ai/playground
Connect to your local MCP server:
http://localhost:3000Test Places and Routes API calls using the provided examples in SMITHERY_TESTING.md
Method 3: Self-Hosted VPS Deployment
Deploy the MCP server on your own VPS with Docker and Nginx. This method supports per-user credentials via URL query parameters, allowing multiple users to connect with their own GrabMaps and AWS credentials.
VPS URL Format
Query Parameters:
Parameter | Required | Description | Example |
| ✅ Yes | Your GrabMaps API key |
|
| ✅ Yes | Your AWS Access Key ID |
|
| ✅ Yes | Your AWS Secret Access Key |
|
| ❌ No | AWS Region (default: ap-southeast-5) |
|
Client Configuration
Claude Desktop:
Cursor/Windsurf: Same format in their MCP configuration files.
Live Demo
A public instance is available at:
Provide your credentials via query parameters as shown above.
VPS Deployment
Architecture
Deployment Files
File | Description |
| HTTP server with Streamable HTTP transport |
| Container configuration for VPS |
| Docker orchestration (port 8092) |
| Nginx reverse proxy configuration |
| Auto-deployment via GitHub Actions |
Quick Deploy
Endpoints
Endpoint | Description |
| Server info and usage instructions |
| Health check with Firebase status |
| MCP endpoint (requires credentials) |
| Analytics data (JSON) |
| Visual analytics dashboard |
Firebase Analytics
The VPS deployment includes Firebase Realtime Database integration for cloud-based analytics storage.
Features
Dual Storage: Firebase (primary) + local file backup (fallback)
Real-time Tracking: Requests, tool calls, client IPs, user agents
Visual Dashboard: Chart.js dashboard at
/analytics/dashboardPersistent: Analytics survive container restarts and redeployments
Auto-save: Saves every 60 seconds + on graceful shutdown
Analytics Data Tracked
Total requests and tool calls
Requests by method (GET, POST)
Requests by endpoint (/, /health, /mcp, /analytics)
Tool usage statistics
Client tracking (IP addresses, user agents)
Hourly request patterns
Recent tool call history
Firebase Setup
See FIREBASE_SETUP.md for complete setup instructions.
Quick setup:
Viewing Analytics
Dashboard:
https://mcp.techmavie.digital/grabmaps/analytics/dashboardJSON API:
https://mcp.techmavie.digital/grabmaps/analyticsFirebase Console: https://console.firebase.google.com/ → Your Project → Realtime Database
Firebase Data Structure
Important Notes for AI Models
Supported Countries
GrabMaps ONLY supports the following eight countries in Southeast Asia:
Malaysia (MYS)
Singapore (SGP)
Thailand (THA)
Myanmar (MMR)
Cambodia (KHM)
Vietnam (VNM)
Philippines (PHL)
Indonesia (IDN)
AI models should not attempt to use GrabMaps for locations outside these countries as results will be inaccurate or non-existent.
Country Code Requirements
When using the Places API functions, AI models MUST analyze the user's query to determine the appropriate country and include the three-letter ISO country code in all requests:
Examples of country codes:
Singapore: SGP
Malaysia: MYS
Thailand: THA
Indonesia: IDN
Philippines: PHL
Vietnam: VNM
Including the country code is critical for returning accurate search results.
This approach allows you to test the Places and Routes functionality without needing to set up map visualization components.
Example API Calls
Forward Geocoding
Calculate Route
Integrating with AI Models
This MCP server can be integrated with AI models that support the Model Context Protocol. Example integration with an AI model:
AWS Location Service Setup
Before using this MCP server, you need to set up the following resources in AWS Location Service:
Create a Place Index with GrabMaps as the data provider
Create a Map with GrabMaps as the data provider
Create a Route Calculator with GrabMaps as the data provider
Map Component Limitations and Recommended Approach
The Maps API components have certain limitations when used through the MCP server:
Map tiles returned by the
getMapTileendpoint are binary data encoded as base64 stringsFont stacks for
getMapGlyphsmust match those supported by GrabMaps via AWS Location ServiceSprite filenames for
getMapSpritesmust follow specific regex patternsMaximum zoom levels are restricted (typically max zoom 14)
Recommended Approach:
For Maps: Use direct integration with GrabMaps via MapLibre GL and AWS Location Service as shown in the official demo
For Places and Routes: Use the MCP server through the Smithery playground or direct API calls
This separation allows for optimal performance and visualization while still leveraging the MCP server for Places and Routes functionality.
Official GrabMaps MapLibre GL Demo
A comprehensive demo using the official GrabMaps integration with MapLibre GL is included in the examples/official-map-demo directory. This demo provides a complete testing interface for all GrabMaps components:
Places API: Forward/reverse geocoding and place details
Maps API: Map tiles, style descriptors, sprites, and glyphs
Routes API: Route calculation and route matrix
The demo features a tabbed interface for easy testing of different components and provides detailed feedback for each API call.
Key Features
Interactive map using official GrabMaps map tiles via MapLibre GL
Tabbed interface for testing different GrabMaps components
Comprehensive testing of all API endpoints
Configurable API key, region, and resource names
Visual display of routes, search results, and map components
To run the demo:
See the Official Map Demo README for setup and usage instructions.
Testing
A comprehensive test suite is included in the tests directory to verify all endpoints are working correctly. For detailed testing instructions, examples, and troubleshooting tips, please refer to the TESTING.md file.
To run the tests:
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.