How to connect AI agents to public data from Chile, Colombia, Peru and Mexico with one MCP

What an MCP is, how to connect it in Claude, Cursor, VS Code or Claude Code, and how your agent queries tenders, UF, SECOP II contracts and the BCRP exchange rate, with real answers.

  • MCP
  • Chile
  • Colombia
  • Peru
  • Article

If you build an AI agent for Latin America, sooner or later it needs official data: the UF value, a tender, a public contract, an exchange rate. Every source has its own API, key, format and limits. This article explains how to solve that with one MCP and shows real answers obtained today.

What an MCP is and why it helps with public data

MCP (Model Context Protocol) is the open standard that clients such as Claude, Cursor, VS Code or Claude Code use to discover and call external tools. Instead of coding one integration per institution, you connect your agent to an MCP server and ask for what you need in plain language. The agent picks the tool, calls it with the right arguments and answers citing the source.

For public data this matters for three reasons: sources change format without notice, many require keys or pagination, and the model needs ISO dates and clean numbers to avoid mistakes when computing. A well-built MCP absorbs that complexity.

One MCP for Chile, Colombia, Peru and Mexico

The Better Llama MCP brings together 15 tools with 13 official sources:

  • Chile: Mercado Público tenders, UF, dollar and UTM from CMF, Central Bank series, CNE fuel prices, the Official Gazette, Coordinador Eléctrico, Chilexpress, the Santiago Stock Exchange, USGS earthquakes, and holidays and RUT.
  • Colombia: SECOP II public procurement contracts and processes, and the TRM (official COP/USD exchange rate from the Superintendencia Financiera), from datos.gov.co.
  • Peru: exchange rate, policy rate, inflation, GDP and reserves from the Central Reserve Bank of Peru (BCRPData).
  • Mexico: FIX exchange rate, UDIS, TIIE, policy target rate and inflation from Banco de México (SIE).

During the beta it is free, with no sign-up and a limit of 60 requests per minute per IP.

How to connect it in your client

Claude (claude.ai or Claude Desktop): in Settings → Connectors, choose «Add custom connector» and paste the MCP address: https://mcp.betterllama.com/mcp.

Cursor: add this to ~/.cursor/mcp.json:

mcp.json
{
  "mcpServers": {
    "better-llama": {
      "url": "https://mcp.betterllama.com/mcp"
    }
  }
}

Claude Code:

terminal
claude mcp add --transport http better-llama https://mcp.betterllama.com/mcp

VS Code (GitHub Copilot): file .vscode/mcp.json:

json
{
  "servers": {
    "better-llama": {
      "type": "http",
      "url": "https://mcp.betterllama.com/mcp"
    }
  }
}

Any other client with remote MCP over Streamable HTTP works the same way. There is no authentication to set up.

How your agent picks the tool

The server includes search_tools, which searches the catalog by task, in Spanish or English. Ask your agent about tenders and it first calls search_tools, getting the public procurement tools for Chile and Colombia. This is the real answer, shortened:

MCP
→ tools/call
{
  "name": "search_tools",
  "arguments": {
    "query": "licitaciones"
  }
}

← result
{
  "count": 2,
  "tools": [
    {
      "name": "search_chile_public_tenders",
      "title": "Licitaciones y compras públicas de Chile (Mercado Público)",
      "country": "CL",
      "access": "byok"
    },
    {
      "name": "colombia_secop_search",
      "title": "Contratos y procesos de compras públicas de Colombia (SECOP II)",
      "country": "CO",
      "access": "none"
    }
  ],
  "coverage": {
    "available": [
      "CL",
      "CO",
      "PE"
    ],
    "roadmap": [
      "MX"
    ]
  }
}

Three questions, three countries

These are real MCP answers, queried on November 20, 2026:

  • Chile. «What is the UF worth today?» → CLP 41,371.05 (CMF). The observed dollar for the same day: CLP 1,008.79.
  • Colombia. «Software contracts signed in Antioquia» → among others, Instituto Municipal de Deportes de Turbo with Sistemas Aries SAS, for COP 17,000,000, signed on November 18 (SECOP II, datos.gov.co).
  • Peru. «What is the interbank exchange rate?» → PEN 3.432 per dollar (ask) on November 18 (BCRP, BCRPData).

Every answer has an attribution field with the source the model should cite.

Without an MCP client: JSON-RPC over HTTP

The same server answers JSON-RPC 2.0 over POST, so you can use it from a script, n8n or your backend:

curl
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": "peru_bcrp_series", "arguments": {"series": ["tc_interbancario_venta"], "fromDate": "2026-11-01", "maxItems": 5}}}'

Attribution, privacy and keys

  • Attribution: every answer names the official source and, where relevant, its license (for example, CC BY-SA 4.0 for SECOP II).
  • Natural persons: we omit their data (in Chile, under Laws 19.628 and 21.719; in Colombia, name and ID of suppliers who are natural persons).
  • Keys: most tools need none. Mercado Público and the Santiago Stock Exchange require your own free key, and Chilexpress needs one to quote and track shipments; it goes in an HTTP header and we never store it. Do not paste keys into chat.

Next steps

See the use cases with real examples, the step-by-step guides for each source, or the machine-readable catalog in tools.json and llms.txt.

Connect your agent in a minute

15 tools with official data from Chile, Colombia, Peru and Mexico, free during the beta and with no sign-up.

https://mcp.betterllama.com/mcp