exchange_rate

Pack: twelvedata · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/exchange_rate for the schema, then POST the same URL with its arguments for the data.

Twelve Data live forex exchange rate for a currency pair symbol (e.g. ‘EUR/USD’). Optional dp (decimal places) and timezone. Returns rate, timestamp, and pair identifiers.

Parameters

NameTypeRequiredDescription
formatstringnoResponse format: “JSON” (default) or “CSV”.
dpnumbernoDecimal places for the rate (0–11).

Example call

Arguments

{
  "symbol": "EUR/USD"
}

curl

curl -X POST https://gateway.pipeworx.io/twelvedata/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"exchange_rate","arguments":{"symbol":"EUR/USD"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('exchange_rate', {
  "symbol": "EUR/USD"
});

More examples

{
  "symbol": "GBP/USD",
  "dp": 4
}

Response shape

FieldTypeDescription
symbolstring
ratenumber
timestampnumber
Full JSON Schema
{
  "type": "object",
  "properties": {
    "symbol": {
      "type": "string"
    },
    "rate": {
      "type": "number"
    },
    "timestamp": {
      "type": "number"
    }
  }
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the twelvedata pack
{
  "mcpServers": {
    "twelvedata": {
      "url": "https://gateway.pipeworx.io/twelvedata/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 5, 2026