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
| Name | Type | Required | Description |
|---|---|---|---|
country | string | no | Country 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. |
limit | number | no | Number 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, count, records
| Field | Type | Description |
|---|---|---|
description | string | |
country | string | null | Echo of the country filter; ABSENT when the caller omitted it and got rates across all countries |
count | number | |
records | array | |
source | string | live or mirror |
mirror_fetched_at | string | Timestamp of the underlying rate data |
note | string | Present when the live API was unreachable and the mirror answered |
Full JSON Schema
{
"type": "object",
"description": "US Treasury exchange rates. Indexed by COUNTRY, not currency — the euro is filed under \"Euro Zone\", and there is no United States row because these are rates from the dollar.",
"properties": {
"description": {
"type": "string"
},
"country": {
"type": [
"string",
"null"
],
"description": "Echo of the country filter; ABSENT when the caller omitted it and got rates across all countries"
},
"count": {
"type": "number"
},
"records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"record_date": {
"type": "string"
},
"country": {
"type": "string"
},
"currency": {
"type": "string"
},
"exchange_rate": {
"type": [
"number",
"string"
]
},
"effective_date": {
"type": "string"
}
}
}
},
"source": {
"type": "string",
"description": "live or mirror"
},
"mirror_fetched_at": {
"type": "string",
"description": "Timestamp of the underlying rate data"
},
"note": {
"type": "string",
"description": "Present when the live API was unreachable and the mirror answered"
}
},
"required": [
"description",
"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.