currency_conversion
Pack: twelvedata · Endpoint: https://gateway.pipeworx.io/twelvedata/mcp
Twelve Data real-time currency conversion: pass a forex pair symbol (e.g. ‘EUR/USD’) and an amount to get the converted value at the current exchange rate.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
amount | number | yes | Amount in the base currency to convert. |
format | string | no | Response format: “JSON” (default) or “CSV”. |
dp | number | no | Decimal places (0–11). |
Example call
Arguments
{
"symbol": "EUR/USD",
"amount": 100
}
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":"currency_conversion","arguments":{"symbol":"EUR/USD","amount":100}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('currency_conversion', {
"symbol": "EUR/USD",
"amount": 100
});
More examples
{
"symbol": "GBP/JPY",
"amount": 50,
"dp": 2
}
Response shape
| Field | Type | Description |
|---|---|---|
status | string | Response status |
code | number | Response code |
message | string | Response message |
Full JSON Schema
{
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "Response status"
},
"code": {
"type": "number",
"description": "Response code"
},
"message": {
"type": "string",
"description": "Response message"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"twelvedata": {
"url": "https://gateway.pipeworx.io/twelvedata/mcp"
}
}
}
See Getting Started for client-specific install steps.