> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cucu.bo/llms.txt
> Use this file to discover all available pages before exploring further.

# Servidor MCP

> Integrá el tipo de cambio del BCB en Claude, Cursor o VS Code vía Model Context Protocol.

El servidor **MCP** expone los indicadores del BCB como herramientas para clientes de IA. El modelo
resuelve el tipo de cambio mediante *tool calls*, en lenguaje natural. Streamable HTTP (JSON-RPC 2.0),
sin API key.

```
https://bcb.cucu.bo/mcp
```

## Configuración

<Tabs>
  <Tab title="Claude Code">
    Agregá a `.mcp.json` en la raíz de tu proyecto:

    ```json theme={"system"}
    { "mcpServers": { "bcb": { "type": "http", "url": "https://bcb.cucu.bo/mcp" } } }
    ```
  </Tab>

  <Tab title="Cursor">
    Settings → MCP Servers → Add:

    * **Name:** `bcb`
    * **Type:** `http`
    * **URL:** `https://bcb.cucu.bo/mcp`
  </Tab>

  <Tab title="VS Code">
    Agregá a `.vscode/mcp.json`:

    ```json theme={"system"}
    { "mcpServers": { "bcb": { "type": "http", "url": "https://bcb.cucu.bo/mcp" } } }
    ```
  </Tab>
</Tabs>

## Herramientas

<CardGroup cols={2}>
  <Card title="get_tc_oficial" icon="dollar-sign">TC oficial flexible (compra/venta).</Card>
  <Card title="get_tc_referencial" icon="arrows-rotate">Alias de compatibilidad → oficial flexible.</Card>
  <Card title="get_monedas" icon="coins">\~43 monedas internacionales en Bs.</Card>
  <Card title="get_ufv" icon="house">Unidad de Fomento a la Vivienda.</Card>
  <Card title="get_oro" icon="gem">Oro y plata (USD/OTF).</Card>
  <Card title="get_sofr" icon="percent">Tasa SOFR.</Card>
  <Card title="get_sdr" icon="globe">DEG / SDR (USD).</Card>
  <Card title="get_inflacion" icon="chart-line">IPC, mensual y 12 meses.</Card>
  <Card title="get_tre" icon="building-columns">TRe (MN, MVDOL, MN-UFV, ME).</Card>
  <Card title="get_all_indicators" icon="layer-group">Todos los indicadores en JSON.</Card>
</CardGroup>

## Ejemplo (lista de herramientas)

<CodeGroup>
  ```bash cURL theme={"system"}
  curl -X POST https://bcb.cucu.bo/mcp \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
  ```
</CodeGroup>

Una vez conectado, basta con preguntar: *"¿cuál es el tipo de cambio oficial del dólar hoy?"* —
el cliente invoca `get_tc_oficial` y responde con compra/venta.
