ForLab Geo API is an MCP server published by io.forlab, hosted at api.forlab.io. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 13 tools, including get_meta, list_countries, get_country, list_places, get_place.
Countries, admin units, Turkey's official mahalle list, boundaries, timezones, postal codes, phones
1 connections through 4 shared values. Tap any node.
Inferred from the host name and headers: what a server runs on, not who runs it.
Dataset version, public tileset URLs, sources and licences. Works without a key within a daily free quota.
No parameters.
{
"name": "get_meta",
"title": "Dataset metadata",
"description": "Dataset version, public tileset URLs, sources and licences. Works without a key within a daily free quota.",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}All countries and dependencies with their profile. Works without a key within a daily free quota.
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
| Parameter | Type | Description |
|---|---|---|
| lang | string | Comma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language. |
{
"name": "list_countries",
"title": "List countries",
"description": "All countries and dependencies with their profile. Works without a key within a daily free quota.",
"inputSchema": {
"type": "object",
"properties": {
"lang": {
"type": "string",
"examples": [
"tr,en"
],
"description": "Comma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}One country: names, calling codes, currencies, languages, timezones, levels with coverage. Works without a key within a daily free quota.
| Parameter | Type | Description |
|---|---|---|
| cc * | string | |
| lang | string | Comma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language. |
{
"name": "get_country",
"title": "Get country",
"description": "One country: names, calling codes, currencies, languages, timezones, levels with coverage. Works without a key within a daily free quota.",
"inputSchema": {
"type": "object",
"required": [
"cc"
],
"properties": {
"cc": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"examples": [
"TR"
]
},
"lang": {
"type": "string",
"examples": [
"tr,en"
],
"description": "Comma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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.
| Parameter | Type | Description |
|---|---|---|
| q | string | Name prefix (e.g. kuşa); case, diacritics and Turkish i/ı are ignored |
| lang | string | Comma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language. |
| limit | integer | Default 1000 for parent, 20 (max 100) for q |
| offset | integer | |
| parent | string | 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. |
| country | string | Only with q, e.g. TR |
{
"name": "list_places",
"title": "Children or search",
"description": "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.",
"inputSchema": {
"type": "object",
"properties": {
"q": {
"type": "string",
"maxLength": 100,
"description": "Name prefix (e.g. kuşa); case, diacritics and Turkish i/ı are ignored"
},
"lang": {
"type": "string",
"examples": [
"tr,en"
],
"description": "Comma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language."
},
"limit": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"examples": [
10
],
"description": "Default 1000 for parent, 20 (max 100) for q"
},
"offset": {
"type": "integer",
"minimum": 0,
"examples": [
0
]
},
"parent": {
"type": "string",
"examples": [
"TR-35"
],
"description": "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."
},
"country": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"description": "Only with q, e.g. TR"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}One place with its path (ancestors, country first). Works without a key within a daily free quota.
| Parameter | Type | Description |
|---|---|---|
| id * | string | |
| lang | string | Comma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language. |
{
"name": "get_place",
"title": "Get place",
"description": "One place with its path (ancestors, country first). Works without a key within a daily free quota.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"examples": [
"TR-35"
]
},
"lang": {
"type": "string",
"examples": [
"tr,en"
],
"description": "Comma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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>`.
| Parameter | Type | Description |
|---|---|---|
| id * | string | |
| detail | enum | overview is for country and region maps, standard for a city view, full is the source geometry |
{
"name": "get_place_boundary",
"title": "Place boundary",
"description": "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>`.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"examples": [
"TR-35"
]
},
"detail": {
"enum": [
"overview",
"standard"
],
"default": "overview",
"examples": [
"overview"
],
"description": "overview is for country and region maps, standard for a city view, full is the source geometry"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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>`.
| Parameter | Type | Description |
|---|---|---|
| lat * | number | |
| lon * | number |
{
"name": "find_places_at_point",
"title": "Point in polygon",
"description": "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>`.",
"inputSchema": {
"type": "object",
"required": [
"lat",
"lon"
],
"properties": {
"lat": {
"type": "number",
"maximum": 90,
"minimum": -90,
"examples": [
38.4237
]
},
"lon": {
"type": "number",
"maximum": 180,
"minimum": -180,
"examples": [
27.1428
]
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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>`.
| Parameter | Type | Description |
|---|---|---|
| lat * | number | |
| lon * | number |
{
"name": "get_timezone",
"title": "Timezone",
"description": "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>`.",
"inputSchema": {
"type": "object",
"required": [
"lat",
"lon"
],
"properties": {
"lat": {
"type": "number",
"maximum": 90,
"minimum": -90,
"examples": [
38.4237
]
},
"lon": {
"type": "number",
"maximum": 180,
"minimum": -180,
"examples": [
27.1428
]
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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>`.
| Parameter | Type | Description |
|---|---|---|
| lat * | number | |
| lon * | number | |
| lang | string | Comma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language. |
| limit | integer | Default 10 |
| radius | integer | Kilometres, default 100; places farther away are not returned |
{
"name": "find_nearby_places",
"title": "Nearby places",
"description": "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>`.",
"inputSchema": {
"type": "object",
"required": [
"lat",
"lon"
],
"properties": {
"lat": {
"type": "number",
"maximum": 90,
"minimum": -90,
"examples": [
38.4237
]
},
"lon": {
"type": "number",
"maximum": 180,
"minimum": -180,
"examples": [
27.1428
]
},
"lang": {
"type": "string",
"examples": [
"tr,en"
],
"description": "Comma-separated BCP 47 tags (max 5), e.g. en,de. Adds `names`; null means we do not have that language."
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"examples": [
10
],
"description": "Default 10"
},
"radius": {
"type": "integer",
"maximum": 500,
"minimum": 1,
"examples": [
50
],
"description": "Kilometres, default 100; places farther away are not returned"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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>`.
| Parameter | Type | Description |
|---|---|---|
| code * | string | |
| limit | integer | Default 100 |
| offset | integer | |
| country * | string |
{
"name": "lookup_postal_code",
"title": "Postal code lookup",
"description": "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>`.",
"inputSchema": {
"type": "object",
"required": [
"country",
"code"
],
"properties": {
"code": {
"type": "string",
"examples": [
"35030"
],
"maxLength": 20
},
"limit": {
"type": "integer",
"maximum": 1000,
"minimum": 1,
"examples": [
10
],
"description": "Default 100"
},
"offset": {
"type": "integer",
"maximum": 10000,
"minimum": 0,
"examples": [
0
]
},
"country": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"examples": [
"TR"
]
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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>`.
| Parameter | Type | Description |
|---|---|---|
| lat * | number | |
| lon * | number | |
| limit | integer | Default 10 |
| radius | integer | Kilometres, default 50 |
{
"name": "find_nearby_postal_codes",
"title": "Nearby postal codes",
"description": "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>`.",
"inputSchema": {
"type": "object",
"required": [
"lat",
"lon"
],
"properties": {
"lat": {
"type": "number",
"maximum": 90,
"minimum": -90,
"examples": [
38.4237
]
},
"lon": {
"type": "number",
"maximum": 180,
"minimum": -180,
"examples": [
27.1428
]
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"examples": [
10
],
"description": "Default 10"
},
"radius": {
"type": "integer",
"maximum": 500,
"minimum": 1,
"examples": [
50
],
"description": "Kilometres, default 50"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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.
| Parameter | Type | Description |
|---|---|---|
| number * | string | E.164 with a leading +, or national with country; in a URL query send the + as %2B |
| country | string | Default region for numbers without a + prefix |
{
"name": "validate_phone_number",
"title": "Phone number",
"description": "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.",
"inputSchema": {
"type": "object",
"required": [
"number"
],
"properties": {
"number": {
"type": "string",
"examples": [
"+905321234567"
],
"maxLength": 40,
"description": "E.164 with a leading +, or national with country; in a URL query send the + as %2B"
},
"country": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"examples": [
"TR"
],
"description": "Default region for numbers without a + prefix"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}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.
No parameters.
{
"name": "get_caller_location",
"title": "Caller location",
"description": "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.",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}Countries, administrative units, their boundaries, phone numbers, timezones, nearby places and postal codes from one versioned dataset. Turkey's level 3 is the official TÜİK mahalle and köy list (list_coverage complete); its boundaries are partial, as meta.coverage.neighborhood=partial and levels[].boundary_count say. Italy's level 3 is ISTAT's official list of every comune (type localadmin, list_coverage complete, no boundaries yet). Unless an operation permits anonymous access, /v1 calls need `Authorization: Bearer <key>`. Responses are `{data, meta}`; errors are `{status: failed, code}`. Data © OpenStreetMap contributors, Overture Maps Foundation (ODbL 1.0, https://opendatacommons.org/licenses/odbl/1-0/); timezone-boundary-builder (ODbL 1.0, same licence); GeoNames (CC BY 4.0, https://creativecommons.org/licenses/by/4.0/); ISTAT (CC BY 4.0, changed: comuni placed under our units, new IDs); CLDR (Unicode License v3, https://www.unicode.org/license.txt); tzdata (public domain); libphonenumber (Apache-2.0). Every response carries the full credit in meta.attribution.
Names, descriptions and schemas were written by the server and are shown as data.