Nl Opendata Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Nl Opendata Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A comprehensive Model Context Protocol (MCP) server for accessing Dutch government open data from CBS (Centraal Bureau voor de Statistiek) and data.overheid.nl.
This is a small side project to experiment with MCP and see if it can be useful for accessing Dutch government open data. It is not production ready and should not be used for production.
I have tested it with Claude Desktop and LM Studio and it works wreasonably well. It should work with the most MCP clients. The results are always dependent on the quality of the model you use. Frontier models understand data and mcp tools well and produce good results. Local models may not understand the tools calling and produce unexpected results.
For local models I got the best results using the Devstral2 small model with gpt-oss 20b close second. Context length is a very limiting factor for local models. Yo will need at least 30k tokens context length for basic analysis to work.
# Run directly from PyPI
uvx nl-opendata-mcp
# Or run directly from GitHub
uvx --from git+https://github.com/soulnai/nl-opendata-mcp.git nl-opendata-mcp# Install from PyPI
uv pip install nl-opendata-mcp
# Install from GitHub
uv pip install git+https://github.com/soulnai/nl-opendata-mcp.git# Clone the repository
git clone https://github.com/soulnai/nl-opendata-mcp.git
cd nl-opendata-mcp
# Install dependencies and package in editable mode
uv sync
uv pip install -e .
# Run the server
uv run nl-opendata-mcpAdd to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"nl-opendata-mcp": {
"command": "uvx",
"args": ["nl-opendata-mcp"]
}
}
}Add to your LM Studio configuration (mcp.json):
{
"mcpServers": {
"nl-opendata-mcp": {
"command": "uvx",
"args": ["nl-opendata-mcp"]
}
}
}The server supports different transport modes:
# Default: stdio transport
uvx nl-opendata-mcp
# HTTP transport (port 8000)
TRANSPORT=http uvx nl-opendata-mcp
# SSE transport (port 8000)
TRANSPORT=sse uvx nl-opendata-mcp| Tool | Description |
|---|---|
cbs_list_datasets | List available datasets from the CBS catalog |
cbs_search_datasets | Search datasets by keyword (in title, summary, or both) |
cbs_check_dataset_availability | Check if a dataset is available via CBS OData or data.overheid.nl |
cbs_estimate_dataset_size | Estimate dataset size before fetching (rows, columns, recommended strategy) |
cbs_inspect_dataset_details | Get comprehensive dataset summary (metadata, structure, sample data) |
| Tool | Description |
|---|---|
cbs_get_metadata | Unified metadata tool - get info, structure, dimension values, or custom endpoints |
`cbs_get_metadata` types:
metadata_type="info" - Dataset description (TableInfos)metadata_type="structure" - Column definitions and data types (DataProperties)metadata_type="endpoints" - Available metadata endpointsmetadata_type="dimensions" - Dimension values with codes for filtering (requires endpoint_name)metadata_type="custom" - Query custom endpoint (requires endpoint_name)| Tool | Description |
|---|---|
cbs_query_dataset | Query data with filtering and column selection |
cbs_save_dataset | Save dataset to CSV (use fetch_all=True for complete dataset) |
| Tool | Description |
|---|---|
cbs_analyze_remote_dataset | Execute Python/Pandas code on a remote dataset |
cbs_analyze_local_dataset | Execute Python/Pandas code on a local CSV file |
List available datasets:
Use cbs_list_datasets with top=20 to see the first 20 datasetsSearch for population data:
Use cbs_search_datasets with query="bevolking" to find population datasetsSearch only in titles:
Use cbs_search_datasets with query="inflatie" and search_field="title"Get a comprehensive overview (recommended first step):
Use cbs_inspect_dataset_details with dataset_id="85313NED"
# Returns:
# - Source confirmation (CBS OData or data.overheid.nl)
# - Title and description
# - Column definitions with types
# - Sample data (first 5 rows)Check dataset size before fetching:
Use cbs_estimate_dataset_size with dataset_id="85313NED"
# Returns:
# - Estimated row count
# - Column count
# - Recommended fetch strategyGet detailed column structure:
Use cbs_get_metadata with dataset_id="85313NED" and metadata_type="structure"
# Returns CSV with: Key, Type, Title, Description for each columnBasic query with pagination:
Use cbs_query_dataset with:
- dataset_id="85313NED"
- top=100
- skip=0Query with OData filter:
Use cbs_query_dataset with:
- dataset_id="85313NED"
- filter="Perioden eq '2023JJ00'"
- top=50Select specific columns:
Use cbs_query_dataset with:
- dataset_id="85313NED"
- select=["Perioden", "TotaleBevolking_1", "Mannen_2", "Vrouwen_3"]
- top=100Query with multiple conditions:
Use cbs_query_dataset with:
- dataset_id="85313NED"
- filter="Perioden eq '2023JJ00' and Leeftijd eq '10000'"Save complete dataset to CSV:
Use cbs_save_dataset with:
- dataset_id="85313NED"
- file_name="population_data.csv"
- fetch_all=trueNote: Analysis tools are disabled by default. To enable them, set `USE_PYTHON_ANALYSIS=true` in the environment. It is security risk to let the model write and execute Python code on a client machine. Recommended for advanced users only. It's better to let the model query and save the data to a file, and let your CLI LLM coding tool to analyse it by writing and executing scripts. If you are running it in a non CLI environment (like LM Studio) and still want to give it the ability to analyse data, you can enable it by setting `USE_PYTHON_ANALYSIS=true` in the environment.
Analyze remote dataset with Pandas:
Use cbs_analyze_remote_dataset with:
- dataset_id="85313NED"
- analysis_code="print(df.describe())"Calculate statistics:
Use cbs_analyze_remote_dataset with:
- dataset_id="85313NED"
- analysis_code="result = df['TotaleBevolking_1'].mean()"Filter and aggregate:
Use cbs_analyze_remote_dataset with:
- dataset_id="85313NED"
- analysis_code="""
filtered = df[df['Perioden'].str.contains('2023')]
result = filtered.groupby('Leeftijd')['TotaleBevolking_1'].sum()
print(result)
"""Analyze a local CSV file:
Use cbs_analyze_local_dataset with:
- dataset_path="downloads/85313NED_full.csv"
- analysis_code="print(df.info())"Get classification codes (e.g., gender categories):
Use cbs_get_metadata with:
- dataset_id="85313NED"
- metadata_type="dimensions"
- endpoint_name="Geslacht"Get time period definitions:
Use cbs_get_metadata with:
- dataset_id="85313NED"
- metadata_type="dimensions"
- endpoint_name="Perioden"1. cbs_search_datasets(query="unemployment") # Find relevant datasets
2. cbs_inspect_dataset_details(dataset_id="82809NED") # Get overview
3. cbs_query_dataset(dataset_id="82809NED", top=10) # Preview data1. cbs_estimate_dataset_size(dataset_id="85313NED") # Check size
2. cbs_save_dataset(dataset_id="85313NED", fetch_all=True) # Save full dataset to CSV
3. cbs_analyze_local_dataset(...) # Analyze locally with Pandas1. cbs_get_metadata(dataset_id="85313NED", metadata_type="structure") # Get column names
2. cbs_get_metadata(dataset_id="85313NED", metadata_type="dimensions", endpoint_name="Perioden") # Get period codes
3. cbs_query_dataset(dataset_id="85313NED", filter="Perioden eq '2023JJ00'", select=["..."]) # Query
4. cbs_save_dataset(dataset_id="85313NED", file_name="filtered_data.csv") # Export| Format | Use Case |
|---|---|
| CSV | Universal compatibility, works with Excel, Pandas, etc. |
The CBS OData API uses OData v3 syntax for filtering:
# Exact match
Perioden eq '2023JJ00'
# Substring match
substringof('Amsterdam', RegioS)
# Multiple conditions
Perioden eq '2023JJ00' and Leeftijd eq '10000'
# OR conditions
Geslacht eq '1100' or Geslacht eq '2000'
# Numeric comparisons
TotaleBevolking_1 gt 100000~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.