GnistAI GnistAI
Log in

Eurostat

EU statistical data — demographics, trade, GDP, employment, and social indicators.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 6 tools tools 6 6 Economics

Data source: Eurostat

MCP MCP Protocol

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

API REST API

API Root https://context.gnist.ai/rest/eurostat/

6 endpoints available:

Shell
curl "https://context.gnist.ai/rest/eurostat/get_stat?dataset_code=example&geo=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/eurostat/get_stat",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "dataset_code": "example",
        "geo": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc eurostat

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

Install
pip install gnistai

Available Tools (6)

get_stat
Fetch a time series from a Eurostat dataset filtered by geographic area.
ParameterTypeRequiredDescription
dataset_codestringrequiredEurostat dataset identifier (e.g. "nama_10_gdp" for national accounts, "lfsi_emp_a" for employment). Use search_datasets or list_datasets to discover codes.
geostringrequiredISO 3166-1 alpha-2 country/region code (e.g. "NO", "DE", "EU27_2020"). Comma-separated for multiple geographies (e.g. "NO,SE,DK").
time_fromanyoptionalStart year (inclusive), e.g. 2015.
time_toanyoptionalEnd year (inclusive), e.g. 2023.
unitanyoptionalUnit filter code (e.g. "CP_MEUR" for current prices in millions of euros, "PC_GDP" for percentage of GDP). Optional — omit to get all units.
freqstringoptionalFrequency code: "A" (annual, default), "Q" (quarterly), "M" (monthly). (default: "A")
search_datasets
Search Eurostat dataset catalogue by keyword.
ParameterTypeRequiredDescription
querystringrequiredSearch term (e.g. "gdp", "unemployment", "greenhouse gas").
limitintegeroptionalMaximum number of results to return (default 20). (default: 20)
list_datasets
Browse all available Eurostat datasets, optionally filtered by topic keyword.
ParameterTypeRequiredDescription
topic_filteranyoptionalOptional keyword to filter dataset titles (e.g. "trade", "energy", "migration"). Case-insensitive substring match on title and code. If omitted, returns the first 50 datasets from the catalogue.
compare_countries
Compare one Eurostat dataset across multiple countries for a given year.
ParameterTypeRequiredDescription
dataset_codestringrequiredEurostat dataset identifier (e.g. "nama_10_gdp"). Use search_datasets to find the right code.
geo_codeslist[string]requiredList of ISO 3166-1 alpha-2 or Eurostat geo codes (e.g. ["NO", "SE", "DE", "FR"]).
yearintegerrequiredThe year to compare (e.g. 2022).
unitanyoptionalUnit filter code (e.g. "CP_MEUR"). Optional.
country_profile
Get a snapshot of key economic and demographic indicators for a European country.
ParameterTypeRequiredDescription
geo_codestringrequiredISO 3166-1 alpha-2 country code (e.g. "NO", "DE", "FR", "SE"). Also accepts EU aggregates like "EU27_2020", "EA20".
yearanyoptionalSpecific year to retrieve. Defaults to most recent available.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related