Finance
Data source: European Central Bank
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"}}}'
REST API
API Root
https://context.gnist.ai/rest/ecb-fx/
4 endpoints available:
GET /rest/ecb-fx/get_rateGET /rest/ecb-fx/get_ratesGET /rest/ecb-fx/get_historyGET /rest/ecb-fx/report_feedback
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())
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_rateGet the current exchange rate between two currencies.
| Parameter | Type | Required | Description |
|---|---|---|---|
base | string | required | ISO 4217 currency code for the base currency (e.g. "USD", "EUR", "NOK"). |
target | string | required | ISO 4217 currency code for the target currency (e.g. "GBP", "JPY"). |
get_ratesGet current exchange rates for all ECB-covered currencies against a base currency.
| Parameter | Type | Required | Description |
|---|---|---|---|
base | string | required | ISO 4217 currency code (e.g. "USD", "EUR", "NOK"). |
get_historyGet daily exchange rates for a currency pair over the past N days (up to 90).
| Parameter | Type | Required | Description |
|---|---|---|---|
base | string | required | ISO 4217 currency code for the base currency (e.g. "USD", "EUR"). |
target | string | required | ISO 4217 currency code for the target currency (e.g. "NOK", "GBP"). |
days | integer | optional | Number of days of history to return (1–90, default 30). (default: 30) |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |