forlab avatar

ForLab Geo API

io.forlab/geo

Read-only geographic lookups for countries, admin boundaries, time zones, postal codes, and phone numbers.

CCM score
69 of 100
tools
13
auth
Secret needed
transport
HTTP
last updated
Nov 22, 2026
Open website

Own this MCP server? Claim it

What it does

  • Reads boundaries and places with list_countries, list_places, get_place, and get_place_boundary, returning GeoJSON ready for MapLibre
  • Resolves locations with find_places_at_point, get_timezone, find_nearby_places, and lookup_postal_code, including Turkey's official mahalle list
  • Several tools need a Bearer API key, while get_meta, list_countries, and most place lookups work without one within a daily free quota
  • Designed for address validation, map overlays, and location-aware apps that need boundaries or time zones

Install

$ npx -y add-mcp https://api.forlab.io/geo/mcp --name geo --header 'Authorization: Bearer ${API_TOKEN}'

Adds the server to every agent config it finds in this project. add-mcp asks for each value it needs.

Review the command, arguments and environment values before installing. MCP servers run with your local permissions.

Other ways

Claude Code

$ claude mcp add --transport http geo https://api.forlab.io/geo/mcp --header 'Authorization: YOUR_AUTHORIZATION'

Run in your terminal. Add --scope user to make it available in every project.

Tools

Verified live · 13 tools

Verified live against the running server on Nov 23, 2026.

get_metaDataset version, public tileset URLs, sources and licences. Works without a key within a daily free quota.

Dataset version, public tileset URLs, sources and licences. Works without a key within a daily free quota.

No parameters. Call it with no arguments.

list_countriesAll countries and dependencies with their profile. Works without a key within a daily free quota.1 params

All countries and dependencies with their profile. Works without a key within a daily free quota.

Parameters* required
langstring
Comma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language.
get_countryOne country: names, calling codes, currencies, languages, timezones, levels with coverage. Works without a key within a daily free quota.2 params

One country: names, calling codes, currencies, languages, timezones, levels with coverage. Works without a key within a daily free quota.

Parameters* required
cc*string
ISO 3166-1 alpha-2 country code, e.g. TR.
langstring
Comma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language.
list_placesChildren of a place (`parent`) or a name prefix search (`q`); exactly one of the two. Works without a key within a daily free quota.6 params

Children of a place (`parent`) or a name prefix search (`q`); exactly one of the two. Works without a key within a daily free quota.

Parameters* required
countrystring
Only with q, e.g. TR
langstring
Comma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language.
limitinteger
Default 1000 for parent, 20 (max 100) for q
offsetinteger
Number of results to skip for pagination, starting at 0.
parentstring
Country, region (il), county (ilçe) ID. An ilçe lists its official mahalle and köy (TÜİK); places off that list are not children.
qstring
Name prefix (e.g. kuşa); case, diacritics and Turkish i/ı are ignored
get_placeOne place with its path (ancestors, country first). Works without a key within a daily free quota.2 params

One place with its path (ancestors, country first). Works without a key within a daily free quota.

Parameters* required
id*string
Place ID, e.g. TR-35.
langstring
Comma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language.
get_place_boundaryThe boundary as one GeoJSON Feature (application/geo+json, not wrapped in `data`), ready for MapLibre. properties: id, name, detail, dataset_version, attribution. Sent gzip-compressed when the client accepts gzip. A reply over 200 KB, or detail=full, is not inlined: the result...2 params

The boundary as one GeoJSON Feature (application/geo+json, not wrapped in `data`), ready for MapLibre. properties: id, name, detail, dataset_version, attribution. Sent gzip-compressed when the client accepts gzip. A reply over 200 KB, or detail=full, is not inlined: the result...

Parameters* required
detailenum
overview is for country and region maps, standard for a city view, full is the source geometryone of overview · standarddefault: overview
id*string
Place ID, e.g. TR-35.
find_places_at_pointEvery unit whose land contains the point (country, region, county; in Turkey also mahalle), most general first; match is none at sea or outside the loaded countries. Needs an API key: the MCP client sends `Authorization: Bearer <key>`.2 params

Every unit whose land contains the point (country, region, county; in Turkey also mahalle), most general first; match is none at sea or outside the loaded countries. Needs an API key: the MCP client sends `Authorization: Bearer <key>`.

Parameters* required
lat*number
Latitude in decimal degrees, from -90 to 90.
lon*number
Longitude in decimal degrees, from -180 to 180.
get_timezoneIANA timezone of a point (timezone-boundary-builder polygons: land and territorial waters) with the current UTC offset, DST flag and local time; match is none on the open sea. `dst` is true when the zone's clocks are advanced at that instant: its offset is the larger of the tw...2 params

IANA timezone of a point (timezone-boundary-builder polygons: land and territorial waters) with the current UTC offset, DST flag and local time; match is none on the open sea. `dst` is true when the zone's clocks are advanced at that instant: its offset is the larger of the tw...

Parameters* required
lat*number
Latitude in decimal degrees, from -90 to 90.
lon*number
Longitude in decimal degrees, from -180 to 180.
find_nearby_placesThe nearest populated places (GeoNames cities500: 500 inhabitants or more, or a seat of government) with distance in km, population and path, nearest first. 503 NOT_READY on a dataset built before the feature. Needs an API key: the MCP client sends `Authorization: Bearer <key>`.5 params

The nearest populated places (GeoNames cities500: 500 inhabitants or more, or a seat of government) with distance in km, population and path, nearest first. 503 NOT_READY on a dataset built before the feature. Needs an API key: the MCP client sends `Authorization: Bearer <key>`.

Parameters* required
langstring
Comma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language.
lat*number
Latitude in decimal degrees, from -90 to 90.
limitinteger
Default 10
lon*number
Longitude in decimal degrees, from -180 to 180.
radiusinteger
Kilometres, default 100; places farther away are not returned
lookup_postal_codeThe places of a postal code (GeoNames); case, spaces and hyphens in the code are ignored. `partial` is true for the countries GeoNames gives only in part (CA, NL, GB: first part; CL, CN, AR: first digits; IE, MT: first letters; BR: major codes). 503 NOT_READY on a dataset buil...4 params

The places of a postal code (GeoNames); case, spaces and hyphens in the code are ignored. `partial` is true for the countries GeoNames gives only in part (CA, NL, GB: first part; CL, CN, AR: first digits; IE, MT: first letters; BR: major codes). 503 NOT_READY on a dataset buil...

Parameters* required
code*string
Postal code to look up, up to 20 characters.
country*string
ISO 3166-1 alpha-2 country code, e.g. TR.
limitinteger
Default 100
offsetinteger
Number of results to skip for pagination, from 0 to 10000.
find_nearby_postal_codesThe postal codes nearest to a point (GeoNames), nearest first, with distance in km. 503 NOT_READY on a dataset built before the feature. Needs an API key: the MCP client sends `Authorization: Bearer <key>`.4 params

The postal codes nearest to a point (GeoNames), nearest first, with distance in km. 503 NOT_READY on a dataset built before the feature. Needs an API key: the MCP client sends `Authorization: Bearer <key>`.

Parameters* required
lat*number
Latitude in decimal degrees, from -90 to 90.
limitinteger
Default 10
lon*number
Longitude in decimal degrees, from -180 to 180.
radiusinteger
Kilometres, default 50
validate_phone_numberValidate and format a phone number. A valid number also has `e164`, `national`, `international`, `country`, `type` and, from libphonenumber's numbering-plan data in English: `carrier`, the operator the number range was first allocated to (numbering-plan data, not a live HLR lo...2 params

Validate and format a phone number. A valid number also has `e164`, `national`, `international`, `country`, `type` and, from libphonenumber's numbering-plan data in English: `carrier`, the operator the number range was first allocated to (numbering-plan data, not a live HLR lo...

Parameters* required
countrystring
Default region for numbers without a + prefix
number*string
E.164 with a leading +, or national with country; in a URL query send the + as %2B
get_caller_locationThe caller's own location, from Cloudflare's IP geolocation (edge only: the Worker at api.forlab.io/geo answers it, the Python service does not). Only the address the request comes from is looked up, never one you send. The location is approximate, city level at best, and a va...

The caller's own location, from Cloudflare's IP geolocation (edge only: the Worker at api.forlab.io/geo answers it, the Python service does not). Only the address the request comes from is looked up, never one you send. The location is approximate, city level at best, and a va...

No parameters. Call it with no arguments.

Details

Website
api.forlab.io/docs
Categories
Travel & Maps, Data & Analytics
Transport
HTTP
Auth
Required
Registry
MCP registry, active
Tools verified
Nov 23, 2026

Similar to ForLab Geo API

More Travel & Maps