eurostat-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@eurostat-mcpWhat is the current unemployment rate in Germany?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Eurostat MCP Server
A Model Context Protocol (MCP) server that provides tools to query Eurostat APIs for European statistics data.
Features
Search datasets - Find Eurostat datasets by keyword
Query data - Retrieve data with flexible filtering options
Export to CSV - Save data locally for further analysis
Support for both APIs:
SDMX 3.0 API for regular datasets (GDP, unemployment, population, etc.)
SDMX 2.1 Comext API for trade/production datasets (DS-prefixed)
Related MCP server: mcp-eurostat
Available Tools
Tool | Description |
| Search for datasets by keyword |
| Get metadata and dimensions for a dataset |
| Query data with filters (geo, time, etc.) |
| List valid values for a dimension |
| Show commonly used datasets by category |
| Export data to a local CSV file |
| Batch export multiple datasets |
Installation
Prerequisites
Python 3.10 or higher
uv (recommended) or pip
Install with uv (recommended)
# Clone the repository
git clone https://github.com/YOUR_USERNAME/eurostat-mcp.git
cd eurostat-mcp
# Install dependencies
uv pip install -r requirements.txtInstall with pip
# Clone the repository
git clone https://github.com/YOUR_USERNAME/eurostat-mcp.git
cd eurostat-mcp
# Create virtual environment (optional but recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txtConfiguration
Claude Desktop
Add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"eurostat": {
"command": "uv",
"args": [
"--directory",
"/path/to/eurostat-mcp",
"run",
"server.py"
]
}
}
}Or with Python directly:
{
"mcpServers": {
"eurostat": {
"command": "python",
"args": ["/path/to/eurostat-mcp/server.py"]
}
}
}Claude Code (CLI)
Add to your Claude Code settings (.claude/settings.json in your project or ~/.claude/settings.json globally):
{
"mcpServers": {
"eurostat": {
"command": "python",
"args": ["/path/to/eurostat-mcp/server.py"]
}
}
}Usage Examples
Search for datasets
Search for GDP datasets
→ search_datasets("GDP")Query unemployment data
Get monthly unemployment rate for Germany and France in 2024
→ query_eurostat_data(
dataset_id="UNE_RT_M",
geo="DE+FR",
time_period="ge:2024"
)Query international trade data (Comext)
Get German exports to China in 2024
→ query_eurostat_data(
dataset_id="DS-059341",
filters="REPORTER=DE&PARTNER=CN&FLOW=2",
time_period="2024"
)Export data to CSV
Export GDP data for EU countries
→ export_to_csv(
dataset_id="NAMA_10_GDP",
output_path="data/gdp_eu.csv",
geo="EU27_2020",
time_period="ge:2015"
)Popular Datasets
Economic
NAMA_10_GDP- GDP and main componentsNAMQ_10_GDP- Quarterly GDP
Labour Market
UNE_RT_M- Monthly unemployment rateUNE_RT_A- Annual unemployment rateLFSI_EMP_A- Employment rates
Population
DEMO_PJAN- Population on 1 JanuaryDEMO_GIND- Population change
Prices
PRC_HICP_MANR- Monthly inflation rates (HICP)
International Trade (Comext)
DS-059341- Trade by HS2-4-6 product codesDS-059331- Trade by SITC codes
Business Surveys
ei_bsin_q_r2- Industry survey results (quarterly)ei_bsin_m_r2- Industry confidence indicator (monthly)
Note: DS-prefixed datasets (Comext/Prodcom) require heavy filtering due to their size. Always specify REPORTER, PARTNER, PRODUCT, or other filters.
API Reference
This server uses the official Eurostat APIs:
Troubleshooting
"Data too large" error
Apply more filters to reduce the data size:
Add
geoparameter for specific countriesAdd
time_periodfor date rangesFor Comext datasets, specify
REPORTER,PARTNER,PRODUCT,FLOW
Timeout errors
Large datasets may timeout. Try:
Using
last_n_observationsto limit resultsAdding more specific filters
Using
export_to_csvfor large extractions
Dataset not found
Use search_datasets() to find the correct dataset ID, or list_popular_datasets() to browse common datasets.
License
MIT License - see LICENSE file.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Acknowledgments
This server cannot be deployed
Maintenance
Related MCP Connectors
Eurostat MCP — wraps Eurostat Statistical Data API (no auth required)
MCP server for the Seline Analytics API
A MCP server for the Frankfurter API for currency exchange rates.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for accessing statistical data via the PxWeb API v2.610 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying Eurostat statistical data through natural language or direct MCP tools, wrapping the Eurostat API without authentication.4 npmMIT
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server that provides tools to query the official MCP Registry.420 npm3MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for querying ENTSO-E Transparency Platform data including actual load, generation per type, cross-border flows, and installed capacity.2 npmMIT