ForLab Geo API

io.forlabPublished by forlab.ioOfficial publisherv1.0.0Updated Nov 22, 2026

Countries, admin units, Turkey's official mahalle list, boundaries, timezones, postal codes, phones

VerifiedStreamable HTTPWeb executableLocation & LifestyleData & Analytics

Overview

AI-generated overview

Remote geo API that lets an assistant look up countries, admin units, boundaries, timezones, postal codes, nearby places and phone numbers.

What you can do
  • List and read countries and their profiles: names, calling codes, currencies, languages, timezones, levels and coverage
  • Browse administrative places by parent or name prefix, read a place with its ancestor path, and fetch a place boundary as a GeoJSON feature
  • Resolve a coordinate to the units containing it, to its IANA timezone with UTC offset and DST flag, and to nearby populated places
  • Look up postal codes for a place and the nearest postal codes to a point
  • Validate and format phone numbers, including E.164 and national formats
  • Read dataset metadata, version, tileset URLs, sources and licences
When to use it
Useful when an assistant needs authoritative place, boundary, timezone or postal-code answers for a country or point, for example to enrich addresses, place data on a map, or check a phone number's country and format.
Requirements
Remote streamable HTTP endpoint at api.forlab.io; no local install. An API key sent as an Authorization Bearer header is needed for point lookup, nearby places and nearby postal codes; keyless tools work within a daily free quota. Network access required.
Before you install
The Authorization key is a secret sent with each request. Boundary replies over 200 KB or with full detail are returned as a REST URL rather than inlined. Some features return 503 NOT_READY on older datasets. Caller location is derived from the request IP and is approximate. Data comes from third parties with attribution and licence terms that must be kept.

Installation

In SourceWeft

  1. Open ForLab Geo API in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.forlab%2Fgeo/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "forlab-geo-api": {
      "type": "http",
      "url": "https://api.forlab.io/geo/mcp"
    }
  }
}

Tools

13

get_meta

Dataset metadata

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

Takes no parameters.

list_countries

List countries

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

Parameterslang

get_country

Get country

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

Parametersccrequiredlang

list_places

Children or search

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.

Parametersqlanglimitoffsetparentcountry

get_place

Get place

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

Parametersidrequiredlang

get_place_boundary

Place boundary

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 is its REST URL and size, to download outside the chat. Needs an API key: the MCP client sends `Authorization: Bearer <key>`.

Parametersidrequireddetail

find_places_at_point

Point in polygon

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

Parameterslatrequiredlonrequired

get_timezone

Timezone

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 two it shows in that year (1 January and 1 July); a zone with one offset all year is never DST (Morocco: +01:00 and the +00:00 of Ramadan are both `dst: false`). When zones share an edge or overlap, `ambiguous` is true, `timezone` and the other fields are the first zone by name and `candidates` lists all of them (each with its own offset, dst and local time). 503 NOT_READY on a dataset built before the feature. Needs an API key: the MCP client sends `Authorization: Bearer <key>`.

Parameterslatrequiredlonrequired

find_nearby_places

Nearby places

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

Parameterslatrequiredlonrequiredlanglimitradius

lookup_postal_code

Postal code lookup

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 built before the feature. Needs an API key: the MCP client sends `Authorization: Bearer <key>`.

Parameterscoderequiredlimitoffsetcountryrequired

find_nearby_postal_codes

Nearby postal codes

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

Parameterslatrequiredlonrequiredlimitradius

validate_phone_number

Phone number

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 lookup: a ported number may now be with another operator; null for landlines and where unknown); `timezones`, IANA zone ids ([] when unknown; a number with no geographic tie, such as most mobiles, gets its country's zones); `location`, the area of a geographic number (a city or region, e.g. "San Francisco, CA"), else the country, null when unknown. An invalid number has only `valid` and `possible`; one that does not parse, `valid` and `reason`. Works without a key within a daily free quota.

Parametersnumberrequiredcountry

get_caller_location

Caller location

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 value Cloudflare does not know is null. `country` is the country's place in this dataset (same shape as /v1/contains), null when the dataset lacks it. Replies carry `Cache-Control: private, no-store`. Works without a key within a daily free quota.

Takes no parameters.

Version history

1
  1. v1.0.0LatestNov 22, 2026

Score

83% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts

    Declare a GitHub repository with a README, or serve resource_documentation in the OAuth protected-resource metadata.

  • LicenseNot applicable

    A hosted service is used under its provider's terms, so no license is expected here. This check is left out of the percentage.