Unit & FX Calculator

Unit & FX Calculator MCP Connector for Claude

A+

Stop LLMs from mixing metric and imperial units or hallucinating exchange rates. Deterministic physical unit conversion and live currency rates.

3 tools Official Updated Oct 1, 2026 Official Vinkius Partner

LLMs notoriously struggle with complex compound conversions (e.g. converting km/h to mph with specific decimal rounding). Worse, they hallucinate foreign exchange (FX) rates based on their historical training data rather than current markets. This MCP bridges that gap.

The Superpowers

  • Physical Determinism: Converts length, mass, volume, temperature, and speed using the exact mathematical engine of mathjs. Completely eliminates metric/imperial hallucination.
  • Live FX Rates: Two free keyless sources in one tool: official central bank reference rates via the Frankfurter API (84 data sources) plus live market prices from Binance's public API routed via USDT.
  • In-Memory Edge Cache: FX rates are cached in a native V8 Map for 1 hour, meaning massive batch conversions run instantly without getting rate-limited.
currency-exchangefx-ratesunit-conversionbinancefinancial-datareal-time-rates

3 tools expose this connector's capabilities to your AI agent.

batch_convert

). Pass the value, source unit, and target unit for exact mathematical conversion. Converts multiple physical units in a single deterministic pass

convert_unit

Length, mass, volume, temperature and speed are supported; incompatible units (e.g. km to kg) return an error instead of a guess. Deterministically converts physical units (e.g. km/h to mi/h, celsius to fahrenheit) using mathjs

get_rate

Some currencies (e.g. JPY) have no Binance pair; if the market source reports no pair, retry with source "reference". Gets the foreign exchange rate between two ISO currency codes. Two free sources: "reference" (central bank rates via Frankfurter, 1h cache) or "market" (live Binance market prices, 5min cache)

See how to talk to your AI agent using Unit & FX Calculator.

Convert 120 km/h into miles per hour (mph) and round strictly to 2 decimals.

✅ **Converted Unit:** `74.56 mph`

Fetch the live exchange rate to convert `USD` to `BRL`.

✅ **Live FX Rate:** `5.21` (live via Frankfurter, cached locally).

Batch convert this array of 5 temperatures from Celsius to Fahrenheit deterministically.

✅ **Batch Completed:** Processed 5 units instantly with 0 loss in float precision.

Reference rates are cached for 1 hour; live Binance market rates for 5 minutes.

Related Connectors