GnistAI GnistAI
Log in

ECB FX Rates

Simple currency conversion — quick FX lookups with auto-detected latest ECB reference rates.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 4 tools tools 4 4 Finance

Data source: European Central Bank

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/ecb-fx/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-ecb-fx": {
      "url": "https://context.gnist.ai/mcp/ecb-fx/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/ecb-fx/" \
  -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": "get_rate", "arguments": {"base": "example", "target": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/ecb-fx/

4 endpoints available:

Shell
curl "https://context.gnist.ai/rest/ecb-fx/get_rate?base=example&target=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/ecb-fx/get_rate",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "base": "example",
        "target": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc ecb-fx

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (4)

get_rate
Get the current exchange rate between two currencies.
ParameterTypeRequiredDescription
basestringrequiredISO 4217 currency code for the base currency (e.g. "USD", "EUR", "NOK").
targetstringrequiredISO 4217 currency code for the target currency (e.g. "GBP", "JPY").
get_rates
Get current exchange rates for all ECB-covered currencies against a base currency.
ParameterTypeRequiredDescription
basestringrequiredISO 4217 currency code (e.g. "USD", "EUR", "NOK").
get_history
Get daily exchange rates for a currency pair over the past N days (up to 90).
ParameterTypeRequiredDescription
basestringrequiredISO 4217 currency code for the base currency (e.g. "USD", "EUR").
targetstringrequiredISO 4217 currency code for the target currency (e.g. "NOK", "GBP").
daysintegeroptionalNumber of days of history to return (1–90, default 30). (default: 30)
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related