seco-labor-mcp

seco-labor-mcp

Enables querying Swiss labor market statistics (unemployment, job seekers, open positions, youth unemployment) from SECO and AMSTAT via opendata.swiss without requiring an API key.

Category
Visit Server

README

seco-labor-mcp

Swiss Public Data MCP Portfolio Β· malkreide

CI PyPI Python 3.11+ License: MIT

An MCP (Model Context Protocol) server for Swiss labor market data from SECO (Staatssekretariat fΓΌr Wirtschaft) and AMSTAT via opendata.swiss.

πŸ‡©πŸ‡ͺ Deutsche Version

<p align="center"> <img src="assets/demo.png" alt="Demo: Claude queries youth unemployment via seco-labor-mcp tool call" width="720"> </p>


Overview

This server connects AI models to Swiss labor market statistics β€” unemployment rates, job seekers, open positions, youth unemployment, and occupational breakdowns β€” all without requiring an API key.

Primary audiences:

  • 🏫 Schulamt / Education planning β€” youth unemployment, vocational guidance data
  • πŸ“Š Research & analysis β€” labor market trends, cantonal comparisons
  • πŸ€– AI agents β€” automated labor market monitoring and reporting

Anchor query:
"Welche Berufsgruppen haben im Kanton ZΓΌrich die hΓΆchste Jugendarbeitslosigkeit, und welche Lehrberufe unterliegen der Stellenmeldepflicht?" β†’ More use cases by audience β†’


Data Sources (Phase 1 β€” No Auth Required)

Source Description Status
opendata.swiss CKAN metadata catalog with SECO dataset CSVs βœ… Live
arbeit.swiss Monthly press reports (PDF, structured URL pattern) βœ… Live
amstat.ch AMSTAT reference portal ⚠️ JavaScript SPA, no public REST API

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  seco-labor-mcp                     β”‚
β”‚                                                     β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚  FastMCP    β”‚    β”‚      9 MCP Tools         β”‚   β”‚
β”‚  β”‚  Server     │◄──►│  seco_search_datasets    β”‚   β”‚
β”‚  β”‚  (stdio /   β”‚    β”‚  seco_get_dataset        β”‚   β”‚
β”‚  β”‚   SSE)      β”‚    β”‚  seco_get_unemployment_* β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚  seco_get_youth_*        β”‚   β”‚
β”‚         β”‚           β”‚  seco_get_job_seekers    β”‚   β”‚
β”‚         β–Ό           β”‚  seco_get_open_positions β”‚   β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”‚  seco_get_monthly_url    β”‚   β”‚
β”‚  β”‚  httpx      β”‚    β”‚  seco_list_cantons       β”‚   β”‚
β”‚  β”‚  async      β”‚    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜                                   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          β”‚
          β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  opendata.swiss CKAN API          β”‚
  β”‚  https://opendata.swiss/api/3/    β”‚
  β”‚  action/package_search            β”‚
  β”‚  action/package_show              β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
              β”‚
              β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  SECO Data Resources              β”‚
  β”‚  CSV / XLSX / PDF Downloads       β”‚
  β”‚  (monthly labor market data)      β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Tools

Tool Description Key Use Case
seco_search_datasets Search SECO datasets on opendata.swiss Discovery
seco_get_dataset Full metadata + download links for a dataset Data access
seco_get_unemployment_overview National/cantonal unemployment figures Labor market overview
seco_get_youth_unemployment Youth unemployment (15–24 year olds) πŸŽ“ Berufswahlberatung
seco_get_job_seekers Stellensuchende (broader than unemployed) Training demand
seco_get_open_positions Open positions β€” leading indicator Sector analysis
seco_get_unemployment_by_occupation Breakdown by Berufshauptgruppe πŸŽ“ Vocational guidance
seco_get_monthly_report_url Generate/verify PDF report URL Source access
seco_list_cantons All 26 canton codes and names Utility

Installation

Claude Desktop (stdio)

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "seco-labor": {
      "command": "uvx",
      "args": ["seco-labor-mcp"]
    }
  }
}

Cloud / SSE

pip install seco-labor-mcp
MCP_TRANSPORT=sse PORT=8000 seco-labor-mcp

The SSE server binds to 127.0.0.1 (loopback) by default to prevent NeighborJack on shared networks. For container deployments where you actually need to accept traffic from outside the container, set HOST=0.0.0.0 explicitly β€” ideally in your Dockerfile / orchestrator config, and only behind an upstream proxy or firewall:

HOST=0.0.0.0 MCP_TRANSPORT=sse PORT=8000 seco-labor-mcp   # container only

Development

git clone https://github.com/malkreide/seco-labor-mcp.git
cd seco-labor-mcp
pip install -e ".[dev]"
pytest tests/ -m "not live" -v

Usage Examples

Search for youth unemployment data

Tool: seco_search_datasets
Input: { "query": "Jugendarbeitslosigkeit Alter", "limit": 5 }

Get cantonal unemployment for ZΓΌrich

Tool: seco_get_unemployment_overview
Input: { "canton": "ZH", "response_format": "markdown" }

Get monthly report URL

Tool: seco_get_monthly_report_url
Input: { "year": 2026, "month": 2, "language": "de" }

Key Concepts

Arbeitslose vs. Stellensuchende

EselsbrΓΌcke: Arbeitslose βŠ‚ Stellensuchende β€” Arbeitslose sind eine Teilmenge.

Term Definition Dec 2025
Arbeitslose RAV-registered, immediately available ~149'000 (3.2%)
Stellensuchende All RAV-registered (incl. training programs) ~233'900

Youth Unemployment Seasonality

  • July/August: Sharp increase (school leavers without placements)
  • September/October: Decline (apprenticeship starts)
  • The residual that remains after the autumn decline signals structural need for bridge programs (BrΓΌckenangebote)

Stellenmeldepflicht (since 2020)

Occupations with β‰₯5% unemployment rate must be reported to the RAV before posting publicly. The list changes annually. This is directly relevant for vocational counseling β€” these professions have highest availability for Swiss job seekers.


Portfolio Synergies

Server Synergy
swiss-statistics-mcp BFS population/employment data for deeper context
zurich-opendata-mcp City of Zurich-level education and social data
swiss-snb-mcp Economic context (GDP, wages) for labor market interpretation
fedlex-mcp ALV (Arbeitslosenversicherung) legislative framework

Known Limitations

  • amstat.arbeit.swiss has no public REST API (JavaScript SPA) β†’ workaround via CKAN
  • Occupational/sectoral detail requires CSV download from SECO resources
  • Monthly press report URL patterns may vary for older reports
  • Cantonal sub-municipal data not available at this level

Phase 2 roadmap:

  • Automatic CSV caching with 24h TTL
  • Direct XLSX parsing for cantonal breakdowns
  • Integration with zh-education-mcp for Schulamt-specific correlations

Data License

SECO data published on opendata.swiss is under Creative Commons CCZero (public domain).
Source: Staatssekretariat fΓΌr Wirtschaft (SECO) β€” seco.admin.ch


πŸ›‘οΈ Safety & Limits

Aspect Details
Access Read-only (readOnlyHint: true) β€” the server cannot modify or delete any data
Personal data No personal data β€” all sources are aggregated, anonymous public statistics
Rate limits No enforced external limits; server caps queries at 20 results by default; 30 s HTTP timeout
Authentication No API keys required β€” opendata.swiss and arbeit.swiss are publicly accessible
Licenses SECO data under Creative Commons CCZero (public domain)
Terms of Service Subject to ToS of: opendata.swiss, SECO, arbeit.swiss
GDPR / DSG Fully compliant β€” no personal data transmitted or stored; all data is official public statistics

Contributing

See CONTRIBUTING.md for development guidelines.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured