CESSDA MCP Datasets Server
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., "@CESSDA MCP Datasets Server find datasets about climate change in Sweden from 2015 to 2020"
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.
CESSDA MCP Datasets Server
MCP (Model Context Protocol) server for searching CESSDA research datasets. Enables AI assistants like Claude to search and discover social science research datasets from 22 European data archives.
Table of Contents
Related MCP server: mcp-data-europa
Overview
This MCP server provides AI assistants with access to the CESSDA Data Catalogue, which contains metadata for social science research datasets from European data archives.
Features
š Search datasets by keywords, topics, countries, and date ranges
š Access metadata from 22 European social science data archives
š¤ Seamless integration with Claude Desktop and other MCP clients
š³ Docker containerization support
š Structured JSON logging following CESSDA guidelines
āļø Configuration via environment variables (12-factor app)
Available Tools
search_cessda_datasets - Search research datasets with flexible filtering
get_cessda_filters - Discover available filter values (topics, publishers, countries, languages)
Installation
Requirements
Python 3.10 or higher
pip
Install from Source
# Clone the repository
git clone https://github.com/cessda/cessda.ai.mcp.cdc.git
cd cessda.ai.mcp.cdc
# Install in development mode
pip install -e .Install from PyPI (when published)
pip install mcp-cessda-datasetsVerify Installation
mcp-cessda-datasets --helpConfiguration
The server follows the 12-factor app methodology and is configured via environment variables.
Environment Variables
Variable | Default | Description |
|
| CESSDA API base URL |
|
| API request timeout (seconds) |
|
| Maximum retry attempts |
|
| Logging level (INFO, WARN, ERROR) |
|
| Default metadata language |
|
| Default search result limit |
|
| Maximum search result limit |
Configuration File (Optional)
Create a .env file in your working directory:
CESSDA_API_TIMEOUT=60
CESSDA_LOG_LEVEL=INFO
CESSDA_DEFAULT_LIMIT=20Usage
Claude Desktop Setup
Locate your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add the MCP server configuration:
{
"mcpServers": {
"cessda-datasets": {
"command": "python",
"args": ["-m", "mcp_cessda_datasets.server"],
"env": {
"CESSDA_LOG_LEVEL": "INFO"
}
}
}
}Or if installed via pip:
{
"mcpServers": {
"cessda-datasets": {
"command": "mcp-cessda-datasets"
}
}
}Restart Claude Desktop
Verify the server is connected - Look for the MCP icon or check available tools
Available Tools
1. search_cessda_datasets
Search for research datasets with various filters.
Parameters:
query(optional): Free-text search queryclassifications(optional): Topic filters (e.g., ["Political science", "Sociology"])study_area_countries(optional): Country filters (e.g., ["Sweden", "Norway"])publishers(optional): Data archive filterskeywords(optional): Subject keyword filtersyear_min(optional): Earliest data collection yearyear_max(optional): Latest data collection yearlanguage(optional): Metadata language (ISO 639-1 code, default: "en")limit(optional): Max results (1-200, default: 10)offset(optional): Pagination offset (default: 0)
Returns: Search results with dataset metadata (title, abstract, creators, access URLs, etc.)
2. get_cessda_filters
Get available values for filter types.
Parameters:
filter_type(required): One of "classifications", "publishers", "countries", "languages"
Returns: List of valid values for the specified filter type
Example Prompts
Try these prompts in Claude Desktop:
Basic search:
"Find datasets about climate change"
Filtered search:
"Show me political science datasets from Nordic countries collected between 2015 and 2020"
Discover filters:
"What topic classifications are available in CESSDA?"
Advanced search:
"Find datasets about unemployment published by the UK Data Service, in English, limited to 5 results"
Multi-country search:
"Search for datasets about migration in Germany, France, and Italy"
Development
Setup Development Environment
# Clone repository
git clone https://github.com/cessda/cessda.ai.mcp.cdc.git
cd cessda.ai.mcp.cdc
# Install with development dependencies
pip install -e ".[dev]"Project Structure
mcp-cessda-datasets/
āāā LICENSE.txt # Apache 2.0 license
āāā CONTRIBUTING.md # Contribution guidelines
āāā README.md # This file
āāā pyproject.toml # Python package configuration
āāā Dockerfile # Container image
āāā src/
āāā mcp_cessda_datasets/
āāā __init__.py # Package initialization
āāā server.py # FastMCP server with tools
āāā tools.py # CESSDA API integration
āāā config.py # Environment configuration
āāā logging_config.py # Structured JSON loggingCode Standards
This project follows CESSDA Technical Guidelines:
Style: PEP 8 (enforced via
blackandruff)Type Hints: Required for all public functions
Documentation: Docstrings for all modules, classes, and functions
Logging: Structured JSON to stdout
Configuration: Environment variables only (no hardcoded values)
Versioning: Semantic versioning (MAJOR.MINOR.PATCH)
Testing
# Run tests
pytest
# Run with coverage
pytest --cov=mcp_cessda_datasets
# Format code
black src/
# Lint code
ruff check src/Adding New Features
Create a new branch
Add your feature with tests
Update documentation
Follow commit message conventions
Submit a pull request
See CONTRIBUTING.md for detailed guidelines.
Operations
Running in Docker
# Build image
docker build -t cessda/mcp-datasets:0.1.0 .
# Run container (STDIO mode)
docker run -i cessda/mcp-datasets:0.1.0Logging
The server outputs structured JSON logs to stdout following CESSDA guidelines:
{
"timestamp": "2025-01-15T10:30:45.123456Z",
"level": "INFO",
"message": "API request successful",
"logger": "mcp_cessda_datasets",
"results_count": 10,
"total_available": 245
}Log Levels:
INFO: Informational messages (API requests, results)WARN: Warnings requiring attention (rate limits, validation issues)ERROR: Errors requiring investigation (API failures, exceptions)
Monitoring
Monitor the server using:
JSON log aggregation (ELK, Splunk, etc.)
Check for
ERRORandWARNlevel messagesTrack API response times and failure rates
Monitor dataset search patterns
Troubleshooting
Issue: Server not appearing in Claude Desktop
Verify configuration file path and JSON syntax
Check server installation:
which mcp-cessda-datasetsReview Claude Desktop logs for errors
Restart Claude Desktop after configuration changes
Issue: API timeouts
Increase
CESSDA_API_TIMEOUTenvironment variableCheck network connectivity to CESSDA API
Review structured logs for timeout patterns
Issue: Empty search results
Use
get_cessda_filtersto verify filter valuesCheck spelling of countries, classifications, publishers
Try broader search criteria or remove filters
Verify metadata language matches available data
Versioning
This project uses semantic versioning:
MAJOR: Breaking changes to API or configuration
MINOR: New features, backward compatible
PATCH: Bug fixes, backward compatible
Current version: 0.1.0
See CESSDA Release Guidelines for details.
License
Copyright Ā© 2025 CESSDA ERIC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
See LICENSE.txt for full license text.
Links
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
Available Tools
2 toolsget_cessda_filtersGet Cessda FiltersA
Get available filter values for CESSDA dataset searches.
Use this tool to discover what filter values are available for the search_cessda_datasets tool. This helps you understand what topics, publishers, countries, and languages you can filter by.
Inputs: filter_type (required). Returns: object
search_cessda_datasetsSearch Cessda DatasetsB
Search CESSDA research datasets across European social science data archives.
This tool searches the CESSDA Data Catalogue, which provides access to research datasets from 22 European social science data archives. You can search by free text, filter by topic classifications, countries, publishers, and date ranges.
Inputs: limit, query, offset, keywords, +6 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one performs dataset searches, while the other discovers available filter values. There is no meaningful overlap or risk of misselection.
Both names follow the same predictable verb_cessda_noun pattern: search_cessda_datasets and get_cessda_filters. The convention is consistent and readable.
Two tools is slightly below the typical 3-15 range, but it is tightly scoped for a search-focused connector. The filter-discovery tool directly supports the search tool, so the small surface is reasonable.
The core search and filter-discovery workflows are covered for a read-only catalogue connector. A dedicated get-dataset-by-ID or detailed metadata tool is missing, but agents can likely work from search results.
Related MCP Connectors
Search peer-reviewed papers and research methodology guidance from your AI agent.
Official statistics for AI agents: Eurostat, World Bank, OECD, IMF and WHO data for 150+ countries.
Access European statistics: GDP, unemployment, inflation, population data.
Academic papers, reference verification and research data for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to search and retrieve EU research outputs including publications, datasets, software, and funded projects from OpenAIRE.87 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables searching and accessing EU open datasets from data.europa.eu, including metadata discovery and dataset retrieval.64 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to discover and inspect research datasets via a read-only MCP server, offering search, variable listing, and metadata retrieval without reading data files.-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to keylessly search open research datasets by full-text query and fetch full metadata plus download links for a dataset by DOI.72 npmMIT