Search the TerraLab docs and guides
TerraLab docs, blog guides and product pages searched by meaning in any language, with a quoted extract and a link for each page. Free.
| MCP tool | search_docs on https://mcp.terra-lab.ai/mcp |
| Group | Data catalog |
Use it
Connect the MCP server to your assistant and ask in plain words: the assistant picks search_docs when the request fits and fills the arguments below. These are valid arguments:
{"query":"how do I connect Claude to TerraLab"}
{"query":"cómo hacer un mapa de calor en QGIS","language":"es"}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | The question in the user's own words and language. Up to 200 characters. |
language | string | No | The user's language, for links to translated pages (pages without a translation stay in English). One of "en", "fr", "es", "de", "it", "pt-BR", "nl", "pl", "ja", "zh-CN", "zh-TW", "id". Default "en". |
limit | integer | No | How many pages to return. From 1 to 8. Default 5. |
Response
structuredContent holds the result, content the same result as text for a model, and isError is true when the tool refused the request or failed; then structuredContent.code, message and hint say what to change.
{
"structuredContent": {
"sources": [{ "name": "...", "licence": "...", "url": "..." }],
"downloads": [{ "label": "...", "format": "...", "url": "...", "name": "..." }]
},
"content": [{ "type": "text", "text": "..." }],
"isError": false
}
Every result lists its sources with their licence. File results come as downloads: each link builds its file when opened.
Errors
A missing key answers 401, an empty balance 402, too many calls 429. A call that fails or finds nothing is not counted. See Errors and rate limits.
Description for agents
The text the server gives an agent to decide when to call this tool:
Use this when the user asks about TerraLab itself or wants a TerraLab how-to: the QGIS plugins AI Agent, AI Segmentation and AI Edit (install, prices, plans, errors), this MCP server and the API (setup in Claude, ChatGPT or Cursor, pricing, sign-in), or a GIS guide from the TerraLab blog: "how much does AI Agent cost per month", "connect TerraLab to Claude Desktop", "how to georeference a scanned map in QGIS". Searches TerraLab's docs, blog guides and product pages by meaning, in any language, and returns up to limit pages (5 by default), best first, each with its title, the section that matched, a short extract quoted from the page and its link, in the user's language when the page is translated (language says which). It returns pages, not an answer: answer from the extracts in your own words and give the links; never cite a page it did not return. An empty list means no TerraLab page covers the question. Not for map data (extract_open_data, find_datasets) or places (find_places).
Call it over HTTP
The same tool is also callable over HTTP with an API key: POST https://mcp.terra-lab.ai/v1/tools/search_docs with the arguments as the JSON body.
curl -X POST https://mcp.terra-lab.ai/v1/tools/search_docs \
-H "Authorization: Bearer $TERRALAB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"how do I connect Claude to TerraLab"}'
import os
import requests
response = requests.post(
"https://mcp.terra-lab.ai/v1/tools/search_docs",
headers={"Authorization": f"Bearer {os.environ['TERRALAB_API_KEY']}"},
json={
"query": "how do I connect Claude to TerraLab",
},
timeout=120,
)
response.raise_for_status()
print(response.json()["structuredContent"])
const response = await fetch('https://mcp.terra-lab.ai/v1/tools/search_docs', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TERRALAB_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"query": "how do I connect Claude to TerraLab"
}),
});
const data = await response.json();
console.log(data.structuredContent);
Was this page helpful?
Updated Nov 24, 2026