# Connect an agent

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

TerraLab is a remote MCP server over Streamable HTTP. One URL works in every agent:

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

The first time, your agent asks you to sign in to TerraLab. Your free calls and balance show on [Dashboard, MCP](https://terra-lab.ai/dashboard/mcp).

## Claude

Open the prefilled dialog: [add TerraLab to Claude](https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=TerraLab&connectorUrl=https%3A%2F%2Fmcp.terra-lab.ai%2Fmcp). Click **Add**, then **Connect**, and sign in to TerraLab.

Or in Claude, open **Settings**, **Connectors**, **Add custom connector**, and paste the server URL.

## ChatGPT

Open the [TerraLab app in ChatGPT](https://chatgpt.com/plugins/terralab), click **Add**, then start your message with `@TerraLab`. No TerraLab account is needed in ChatGPT today. Each ChatGPT user can make 200 calls a day; the count resets at 00:00 UTC.

## Claude Code

Run this in your terminal:

```bash
claude mcp add --transport http terralab https://mcp.terra-lab.ai/mcp
```

Then run `/mcp` in Claude Code and sign in to TerraLab. Ready-made GIS workflows come as a plugin:

```text
/plugin marketplace add TerraLabAI/mcp
/plugin install terralab@terralab-ai-apps
```

## Codex

```bash
codex mcp add terralab --url https://mcp.terra-lab.ai/mcp
```

Codex adds the server and opens the TerraLab sign-in in your browser. It then works in the CLI, the IDE extension and the app. The same entry in `~/.codex/config.toml`:

```toml
[mcp_servers.terralab]
url = "https://mcp.terra-lab.ai/mcp"
```

## Cursor

Open the install link: [add TerraLab to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=terralab&config=eyJ1cmwiOiJodHRwczovL21jcC50ZXJyYS1sYWIuYWkvbWNwP3ZpYT1jdXJzb3IifQ%3D%3D). Cursor shows the server: click **Install**, then sign in when it asks.

Or add a remote server in Cursor's MCP settings, in `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "terralab": { "url": "https://mcp.terra-lab.ai/mcp" }
  }
}
```

## VS Code

Open the install link: [add TerraLab to VS Code](vscode:mcp/install?%7B%22name%22%3A%22terralab%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.terra-lab.ai%2Fmcp%3Fvia%3Dvscode%22%7D). Click **Install**, sign in to TerraLab, then ask Copilot in agent mode.

Or in `.vscode/mcp.json`:

```json
{
  "servers": {
    "terralab": { "type": "http", "url": "https://mcp.terra-lab.ai/mcp" }
  }
}
```

## Microsoft Copilot Studio

In your agent, open **Tools**, **Add a tool**, **New tool**, **Model Context Protocol**. Paste the server URL, choose **OAuth 2.0** with the type **Dynamic discovery**, then **Create**. Create a new connection, sign in to TerraLab, and select **Add to agent**.

## Other agents

Add a remote MCP server with the URL above in any agent that takes one; it opens the TerraLab sign-in. Gemini CLI:

```bash
gemini mcp add --transport http -s user terralab https://mcp.terra-lab.ai/mcp
```

To teach any agent when and how to use the tools, give it `https://terra-lab.ai/skills.md`.

## With an API key

An agent that cannot open a sign-in page can send a TerraLab API key instead. Create one on your [account page](https://terra-lab.ai/dashboard/mcp) (**Advanced**, **API keys**), then send it as a header with every request to the server URL:

```json
{
  "mcpServers": {
    "terralab": {
      "url": "https://mcp.terra-lab.ai/mcp",
      "headers": { "Authorization": "Bearer tlk_..." }
    }
  }
}
```

Calls made with a key count on the same account as your signed-in agents, with the same included calls and balance. Revoke a key on the same page: it stops working within a minute. Details: [Authentication](https://terra-lab.ai/docs/authentication).

## Tools

The server exposes 41 tools. Each one has its page in [MCP tools](https://terra-lab.ai/docs/mcp/tools), with its parameters and response. The same tools are also callable over HTTP with an API key, under the same names and arguments.

ChatGPT lists all 41. Claude and other agents get a shorter list of 19: the layer operations are listed in ChatGPT only (elsewhere `process_geometry` and `measure` do the same work), and `get_route`, `get_travel_times`, `get_satellite_index`, `french_parcels_in_area`, `zonal_statistics` and `get_forest_type` are left out of the list but stay callable by name.

`search_docs` searches these docs, the TerraLab blog guides and product pages, in any language, so an agent can answer questions about TerraLab itself. It is free: it never counts against your calls or balance.

- **Places**: [Find places and addresses](https://terra-lab.ai/docs/mcp/tools/find_places), [Convert coordinates](https://terra-lab.ai/docs/mcp/tools/convert_coordinates), [Measure distance, area, radius or buffer](https://terra-lab.ai/docs/mcp/tools/measure)
- **Map data**: [Extract open map data for an area](https://terra-lab.ai/docs/mcp/tools/extract_open_data), [Open, map and convert GIS data](https://terra-lab.ai/docs/mcp/tools/open_gis_file), [Buffer, clip, join, count or filter features](https://terra-lab.ai/docs/mcp/tools/process_geometry)
- **Terrain and routes**: [Elevation, profile and contour lines](https://terra-lab.ai/docs/mcp/tools/get_elevation), [Road route between places](https://terra-lab.ai/docs/mcp/tools/get_route), [Area reachable in a travel time](https://terra-lab.ai/docs/mcp/tools/get_travel_area), [Travel times between many places](https://terra-lab.ai/docs/mcp/tools/get_travel_times)
- **Imagery and land**: [Satellite image of an area](https://terra-lab.ai/docs/mcp/tools/get_satellite_image), [Sentinel-2 index and change](https://terra-lab.ai/docs/mcp/tools/get_satellite_index), [Statistics of a raster per polygon](https://terra-lab.ai/docs/mcp/tools/zonal_statistics), [Forest type (natural, planted, plantation)](https://terra-lab.ai/docs/mcp/tools/get_forest_type), [Estimate the population of an area](https://terra-lab.ai/docs/mcp/tools/estimate_population)
- **France**: [French cadastral parcel and zoning](https://terra-lab.ai/docs/mcp/tools/french_parcel), [French cadastral parcels and zoning in an area](https://terra-lab.ai/docs/mcp/tools/french_parcels_in_area), [French building heights](https://terra-lab.ai/docs/mcp/tools/french_building_heights), [Natural risks at an address or a point](https://terra-lab.ai/docs/mcp/tools/get_natural_risks)
- **Data catalog**: [Find a dataset in the TerraLab catalogue](https://terra-lab.ai/docs/mcp/tools/find_datasets), [Extract a hosted dataset for an area](https://terra-lab.ai/docs/mcp/tools/extract_dataset), [Describe a cloud GeoParquet dataset](https://terra-lab.ai/docs/mcp/tools/inspect_dataset), [Count and sum a cloud GeoParquet per zone](https://terra-lab.ai/docs/mcp/tools/aggregate_dataset), [Ask TerraLab to add data it does not have](https://terra-lab.ai/docs/mcp/tools/request_data), [Search the TerraLab docs and guides](https://terra-lab.ai/docs/mcp/tools/search_docs)
- **Layer operations**: [Straight-line distance between places](https://terra-lab.ai/docs/mcp/tools/measure_distance), [Area and perimeter of a shape](https://terra-lab.ai/docs/mcp/tools/measure_area), [Circle of a given radius around a place](https://terra-lab.ai/docs/mcp/tools/circle_around_place), [Buffer features by a distance](https://terra-lab.ai/docs/mcp/tools/buffer_features), [Merge (dissolve) features into one](https://terra-lab.ai/docs/mcp/tools/dissolve_features), [Keep the parts inside a second layer](https://terra-lab.ai/docs/mcp/tools/intersect_layers), [Remove the parts inside a second layer](https://terra-lab.ai/docs/mcp/tools/erase_with_layer), [Clip features to an area or a layer](https://terra-lab.ai/docs/mcp/tools/clip_features), [Simplify feature outlines](https://terra-lab.ai/docs/mcp/tools/simplify_features), [Centre point of each feature](https://terra-lab.ai/docs/mcp/tools/feature_centroids), [Add area and length to each feature](https://terra-lab.ai/docs/mcp/tools/add_area_and_length), [Count features inside each polygon](https://terra-lab.ai/docs/mcp/tools/count_in_polygons), [Nearest feature and its distance](https://terra-lab.ai/docs/mcp/tools/find_nearest_features), [Select features by location](https://terra-lab.ai/docs/mcp/tools/select_by_location), [Join attributes by location](https://terra-lab.ai/docs/mcp/tools/join_by_location), [Filter features by attribute](https://terra-lab.ai/docs/mcp/tools/filter_by_attribute)

## What to ask

- "Find the coordinates of these 40 addresses and give me a CSV for QGIS."
- "Extract the buildings and roads within 1 km of Annecy station as a GeoPackage."
- "Elevation profile from Chamonix to the Aiguille du Midi."
- "Which natural risks apply at 12 rue de la Paix, Annecy?"

Answers show a map in the chat when the agent supports it, and give files that open in QGIS, ArcGIS or Google Earth.

## Troubleshooting

- **TerraLab shows as connected in Claude but has no tools.** If you added it before October 26, 2026, remove the connector and add it again: Claude then offers the TerraLab sign-in.
- **The agent says the free calls are used.** Top up on [Dashboard, MCP](https://terra-lab.ai/dashboard/mcp) or wait for the 1st of the month. See [Pricing and free calls](https://terra-lab.ai/docs/pricing).
- **A tool answers with an error.** Its `message` and `hint` say what to change. See [Errors and rate limits](https://terra-lab.ai/docs/errors).

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