Skip to content
TerraLabTerraLabDocs
Markdown

Connect an agent

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

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.

Claude

Open the prefilled dialog: add TerraLab to Claude. 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, 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:

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:

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

Codex

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:

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

Cursor

Open the install link: add TerraLab to Cursor. 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:

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

VS Code

Open the install link: add TerraLab to VS Code. Click Install, sign in to TerraLab, then ask Copilot in agent mode.

Or in .vscode/mcp.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:

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 (Advanced, API keys), then send it as a header with every request to the server URL:

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

Tools

The server exposes 41 tools. Each one has its page in 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.

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 or wait for the 1st of the month. See Pricing and free calls.
  • A tool answers with an error. Its message and hint say what to change. See Errors and rate limits.
Explained on the blogQGIS MCP: How to Set It Up With Claude, and Where It Breaks

Was this page helpful?

Updated Nov 23, 2026