Thailand maps, geocoding, autocomplete, routing, and MapLibre quickstarts.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Run a spatial analysis on GeoJSON: buffer, aggregate, nearest or intersect. `params` is the JSON request body for that operation, as documented in the MapScale analysis reference (https://mapscale.io/docs). Requires a secret (sk_) key and an API deployment with the analysis endpoints.
JSON body for the chosen operation.
MCP client UTF-8 budget: 512 bytes.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http mapscale https://api.mapscale.io/mcp
Run a spatial analysis on GeoJSON: buffer, aggregate, nearest or intersect. `params` is the JSON request body for that operation, as documented in the MapScale analysis reference (https://mapscale.io/docs). Requires a secret (sk_) key and an API deployment with the analysis endpoints.
| Argument | Type | Description |
|---|---|---|
| params* | object | JSON body for the chosen operation. |
| operation* | string | MCP client UTF-8 budget: 512 bytes. |
{
"type": "object",
"required": [
"operation",
"params"
],
"properties": {
"params": {
"type": "object",
"description": "JSON body for the chosen operation."
},
"operation": {
"enum": [
"buffer",
"aggregate",
"nearest",
"intersect"
],
"type": "string",
"maxLength": 512,
"description": "MCP client UTF-8 budget: 512 bytes."
}
}
}Address/place autocomplete session call — Google Places-shaped {predictions:[…]} for building a Thai address search box. Pass a stable session_token per user session.
| Argument | Type | Description |
|---|---|---|
| q* | string | MCP client UTF-8 budget: 2048 bytes. |
| lang | string | MCP client UTF-8 budget: 512 bytes. |
| limit | integer | |
| session_token | string | MCP client UTF-8 budget: 512 bytes. |
{
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"maxLength": 2048,
"description": "MCP client UTF-8 budget: 2048 bytes."
},
"lang": {
"enum": [
"th",
"en"
],
"type": "string",
"maxLength": 512,
"description": "MCP client UTF-8 budget: 512 bytes."
},
"limit": {
"type": "integer",
"default": 5,
"maximum": 25,
"minimum": 1
},
"session_token": {
"type": "string",
"maxLength": 512,
"description": "MCP client UTF-8 budget: 512 bytes."
}
}
}Browse the MapScale Thailand data catalog (hazard, boundary and reference layers). Without an id returns the layer list; with an id returns that layer's details. Requires an API deployment with the catalog endpoint.
| Argument | Type | Description |
|---|---|---|
| id | string | Optional catalog layer id from the list. MCP client UTF-8 budget: 512 bytes. |
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 512,
"description": "Optional catalog layer id from the list. MCP client UTF-8 budget: 512 bytes."
}
}
}Upload a small GeoJSON FeatureCollection (WGS84, up to 1000 features and 256 KB inline) as a dataset and serve it as vector tiles at /tiles/v1/ds_<id>/{z}/{x}/{y}.mvt. Larger files: POST to /v1/datasets directly. Requires a secret (sk_) key. Creates a stored dataset, so confirm with the user first.
| Argument | Type | Description |
|---|---|---|
| name* | string | Display name, 1-120 characters. MCP client UTF-8 budget: 512 bytes. |
| slug | string | Optional layer name inside the tiles: lowercase letters, digits, - and _. Defaults to a slug of name. MCP client UTF-8 budget: 512 bytes. |
| public | boolean | Let any key read the tiles. Default false (private to your account). |
| geojson* | object | GeoJSON FeatureCollection, e.g. {"type":"FeatureCollection","features":[...]}. A JSON string is also accepted. |
{
"type": "object",
"required": [
"name",
"geojson"
],
"properties": {
"name": {
"type": "string",
"maxLength": 512,
"description": "Display name, 1-120 characters. MCP client UTF-8 budget: 512 bytes."
},
"slug": {
"type": "string",
"maxLength": 512,
"description": "Optional layer name inside the tiles: lowercase letters, digits, - and _. Defaults to a slug of name. MCP client UTF-8 budget: 512 bytes."
},
"public": {
"type": "boolean",
"default": false,
"description": "Let any key read the tiles. Default false (private to your account)."
},
"geojson": {
"type": "object",
"description": "GeoJSON FeatureCollection, e.g. {\"type\":\"FeatureCollection\",\"features\":[...]}. A JSON string is also accepted."
}
}
}List the datasets uploaded to your MapScale account (GeoJSON served as vector tiles). Each entry has id, name, slug, tilesetId (ds_<uuid>), feature count, geometry type and bbox. Requires a secret (sk_) key and an API deployment with the datasets endpoint.
No arguments.
{
"type": "object",
"properties": {}
}Geocode a query to coordinates. Accepts Thai-script or English queries (addresses, POIs, Thai administrative areas such as province, district and subdistrict) and returns a Mapbox-shaped GeoJSON FeatureCollection built on OpenStreetMap data. Requires a secret (sk_) key.
| Argument | Type | Description |
|---|---|---|
| q* | string | Free-text query, e.g. "siam paragon" or "ซีคอน สแควร์" MCP client UTF-8 budget: 2048 bytes. |
| bbox | string | minLng,minLat,maxLng,maxLat bias MCP client UTF-8 budget: 128 bytes. |
| lang | string | Result language MCP client UTF-8 budget: 512 bytes. |
| limit | integer | |
| country | string | ISO-2 filter, e.g. TH MCP client UTF-8 budget: 512 bytes. |
| proximity | string | "lng,lat" bias MCP client UTF-8 budget: 128 bytes. |
{
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"maxLength": 2048,
"description": "Free-text query, e.g. \"siam paragon\" or \"ซีคอน สแควร์\" MCP client UTF-8 budget: 2048 bytes."
},
"bbox": {
"type": "string",
"maxLength": 128,
"description": "minLng,minLat,maxLng,maxLat bias MCP client UTF-8 budget: 128 bytes."
},
"lang": {
"enum": [
"th",
"en"
],
"type": "string",
"maxLength": 512,
"description": "Result language MCP client UTF-8 budget: 512 bytes."
},
"limit": {
"type": "integer",
"default": 5,
"maximum": 25,
"minimum": 1
},
"country": {
"type": "string",
"maxLength": 512,
"description": "ISO-2 filter, e.g. TH MCP client UTF-8 budget: 512 bytes."
},
"proximity": {
"type": "string",
"maxLength": 128,
"description": "\"lng,lat\" bias MCP client UTF-8 budget: 128 bytes."
}
}
}Isochrone contours around a point as GeoJSON — contours in minutes ("5,10,15") or kilometers ("1km,2km").
| Argument | Type | Description |
|---|---|---|
| point* | string | "lng,lat" MCP client UTF-8 budget: 128 bytes. |
| profile | string | MCP client UTF-8 budget: 512 bytes. |
| contours | string | "5,10,15" or "1km,2km" MCP client UTF-8 budget: 512 bytes. |
{
"type": "object",
"required": [
"point"
],
"properties": {
"point": {
"type": "string",
"maxLength": 128,
"description": "\"lng,lat\" MCP client UTF-8 budget: 128 bytes."
},
"profile": {
"enum": [
"driving",
"walking"
],
"type": "string",
"default": "driving",
"maxLength": 512,
"description": "MCP client UTF-8 budget: 512 bytes."
},
"contours": {
"type": "string",
"default": "10,20,30",
"maxLength": 512,
"description": "\"5,10,15\" or \"1km,2km\" MCP client UTF-8 budget: 512 bytes."
}
}
}Travel-time/distance matrix (≤25×25) — logistics, store-finder sort. sources and targets are [lng, lat] pair arrays.
| Argument | Type | Description |
|---|---|---|
| profile | string | MCP client UTF-8 budget: 512 bytes. |
| sources* | array | |
| targets* | array |
{
"type": "object",
"required": [
"sources",
"targets"
],
"properties": {
"profile": {
"enum": [
"driving",
"walking"
],
"type": "string",
"default": "driving",
"maxLength": 512,
"description": "MCP client UTF-8 budget: 512 bytes."
},
"sources": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number"
}
},
"maxItems": 25,
"minItems": 1
},
"targets": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number"
}
},
"maxItems": 25,
"minItems": 1
}
}
}Make a choropleth map of Thailand by province or district with NO API key and no studio clicks: returns the MapScale newsroom studio link, a bare-map link, ready-to-paste responsive embed code and SVG/PNG image links, for a curated dataset (elderly share, rainfall, income, population density, forest, rice...) or the user's own numbers by province/district name (English or Thai). Free for editorial use with a 'Map: MapScale' credit linking to mapscale.io. Use for any "map these numbers" / "map X across Thailand" request from a journalist or writer.
| Argument | Type | Description |
|---|---|---|
| top | integer | Bars in the ranking chart. |
| data | array | The user's own numbers, one per province or district: [{place, value}]. place is an English or Thai name or a PCODE such as TH10. |
| lang | string | Map label language. MCP client UTF-8 budget: 512 bytes. |
| play | boolean | Embed link only: play the year-by-year animation once when the map loads (datasets with history). |
| year | integer | Year to show for a dataset with history (it has a year slider, province charts and an animated GIF in the studio): warming and temperature 1900-2024, pm25 and unhealthy-air 2024-2025, flood-extent 2009-2014 (default 2011). Other datasets ignore it; an unknown year is dropped. Images (SVG/PNG) honour it. |
| chart | string | Which chart tab opens by default in the studio and embed (datasets with history). MCP client UTF-8 budget: 512 bytes. |
| focus | array | Zoom to these provinces (PCODEs like TH50 or names); wins over region. |
| notes | array | Callouts pinned to provinces: [{pcode, text}] (text max 80 characters, no statistics). |
| shape | string | Embed and image shape. MCP client UTF-8 budget: 512 bytes. |
| stats | array | Big-number cards under the map: [{pcode, metric: value|change, label?}]. The number comes from the data. |
| style | string | Map look; light and dark also work. MCP client UTF-8 budget: 512 bytes. |
| title | string | Map title (max 200 characters). MCP client UTF-8 budget: 512 bytes. |
| colors | string | Colour ramp. MCP client UTF-8 budget: 512 bytes. |
| locale | string | Language of the studio page the links open. MCP client UTF-8 budget: 512 bytes. |
| points | array | Point data instead of regions: [{lat, lng, label?, value?}]. |
| region | string | Zoom to one of the six regions; the rest of Thailand is drawn pale. MCP client UTF-8 budget: 512 bytes. |
| source | string | The data source the journalist should credit (max 300 characters). MCP client UTF-8 budget: 512 bytes. |
| values | boolean | Label every province with its value. |
| caption | string | Text under the map (max 300 characters). Never write numbers: use placeholders such as {TH50.value}, {TH50.change}, {TH50.name}, {TH50.rank}, {median.value}, {median.change}, {year}, {compareYear}, {unit}; the page fills them from the data. MCP client UTF-8 budget: 512 bytes. |
| compare | integer | Datasets with history: a second year. The map then shows the CHANGE (year minus compare), with a diverging cool-warm palette centred on 0. Example: dataset=warming, year=2024, compare=1950. |
| dataset | string | Curated Thailand dataset: population, elderly, rain (3-month rainfall vs normal), rainfall-normal, income, city (built-up share), forest, farms, rice, durian (registered durian-growing households by province, 2024), district-population, air (PM2.5, 2024-2025), warming, temperature, flood (2011; flood-extent by year), flash-flood, fires, landslides, sinkholes, earthquake (2025). Used when data and points are absent. MCP client UTF-8 budget: 512 bytes. |
| subtitle | string | Map subtitle (max 200 characters). MCP client UTF-8 budget: 512 bytes. |
| highlight | array | Provinces (PCODEs like TH10 or names) to outline and label with name and value. |
{
"type": "object",
"properties": {
"top": {
"type": "integer",
"maximum": 15,
"minimum": 3,
"description": "Bars in the ranking chart."
},
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"place",
"value"
],
"properties": {
"place": {
"type": "string"
},
"value": {
"type": "number"
}
}
},
"maxItems": 1000,
"description": "The user's own numbers, one per province or district: [{place, value}]. place is an English or Thai name or a PCODE such as TH10."
},
"lang": {
"enum": [
"en",
"th"
],
"type": "string",
"maxLength": 512,
"description": "Map label language. MCP client UTF-8 budget: 512 bytes."
},
"play": {
"type": "boolean",
"description": "Embed link only: play the year-by-year animation once when the map loads (datasets with history)."
},
"year": {
"type": "integer",
"description": "Year to show for a dataset with history (it has a year slider, province charts and an animated GIF in the studio): warming and temperature 1900-2024, pm25 and unhealthy-air 2024-2025, flood-extent 2009-2014 (default 2011). Other datasets ignore it; an unknown year is dropped. Images (SVG/PNG) honour it."
},
"chart": {
"enum": [
"none",
"line",
"rank"
],
"type": "string",
"maxLength": 512,
"description": "Which chart tab opens by default in the studio and embed (datasets with history). MCP client UTF-8 budget: 512 bytes."
},
"focus": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 20,
"description": "Zoom to these provinces (PCODEs like TH50 or names); wins over region."
},
"notes": {
"type": "array",
"items": {
"type": "object",
"required": [
"pcode",
"text"
],
"properties": {
"text": {
"type": "string"
},
"pcode": {
"type": "string"
}
}
},
"maxItems": 5,
"description": "Callouts pinned to provinces: [{pcode, text}] (text max 80 characters, no statistics)."
},
"shape": {
"enum": [
"wide",
"square",
"tall"
],
"type": "string",
"default": "wide",
"maxLength": 512,
"description": "Embed and image shape. MCP client UTF-8 budget: 512 bytes."
},
"stats": {
"type": "array",
"items": {
"type": "object",
"required": [
"pcode",
"metric"
],
"properties": {
"label": {
"type": "string"
},
"pcode": {
"type": "string"
},
"metric": {
"enum": [
"value",
"change"
],
"type": "string"
}
}
},
"maxItems": 4,
"description": "Big-number cards under the map: [{pcode, metric: value|change, label?}]. The number comes from the data."
},
"style": {
"enum": [
"paper",
"quiet",
"monochrome",
"midnight",
"light",
"dark"
],
"type": "string",
"maxLength": 512,
"description": "Map look; light and dark also work. MCP client UTF-8 budget: 512 bytes."
},
"title": {
"type": "string",
"maxLength": 512,
"description": "Map title (max 200 characters). MCP client UTF-8 budget: 512 bytes."
},
"colors": {
"enum": [
"blue",
"green",
"orange",
"purple",
"red",
"viridis",
"dry-wet",
"cool-warm"
],
"type": "string",
"maxLength": 512,
"description": "Colour ramp. MCP client UTF-8 budget: 512 bytes."
},
"locale": {
"enum": [
"en",
"th"
],
"type": "string",
"default": "en",
"maxLength": 512,
"description": "Language of the studio page the links open. MCP client UTF-8 budget: 512 bytes."
},
"points": {
"type": "array",
"items": {
"type": "object",
"required": [
"lat",
"lng"
],
"properties": {
"lat": {
"type": "number"
},
"lng": {
"type": "number"
},
"label": {
"type": "string"
},
"value": {
"type": "number"
}
}
},
"maxItems": 2000,
"description": "Point data instead of regions: [{lat, lng, label?, value?}]."
},
"region": {
"enum": [
"north",
"northeast",
"central",
"east",
"west",
"south"
],
"type": "string",
"maxLength": 512,
"description": "Zoom to one of the six regions; the rest of Thailand is drawn pale. MCP client UTF-8 budget: 512 bytes."
},
"source": {
"type": "string",
"maxLength": 512,
"description": "The data source the journalist should credit (max 300 characters). MCP client UTF-8 budget: 512 bytes."
},
"values": {
"type": "boolean",
"description": "Label every province with its value."
},
"caption": {
"type": "string",
"maxLength": 512,
"description": "Text under the map (max 300 characters). Never write numbers: use placeholders such as {TH50.value}, {TH50.change}, {TH50.name}, {TH50.rank}, {median.value}, {median.change}, {year}, {compareYear}, {unit}; the page fills them from the data. MCP client UTF-8 budget: 512 bytes."
},
"compare": {
"type": "integer",
"description": "Datasets with history: a second year. The map then shows the CHANGE (year minus compare), with a diverging cool-warm palette centred on 0. Example: dataset=warming, year=2024, compare=1950."
},
"dataset": {
"type": "string",
"maxLength": 512,
"description": "Curated Thailand dataset: population, elderly, rain (3-month rainfall vs normal), rainfall-normal, income, city (built-up share), forest, farms, rice, durian (registered durian-growing households by province, 2024), district-population, air (PM2.5, 2024-2025), warming, temperature, flood (2011; flood-extent by year), flash-flood, fires, landslides, sinkholes, earthquake (2025). Used when data and points are absent. MCP client UTF-8 budget: 512 bytes."
},
"subtitle": {
"type": "string",
"maxLength": 512,
"description": "Map subtitle (max 200 characters). MCP client UTF-8 budget: 512 bytes."
},
"highlight": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 8,
"description": "Provinces (PCODEs like TH10 or names) to outline and label with name and value."
}
}
}Fetch full place details by id from geocode/autocomplete results (photon:… or places uuids).
| Argument | Type | Description |
|---|---|---|
| id* | string | MCP client UTF-8 budget: 512 bytes. |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 512,
"description": "MCP client UTF-8 budget: 512 bytes."
}
}
}Lists MapScale's products (APIs, SDKs, datasets and tools) with what each does, whether it needs an API key, and its docs URL. Optional filter by need.
| Argument | Type | Description |
|---|---|---|
| need | string | Optional keyword filter, e.g. "autocomplete", "routing", "wordpress", "react native". MCP client UTF-8 budget: 512 bytes. |
{
"type": "object",
"properties": {
"need": {
"type": "string",
"maxLength": 512,
"description": "Optional keyword filter, e.g. \"autocomplete\", \"routing\", \"wordpress\", \"react native\". MCP client UTF-8 budget: 512 bytes."
}
}
}Reverse-geocode a lng,lat point (Thai admin areas, addresses).
| Argument | Type | Description |
|---|---|---|
| lang | string | MCP client UTF-8 budget: 512 bytes. |
| point* | string | "lng,lat" e.g. "100.5018,13.7563" MCP client UTF-8 budget: 128 bytes. |
{
"type": "object",
"required": [
"point"
],
"properties": {
"lang": {
"enum": [
"th",
"en"
],
"type": "string",
"maxLength": 512,
"description": "MCP client UTF-8 budget: 512 bytes."
},
"point": {
"type": "string",
"maxLength": 128,
"description": "\"lng,lat\" e.g. \"100.5018,13.7563\" MCP client UTF-8 budget: 128 bytes."
}
}
}Driving/walking route between waypoints (Thailand-tuned Valhalla). Mapbox-shaped response. Coordinates are [lng, lat] pairs.
| Argument | Type | Description |
|---|---|---|
| profile | string | MCP client UTF-8 budget: 512 bytes. |
| coordinates* | array | 2..25 [lng, lat] pairs, start to end (MCP client budget) |
{
"type": "object",
"required": [
"coordinates"
],
"properties": {
"profile": {
"enum": [
"driving",
"walking"
],
"type": "string",
"default": "driving",
"maxLength": 512,
"description": "MCP client UTF-8 budget: 512 bytes."
},
"coordinates": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number"
}
},
"description": "2..25 [lng, lat] pairs, start to end (MCP client budget)"
}
}
}Show an interactive map of Thailand inline (MapLibre on OpenStreetMap data). Give a `place` (a major Thai city/province such as Bangkok, Chiang Mai, Phuket — other places need a MapScale key) or an explicit `center` [lng, lat], plus an optional `zoom` (1-18) and `markers` ([{lng, lat, name}]). Use for any "show me X on a map" request about Thailand.
| Argument | Type | Description |
|---|---|---|
| zoom | number | Default 11. |
| place | string | Place name, e.g. 'Chiang Mai'. MCP client UTF-8 budget: 512 bytes. |
| title | string | Short caption shown on the map. MCP client UTF-8 budget: 512 bytes. |
| center | array | [longitude, latitude]; overrides `place`. |
| markers | array |
{
"type": "object",
"properties": {
"zoom": {
"type": "number",
"maximum": 18,
"minimum": 1,
"description": "Default 11."
},
"place": {
"type": "string",
"maxLength": 512,
"description": "Place name, e.g. 'Chiang Mai'. MCP client UTF-8 budget: 512 bytes."
},
"title": {
"type": "string",
"maxLength": 512,
"description": "Short caption shown on the map. MCP client UTF-8 budget: 512 bytes."
},
"center": {
"type": "array",
"items": {
"type": "number"
},
"maxItems": 2,
"minItems": 2,
"description": "[longitude, latitude]; overrides `place`."
},
"markers": {
"type": "array",
"items": {
"type": "object",
"required": [
"lng",
"lat"
],
"properties": {
"lat": {
"type": "number"
},
"lng": {
"type": "number"
},
"name": {
"type": "string"
}
}
},
"maxItems": 50
}
}
}Check the MapScale API's health/dependency status (public endpoint, no key).
No arguments.
{
"type": "object",
"properties": {}
}Build the MapScale MapLibre style URL (self-contained: tiles+glyphs on the same origin). Drop straight into `new maplibregl.Map({ style })`. Params: lang (th/en), accent (6-digit hex), hide (layer groups).
| Argument | Type | Description |
|---|---|---|
| hide | array | |
| lang | string | MCP client UTF-8 budget: 512 bytes. |
| accent | string | 6-digit hex, # optional (e.g. 0c4a4a) MCP client UTF-8 budget: 512 bytes. |
{
"type": "object",
"properties": {
"hide": {
"type": "array",
"items": {
"enum": [
"street",
"transit",
"districts",
"buildings",
"water",
"landuse"
],
"type": "string"
}
},
"lang": {
"enum": [
"th",
"en"
],
"type": "string",
"default": "th",
"maxLength": 512,
"description": "MCP client UTF-8 budget: 512 bytes."
},
"accent": {
"type": "string",
"maxLength": 512,
"description": "6-digit hex, # optional (e.g. 0c4a4a) MCP client UTF-8 budget: 512 bytes."
}
}
}List the saved map styles in your MapScale account. Each can be loaded in MapLibre from its /styles/v1/st_<id> URL. Requires a secret (sk_) key and an API deployment with the styles endpoint.
No arguments.
{
"type": "object",
"properties": {}
}Returns copy-paste code for adding a MapLibre map of Thailand to a project: a complete, working example for maplibre-html, next, react, or react-native, including a keyless demo path (OpenStreetMap-based PMTiles) and the hosted style URL path that needs a MapScale publishable key. Useful when a project needs a Thailand basemap with Thai or English labels.
| Argument | Type | Description |
|---|---|---|
| framework | string | Which framework's quickstart to return. MCP client UTF-8 budget: 512 bytes. |
{
"type": "object",
"properties": {
"framework": {
"enum": [
"maplibre-html",
"next",
"react",
"react-native"
],
"type": "string",
"default": "maplibre-html",
"maxLength": 512,
"description": "Which framework's quickstart to return. MCP client UTF-8 budget: 512 bytes."
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Dec 1, 2026.