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
访问服务器

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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选