# MCP tools

> Index of the TerraLab docs for agents: [llms.txt](https://terra-lab.ai/docs/llms.txt). Every docs page is also served as markdown: add .md to its URL.

The [MCP server](https://terra-lab.ai/docs/mcp) gives your assistant 41 tools, sorted here by job. Each page lists the tool's parameters, its response and the text the server shows the agent.

### Places

| Tool | What it gives |
| --- | --- |
| [Find places and addresses](https://terra-lab.ai/docs/mcp/tools/find_places) | Coordinates of an address or place name, the address at a point, or a list of up to 100 addresses placed on a map with a CSV for QGIS. |
| [Convert coordinates](https://terra-lab.ai/docs/mcp/tools/convert_coordinates) | Coordinates converted between decimal degrees, degrees minutes seconds, UTM, MGRS, Lambert 93 or any EPSG code, with the format detected for you. |
| [Measure distance, area, radius or buffer](https://terra-lab.ai/docs/mcp/tools/measure) | Geodesic distance and bearing between places, the length of a line, the area and perimeter of a polygon, or a circle or buffer around a shape. |

### Map data

| Tool | What it gives |
| --- | --- |
| [Extract open map data for an area](https://terra-lab.ai/docs/mcp/tools/extract_open_data) | OpenStreetMap and Overture layers for any area: buildings, roads, addresses, points of interest, land use, water and more, as GIS files. |
| [Open, map and convert GIS data](https://terra-lab.ai/docs/mcp/tools/open_gis_file) | Any GeoJSON, KML, KMZ, GPX, Shapefile, CSV or WKT read, checked, shown on a map and converted to another format. |
| [Buffer, clip, join, count or filter features](https://terra-lab.ai/docs/mcp/tools/process_geometry) | One GIS operation on a set of features: buffer, union, dissolve, intersection, difference, clip or simplify, returned as a file. |

### Terrain and routes

| Tool | What it gives |
| --- | --- |
| [Elevation, profile and contour lines](https://terra-lab.ai/docs/mcp/tools/get_elevation) | Elevation of points, a profile along a path, or a DEM, hillshade, slope and contour lines for an area, worldwide at 30 m. |
| [Road route between places](https://terra-lab.ai/docs/mcp/tools/get_route) | Driving, walking or cycling route through 2 to 25 places, with distance and travel time per leg and the route line. |
| [Area reachable in a travel time](https://terra-lab.ai/docs/mcp/tools/get_travel_area) | The area reachable from 1 to 10 places within a travel time or a distance on the road network, driving, walking or cycling (isochrones). |
| [Travel times between many places](https://terra-lab.ai/docs/mcp/tools/get_travel_times) | Driving, walking or cycling distances and travel times from up to 25 origins to up to 25 destinations in one call, as a matrix with a map and a CSV. |

### Imagery and land

| Tool | What it gives |
| --- | --- |
| [Satellite image of an area](https://terra-lab.ai/docs/mcp/tools/get_satellite_image) | A recent Sentinel-2 image of an area in true colour, false colour or NDVI, or an IGN aerial photo in France, as a GeoTIFF. |
| [Sentinel-2 index and change](https://terra-lab.ai/docs/mcp/tools/get_satellite_index) | NDVI, NDWI, NBR or NDBI statistics and a map for an area on one date, or the change between two dates, from cloud-masked Sentinel-2 scenes. |
| [Statistics of a raster per polygon](https://terra-lab.ai/docs/mcp/tools/zonal_statistics) | A raster summarised for each polygon of a layer: population, land cover shares, or elevation and slope per district, parcel or catchment. |
| [Forest type (natural, planted, plantation)](https://terra-lab.ai/docs/mcp/tools/get_forest_type) | Whether a forest is natural, naturally regenerating, planted, a plantation or tree crops, mapped at 10 m for 2020. |
| [Estimate the population of an area](https://terra-lab.ai/docs/mcp/tools/estimate_population) | A modelled estimate of the people living in a circle, a bounding box, a travel area or an administrative boundary, from the GHS-POP 2025 grid. |

### France

| Tool | What it gives |
| --- | --- |
| [French cadastral parcel and zoning](https://terra-lab.ai/docs/mcp/tools/french_parcel) | The French cadastral parcel at an address or point, its reference and area, and the urban plan zone that applies there. |
| [French cadastral parcels and zoning in an area](https://terra-lab.ai/docs/mcp/tools/french_parcels_in_area) | Every French cadastral parcel in an area, with its reference, its area and the urban plan zone it lies in, as a GIS file. |
| [French building heights](https://terra-lab.ai/docs/mcp/tools/french_building_heights) | Height in metres, floors, main use and year built of every building around an address or in a small area in France, from IGN BD TOPO. |
| [Natural risks at an address or a point](https://terra-lab.ai/docs/mcp/tools/get_natural_risks) | Natural risks at an address or point: flood zones, clay, seismic zone, cavities and commune risks in France, river flood depth elsewhere. |

### Data catalog

| Tool | What it gives |
| --- | --- |
| [Find a dataset in the TerraLab catalogue](https://terra-lab.ai/docs/mcp/tools/find_datasets) | Search the TerraLab catalogue of open datasets by need or place, with each licence, coverage, size and the call that gets it. |
| [Extract a hosted dataset for an area](https://terra-lab.ai/docs/mcp/tools/extract_dataset) | A hosted dataset from the TerraLab catalogue cut to an area: a GeoTIFF or a vector file with its licence, or only the statistics. |
| [Describe a cloud GeoParquet dataset](https://terra-lab.ai/docs/mcp/tools/inspect_dataset) | What a public cloud GeoParquet holds, read from its footer only: rows, columns with their ranges, geometry, CRS, extent and partitions. |
| [Count and sum a cloud GeoParquet per zone](https://terra-lab.ai/docs/mcp/tools/aggregate_dataset) | A count, sum or average over a large public GeoParquet for a place or per zone (state, county, region, district), without downloading it. |
| [Ask TerraLab to add data it does not have](https://terra-lab.ai/docs/mcp/tools/request_data) | Ask TerraLab to add geographic data the catalogue does not have yet, with what you need and up to five places where you need it. |
| [Search the TerraLab docs and guides](https://terra-lab.ai/docs/mcp/tools/search_docs) | TerraLab docs, blog guides and product pages searched by meaning in any language, with a quoted extract and a link for each page. Free. |

### Layer operations

| Tool | What it gives |
| --- | --- |
| [Straight-line distance between places](https://terra-lab.ai/docs/mcp/tools/measure_distance) | Straight-line geodesic distance between 2 or more places or points, with the midpoint and bearing for two, or the length of a line. |
| [Area and perimeter of a shape](https://terra-lab.ai/docs/mcp/tools/measure_area) | Geodesic area and perimeter of a shape given by its corner points, place names or a drawn polygon. |
| [Circle of a given radius around a place](https://terra-lab.ai/docs/mcp/tools/circle_around_place) | A circle of a given radius around a place or a point, with its area and circumference, as a map and a GIS file. |
| [Buffer features by a distance](https://terra-lab.ai/docs/mcp/tools/buffer_features) | A buffer of a given width around each feature of a layer, or one merged area whose overlaps count once, as a GIS file. |
| [Merge (dissolve) features into one](https://terra-lab.ai/docs/mcp/tools/dissolve_features) | The features of a layer merged into one, or into one per value of a field, with the total area or length. |
| [Keep the parts inside a second layer](https://terra-lab.ai/docs/mcp/tools/intersect_layers) | The parts of each feature that lie inside a second layer of polygons, with their attributes. |
| [Remove the parts inside a second layer](https://terra-lab.ai/docs/mcp/tools/erase_with_layer) | Each feature of a layer minus the parts inside a second layer of polygons, such as buildings outside the flood zones. |
| [Clip features to an area or a layer](https://terra-lab.ai/docs/mcp/tools/clip_features) | A layer cut to an area: a place, a place with a radius, a bounding box or a second layer of polygons. |
| [Simplify feature outlines](https://terra-lab.ai/docs/mcp/tools/simplify_features) | Lighter outlines: the lines or polygons of a layer simplified so no vertex moves more than a tolerance in metres. |
| [Centre point of each feature](https://terra-lab.ai/docs/mcp/tools/feature_centroids) | The centre point of each feature of a layer, with its attributes, for example to turn buildings or parcels into points. |
| [Add area and length to each feature](https://terra-lab.ai/docs/mcp/tools/add_area_and_length) | The geodesic area, perimeter and length added to every feature of a layer, with the totals. |
| [Count features inside each polygon](https://terra-lab.ai/docs/mcp/tools/count_in_polygons) | How many features of a layer fall inside each polygon of a second layer, with an optional sum of a numeric field. |
| [Nearest feature and its distance](https://terra-lab.ai/docs/mcp/tools/find_nearest_features) | For each feature of a layer, the nearest feature of a second layer and the distance to it. |
| [Select features by location](https://terra-lab.ai/docs/mcp/tools/select_by_location) | The features of a layer that intersect a second layer, lie within it or lie within a distance of it, or those that do not. |
| [Join attributes by location](https://terra-lab.ai/docs/mcp/tools/join_by_location) | A spatial join: each feature of a layer takes the attributes of the polygon of a second layer it falls in. |
| [Filter features by attribute](https://terra-lab.ai/docs/mcp/tools/filter_by_attribute) | Only the features of a layer whose attributes meet conditions, such as roads of class primary or buildings higher than 10 m. |

## Call the tools over HTTP

Every tool is also callable over HTTP with an [API key](https://terra-lab.ai/docs/authentication), sent as a Bearer token: each tool is a `POST` with its arguments as the JSON body, under this base URL.

```text
https://mcp.terra-lab.ai
```

### Account and discovery

| Endpoint | Auth | What it returns |
| --- | --- | --- |
| `GET /v1/me` | Key | The account, its calls this month and today, its balance and its activation state. |
| `GET /v1/tools` | Key | Every tool with its input and output JSON Schema. |
| `GET /v1/openapi.json` | None | The OpenAPI 3.1 document: [https://mcp.terra-lab.ai/v1/openapi.json](https://mcp.terra-lab.ai/v1/openapi.json). |
| `GET /v1/meta/pricing` | None | The price grid as JSON: [https://mcp.terra-lab.ai/v1/meta/pricing](https://mcp.terra-lab.ai/v1/meta/pricing). |

Check your key and your remaining calls:

```bash
curl https://mcp.terra-lab.ai/v1/me \
  -H "Authorization: Bearer $TERRALAB_API_KEY"
```

```python
import os
import requests

response = requests.get(
    "https://mcp.terra-lab.ai/v1/me",
    headers={"Authorization": f"Bearer {os.environ['TERRALAB_API_KEY']}"},
    timeout=120,
)
response.raise_for_status()
print(response.json())
```

```javascript
const response = await fetch('https://mcp.terra-lab.ai/v1/me', {
  headers: {
    Authorization: `Bearer ${process.env.TERRALAB_API_KEY}`,
  },
});
const data = await response.json();
console.log(data);
```

```json
{
  "account": "3f9c0a1e7b2d4c6a8e0f1b3d",
  "auth": "key",
  "today": {
    "calls": 3,
    "limit": 100
  },
  "month": {
    "calls": 12,
    "included": 100,
    "resets_at": "2026-11-01T00:00:00.000Z"
  },
  "balance": {
    "currency": "EUR",
    "amount": 0,
    "micros": 0
  },
  "activation": {
    "first_call_at": null,
    "first_call_client": null
  }
}
```

An illustrative answer for a new account. `month.included` is the number of calls included this calendar month (UTC); later calls are taken from the balance. `today.limit` carries the same number for older clients.

### OpenAPI

Import [https://mcp.terra-lab.ai/v1/openapi.json](https://mcp.terra-lab.ai/v1/openapi.json) into Postman, Insomnia, Bruno or a client generator. It is built from the tool schemas the server runs, so it is never behind the server.

## Versioning and deprecation

The version is in the path. Within `/v1`, changes are additive only: new tools, new optional parameters and new response fields. A change that would break a client ships under a new path version (`/v2`) while `/v1` keeps working.

A tool or endpoint that will be removed is announced in the [changelog](https://terra-lab.ai/docs/changelog) at least 6 months ahead. During that period its HTTP responses carry a `Deprecation` header (RFC 9745) and a `Sunset` header (RFC 8594) with the removal date. Nothing in `/v1` is deprecated today.


Source: https://terra-lab.ai/docs/mcp/tools · Updated 2026-11-24
