treasury_exchange_rates

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

Get official US Treasury exchange rates for any currency (e.g., ‘EUR’, ‘GBP’, ‘JPY’). Returns rates used for government conversions.

Parameters

NameTypeRequiredDescription
countrystringyesCountry name (e.g., “China”, “Mexico”, “Japan”, “Canada”)
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 May 9, 2026