mcp-currency mcp

v1.0.0 · MCP Tool · finance · registry.pascalai.org

Currency exchange rates and conversion via open.er-api.com (free, no API key). Operations: latest (all rates for base currency), convert (amount from base to target), list (all available currency codes). 160+ currencies.

currencyforexexchangeratesconvertfinance

Input Parameters

ParameterTypeDescription
operationrequired string Operation: latest, convert, list One of: latest, convert, list.
baseoptional string Base currency code (default: USD) Default: USD.
targetoptional string Target currency code (required for convert)
amountoptional number Amount to convert (default: 1) Default: 1.

Output Fields

FieldTypeDescription
ok boolean
base string
updated string
rates object
from string
to string
amount number
rate number
converted number
currencies array[string]
count integer

Examples

Convert USD to EUR

// Input
{
  "operation": "convert",
  "base": "USD",
  "target": "EUR",
  "amount": 100
}

// Output
{
  "ok": true,
  "from": "USD",
  "to": "EUR",
  "amount": 100,
  "rate": 0.921,
  "converted": 92.1
}

Get latest rates for EUR

// Input
{
  "operation": "latest",
  "base": "EUR"
}

// Output
{
  "ok": true,
  "base": "EUR",
  "updated": "Wed, 05 May 2026 00:02:01 +0000",
  "rates": {
    "USD": 1.085,
    "GBP": 0.856
  }
}

List all available currencies

// Input
{
  "operation": "list"
}

// Output
{
  "ok": true,
  "count": 162,
  "currencies": [
    "AED",
    "AFN",
    "ALL",
    "AMD",
    "..."
  ]
}

Install & Discovery

Install

ppm install mcp-currency

Get JSON Schema

GET /v1/packages/mcp-currency/1.0.0/schema

Discover by keyword

GET /v1/mcp/discover?q=currency
Discovery hint: Install with ppm install mcp-currency or invoke remotely via POST /v1/invoke/mcp-currency on the MCP Service.

PascalAI Usage

uses toolslib;
var Tool := LoadTool('mcp-currency');
var R := Tool.Call(JsonObj(['operation','convert','base','USD','target','EUR','amount','100']));
Writeln(R['converted']);