n8n already ships what an AI agent needs to use external tools over MCP: the MCP Client Tool node. Connect it to an AI Agent, point it at the Better Llama MCP, and your n8n agent gets 15 tools with public data from Chile, Colombia, Peru and Mexico (UF, observed dollar, public tenders, fuel prices, earthquakes, Colombia's TRM and more), with the official source and date in every answer. No integration to write per source.
This guide shows both ways to do it: import our ready-made workflow or build it from scratch. Node and field names come from the official n8n documentation and the node source code; the data comes from real calls to the production MCP made on November 27, 2026 at 08:22 (Chile time).
What you need
- An n8n instance (n8n Cloud or self-hosted) with the AI nodes: AI Agent and MCP Client Tool.
- A chat model credential for the agent (the workflow uses OpenAI Chat Model, but you can swap in another provider).
- The MCP:
https://mcp.betterllama.com/mcp. The beta is free, needs no sign-up and allows 60 requests per minute per IP.
Before opening n8n: test the MCP
The MCP Client Tool speaks JSON-RPC over HTTP. You can make the same call with curl to confirm the MCP answers from your network:
curl -s https://mcp.betterllama.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_chile_financial_indicators","arguments":{"source":"uf","period":"current"}}}'The JSON comes inside result.content[0].text. This is the real content from November 27, 2026:
{
"tool": "get_chile_financial_indicators",
"count": 1,
"results": [
{
"indicator": "uf",
"indicatorName": "Unidad de Fomento (UF)",
"date": "2026-11-27",
"year": 2026,
"month": 11,
"value": 41419.22,
"valueRaw": "41.419,22",
"unit": "CLP",
"validFrom": "2026-11-27",
"redacted": false,
"source": "uf",
"kind": "indicador",
"officialUrl": "https://api.cmfchile.cl/documentacion/index.html",
"dataSource": "Comisión para el Mercado Financiero (CMF Chile), API CMF Bancos. Fuente: https://www.sbif.cl / https://www.cmfchile.cl",
"retrievedAt": "2026-11-27T11:22:26.345Z"
}
],
"warnings": [],
"stopReason": "completed",
"attribution": "Fuente: Comisión para el Mercado Financiero (CMF Chile), API CMF Bancos — https://www.cmfchile.cl",
"source": "https://api.cmfchile.cl/",
"retrievedAt": "2026-11-27T11:22:26.345Z"
}Quick option: import the workflow
Our examples repository has n8n/chile-data-mcp-workflow.json, a ready-made workflow with five connected nodes:
- When chat message received (Chat Trigger node): receives your messages.
- AI Agent: decides which tool to call.
- OpenAI Chat Model (
gpt-4o-mini): the agent's model. - Simple Memory: remembers earlier messages in the conversation.
- Better Llama MCP (MCP Client Tool node): the 15 tools.
To import it, open the workflow menu in the canvas header and choose Import from URL with this address, or download the file and use Import from File (import documentation):
https://raw.githubusercontent.com/better-llama/chile-data-mcp-examples/main/n8n/chile-data-mcp-workflow.jsonThen open OpenAI Chat Model and pick your credential. Nothing else to change: the MCP node already points at the Better Llama MCP.
From scratch: the MCP Client Tool node step by step
- Add a Chat Trigger and connect an AI Agent node to it.
- On the AI Agent, connect a chat model (for example OpenAI Chat Model) and, if you want a conversation with context, Simple Memory.
- On the AI Agent, click Tool + and search for MCP Client Tool.
- Fill in the node fields as in this table.
| Node field | Value | What for |
|---|---|---|
| Endpoint | https://mcp.betterllama.com/mcp | The MCP address. |
| Server Transport | HTTP Streamable | The current MCP transport. The other option, «Server Sent Events (Deprecated)», does not apply. |
| Authentication | None | Keyless tools work without authentication during the beta. |
| Tools to Include | All | Exposes all 15 tools to the agent. «Selected» or «All Except» let you narrow it down. |
This is the node in the workflow JSON (verbatim excerpt from n8n/chile-data-mcp-workflow.json):
{
"parameters": {
"endpointUrl": "https://mcp.betterllama.com/mcp",
"serverTransport": "httpStreamable",
"authentication": "none",
"include": "all",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.mcpClientTool",
"typeVersion": 1.2,
"name": "Better Llama MCP"
}If your n8n shows an SSE Endpoint field instead of Endpoint, you are on the first version of the node, which only connects over SSE. Update n8n or add the node again to use HTTP Streamable.
The agent's instructions
The workflow gives the AI Agent this system message (System Message field in the node options). It is in Spanish; the key parts are: call search_tools first, answer in the user's language and always cite the source from attribution:
Eres un asistente con acceso a datos públicos de Chile mediante el MCP de Better Llama. Usa primero la herramienta search_tools con la tarea del usuario para elegir la herramienta adecuada y luego llámala. Responde en el idioma del usuario y cita siempre la fuente oficial del campo attribution. Si una herramienta requiere una clave propia (access = byok), explica qué encabezado configurar; nunca pidas claves en el chat.What your agent gets
With Tools to Include set to «All», the agent sees the 15 tools the MCP returned on November 27:
search_tools, search_chile_public_tenders, get_chile_financial_indicators, get_chile_central_bank_series, find_chile_fuel_prices, chilexpress_shipping, get_chile_electricity_market, search_chile_official_gazette, get_chile_earthquakes, get_santiago_stock_exchange_data, chile_calendar_and_rut, colombia_secop_search, colombia_trm, peru_bcrp_series, mexico_banxico_indicatorsIf you ask «what is the UF today?», the agent can call search_tools first. This is the real answer to that search (the query is in Spanish, like the system message):
→ tools/call
{
"name": "search_tools",
"arguments": {
"query": "valor de la UF hoy"
}
}
← result (10 tools; top 3)
[
{
"name": "get_chile_financial_indicators",
"country": "CL",
"access": "shared"
},
{
"name": "mexico_banxico_indicators",
"country": "MX",
"access": "none"
},
{
"name": "get_chile_central_bank_series",
"country": "CL",
"access": "shared"
}
]Then it calls get_chile_financial_indicators and answers with the value and its source: on November 27, 2026 the UF was CLP 41,419.22 and the observed dollar CLP 1,037.91 (CMF). The same connection works for other countries. This is Colombia's TRM that day, from the Financial Superintendence via datos.gov.co:
→ tools/call
{
"name": "colombia_trm",
"arguments": {
"date": "2026-11-27"
}
}
← result (latest)
{
"date_from": "2026-11-26",
"date_to": "2026-11-27",
"value_cop_per_usd": 3630.89,
"unit": "COP por 1 USD"
}Tools that use your own key
Most tools need no key. Mercado Público and the Santiago Stock Exchange use your own free key, which the MCP reads from an HTTP header. In the MCP Client Tool, set Authentication to Header Auth and create a credential with the header Name (for example X-MercadoPublico-Ticket) and your key as Value. If you need more than one header, use Multiple Headers Auth. Never paste keys into the agent chat.
Tips
- Narrow the tools. If your agent only answers about indicators, set Tools to Include → «Selected» and pick
get_chile_financial_indicatorsandget_chile_central_bank_series. Fewer tools means less context per call. - Timeout. The node's Options include Timeout, the maximum wait per tool call (60,000 ms by default). Raise it for long date ranges.
- Every message is an execution. Per the n8n docs, every message to the Chat Trigger runs the workflow; keep that in mind for your n8n plan.
- Ask it to cite the source. Every MCP answer includes
attributionwith the official source and the data date.
Next steps
Prefer code over nodes? See how to do the same with LangChain, the OpenAI Agents SDK and the Vercel AI SDK. To understand the data behind each tool, continue with the Chile economic indicators guide, the observed dollar guide or the Colombia TRM guide.