treasury_exchange_rates

Pack: treasury-fiscal · Endpoint: https://gateway.pipeworx.io/treasury-fiscal/mcp

Get official US Treasury exchange rates used for government currency conversions. Pass a country name for one country’s rate; omit it for the most recent rates across all countries.

Parameters

NameTypeRequiredDescription
countrystringnoCountry name (e.g., “China”, “Mexico”, “Japan”, “Canada”). Treasury indexes by country, not currency: the euro is “Euro Zone” (common aliases like “Eurozone”/“EUR” are accepted), and there is no United States row because these are rates from the dollar. Omit for the latest rates across all countries.
limitnumbernoNumber of records to return (default 12)

Example call

Arguments

{
  "country": "China",
  "limit": 12
}

curl

curl -X POST https://gateway.pipeworx.io/treasury-fiscal/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"treasury_exchange_rates","arguments":{"country":"China","limit":12}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('treasury_exchange_rates', {
  "country": "China",
  "limit": 12
});

More examples

{
  "country": "Japan",
  "limit": 24
}

Response shape

Always returns: description, country, count, records

FieldTypeDescription
descriptionstringDescription of the data
countrystringCountry name requested
countnumberNumber of records returned
recordsarrayExchange rate records
Full JSON Schema
{
  "type": "object",
  "properties": {
    "description": {
      "type": "string",
      "description": "Description of the data"
    },
    "country": {
      "type": "string",
      "description": "Country name requested"
    },
    "count": {
      "type": "number",
      "description": "Number of records returned"
    },
    "records": {
      "type": "array",
      "description": "Exchange rate records",
      "items": {
        "type": "object",
        "properties": {
          "record_date": {
            "type": "string",
            "description": "Date of the record"
          },
          "country": {
            "type": "string",
            "description": "Country name"
          },
          "currency": {
            "type": "string",
            "description": "Currency code"
          },
          "exchange_rate": {
            "type": "number",
            "description": "Exchange rate value"
          },
          "effective_date": {
            "type": "string",
            "description": "Effective date of the rate"
          }
        }
      }
    }
  },
  "required": [
    "description",
    "country",
    "count",
    "records"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "treasury-fiscal": {
      "url": "https://gateway.pipeworx.io/treasury-fiscal/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 8, 2026