GnistAI GnistAI
Log in

Currency Conversion

Real-time and historical currency conversion — 30+ currencies with ECB reference rates.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 4 tools tools 4 4 type: api wrapper type type api wrapper api wrapper lifecycle: maintained lifecycle lifecycle maintained maintained Finance

Data source: Frankfurter API (ECB)

MCP Endpoint (Streamable HTTP) https://context.gnist.ai/mcp/currency-conversion/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (4)

convert_currency

Convert an amount from one currency to another using real-time or historical rates.

Supports 30+ currencies including USD, EUR, GBP, NOK, SEK, JPY, and more.
Uses European Central Bank reference rates via Frankfurter API.

Args:
amount: The amount to convert (must be positive).
base: Source currency code (e.g. "USD", "EUR", "NOK").
target: Target currency code (e.g. "GBP", "SEK", "JPY").
date: Optional ISO date (YYYY-MM-DD) for historical rate. Omit for latest.

ParameterTypeRequiredDescription
amountnumberrequired
basestringrequired
targetstringrequired
dateanyoptional
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "convert_currency",
    "arguments": {
      "amount": 1.0,
      "base": "example",
      "target": "example"
    }
  }
}
get_exchange_rates

Get all exchange rates for a base currency.

Returns rates for 30+ currencies relative to the specified base.

Args:
base: Base currency code (default: "EUR").
date: Optional ISO date (YYYY-MM-DD) for historical rates. Omit for latest.

ParameterTypeRequiredDescription
basestringoptional (default: "EUR")
dateanyoptional
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "get_exchange_rates",
    "arguments": {}
  }
}
list_currencies

List all supported currency codes for conversion.

Returns ISO 4217 currency codes supported by the exchange rate service.

JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "list_currencies",
    "arguments": {}
  }
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "report_feedback",
    "arguments": {
      "feedback": "example"
    }
  }
}

Quick Start

Shell
curl -X POST "https://context.gnist.ai/mcp/currency-conversion/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "convert_currency", "arguments": {"amount": 1.0, "base": "example", "target": "example"}}}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/currency-conversion/",
    headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
    json={
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "convert_currency",
    "arguments": {
      "amount": 1.0,
      "base": "example",
      "target": "example"
    }
  }
},
)
print(resp.json())

Related Toolkits (Finance)

Resources