Finance
Data source: ECB Data API (SDMX 2.1)
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/ecb-stats/
claude_desktop_config.json
{
"mcpServers": {
"gnist-ecb-stats": {
"url": "https://context.gnist.ai/mcp/ecb-stats/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/ecb-stats/" \
-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": "search_datasets", "arguments": {"query": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/ecb-stats/
6 endpoints available:
GET /rest/ecb-stats/search_datasetsGET /rest/ecb-stats/list_datasetsGET /rest/ecb-stats/get_dataset_structureGET /rest/ecb-stats/get_dataGET /rest/ecb-stats/compare_seriesGET /rest/ecb-stats/report_feedback
Shell
curl "https://context.gnist.ai/rest/ecb-stats/search_datasets?query=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/ecb-stats/search_datasets",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"query": "example"
},
)
print(resp.json())
Command Line
Command
gc ecb-stats
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (6)
search_datasetsSearch the ECB dataset catalog by keyword.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search term for ECB datasets (e.g. "interest rate", "inflation", "bank lending", "money supply", "exchange"). |
limit | integer | optional | Number of results to return (1-50, default 20). (default: 20) |
list_datasetsList available ECB datasets, optionally filtered by topic.
| Parameter | Type | Required | Description |
|---|---|---|---|
topic | any | optional | Optional topic filter (e.g. "monetary", "exchange", "lending", "balance"). Omit to list all. |
limit | integer | optional | Maximum datasets to return (1-200, default 50). (default: 50) |
get_dataset_structureGet the dimension structure of an ECB dataset.
| Parameter | Type | Required | Description |
|---|---|---|---|
dataflow | string | required | ECB dataflow identifier from search_datasets (e.g. "EXR", "IRS", "ICP", "BLS", "FM"). |
get_dataFetch data from an ECB dataset.
| Parameter | Type | Required | Description |
|---|---|---|---|
dataflow | string | required | ECB dataflow identifier (e.g. "EXR", "IRS", "ICP"). Use search_datasets to find IDs. |
key_filter | any | optional | SDMX key filter (e.g. "M.USD.EUR.SP00.A" for monthly USD/EUR spot rate). Dot-separated dimension values. Use get_dataset_structure to find valid values. Omit for all data. |
start_period | any | optional | Start period (e.g. "2015", "2020-Q1", "2020-01"). |
end_period | any | optional | End period (e.g. "2023", "2023-Q4", "2023-12"). |
limit | integer | optional | Maximum observations to return (1-1000, default 200). (default: 200) |
compare_seriesCompare multiple data series from the same ECB dataset.
| Parameter | Type | Required | Description |
|---|---|---|---|
dataflow | string | required | ECB dataflow identifier (e.g. "EXR", "IRS"). |
keys | list[string] | required | SDMX key filters to compare (e.g. ["M.USD.EUR.SP00.A", "M.GBP.EUR.SP00.A"]). Maximum 10. |
start_period | any | optional | Start period (e.g. "2020"). Omit for most recent data. |
end_period | any | optional | End period (e.g. "2023"). Omit for most recent data. |
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") |