
Seco Labor Mcp
io.github.malkreide由 GitHub 账号 malkreide 发布v0.5.0更新于 Nov 3, 2026
Swiss labour market and occupational accidents: unemployment, job seekers, vacancies, UVG data
概览
只读的 MCP 服务器,提供瑞士劳动力市场统计(失业、求职者、青年失业)与 UVG 职业事故数据,无需 API 密钥。
- 可以做什么
- 在 opendata.swiss 上搜索并查看劳动力市场数据集,含发布方与下载链接
- 获取登记失业人数与求职者序列,覆盖全国及 TG、FR、ZG、ZH 四个州
- 查询 TG 与 ZG 的青年失业数据,并列出全部 26 个州代码
- 生成或校验 SECO 月度新闻稿 PDF 链接
- 读取 UVG 职业事故与职业病数据:关键指标、按 NOGA 2008 行业分类的明细及十年趋势
- 适用场景
- 适合研究、教育与职业指导规划,或需要官方瑞士失业与职业事故数据的自动化劳动力市场监测。覆盖范围有限:部分工具会明确说明数据不可得,而不会给出替代数字。
- 运行要求
- 以 Python 包形式通过 uvx(或 pip install)在本地运行,需要 Python/uv 环境。无需 API 密钥或账号,但需联网访问 opendata.swiss 等公开数据源。可通过 MCP_TRANSPORT 与 PORT 启用可选的 HTTP 传输。
安装
在 SourceWeft 中
- 打开 控制台中的 Seco Labor Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
🇨🇭 Part of the Swiss Public Data MCP Portfolio
SECO Labor Market MCP Server
[Version] [CI] [PyPI] [Python 3.11+] [MCP] [No Auth Required] [License: MIT]
🌐 English | Deutsch
An MCP (Model Context Protocol) server for Swiss labor market data from SECO (Staatssekretariat für Wirtschaft) and AMSTAT via opendata.swiss.
[Demo: Claude queries youth unemployment via seco-labor-mcp tool call]
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)
Architecture
Where the figures come from — and what is missing
SECO is no longer a publisher on opendata.swiss. Verified 2026-08-14:
organization_show returns 404, and none of the 176 entries in
organization_list is SECO. Until then the server filtered every search on
that organisation and therefore returned nothing — a name lookup that
misses looks exactly like an empty search.
The registered unemployed and job seekers are still SECO's figures: the BFS
publishes them in table T3.3.0.1 and names SECO in the footer. The server
reads that table through a pinned dataset id (sources.py), checked
against the live source by a live test.
thousands, annual average
The three series do not measure the same thing: in 2000 the ILO figure is 1.76× the registered one. The server reports them separately and labelled, and never converts one into the other.
The cantonal layer: four cantons, four schemas
There is no national monthly series — but four cantons publish their own
RAV figures, each in its own portal with its own column names. For those,
seco_get_unemployment_overview(canton=…) returns real values:
The other 22 cantons get a named refusal — no figure from another canton and no national aggregate. Partial coverage that feels complete is worse than none.
The four series are not comparable with each other and do not add up to a Swiss figure: different time axes, different geographic levels, and in ZG's case a rate rather than a count.
Still not available: unemployment by occupational group, open positions as a national series, and youth unemployment for Switzerland or for 24 of the 26 cantons. The affected tools say so and return no substitute figure. These values exist interactively on amstat.ch, which offers no interface a server could call.
Tools
12 of a maximum of 15 tools.
Unfallstatistik UVG (SSUV)
The three seco_get_uvg_* tools cover the risk side of the same labour market
the unemployment tools describe: how many occupational accidents and diseases
occur per branch, and how that develops over ten years.
The publisher is not SECO. The Unfallstatistik UVG is issued by the
Koordinationsgruppe KSUV and the Sammelstelle SSUV c/o Suva, Lucerne. The
seco_ prefix addresses this server, not the source; every response names the
actual publisher in its source field.
Architecture decision: C (dump-first)
Verified live on 2026-08-05, full write-up in
PROBE_REPORT_UVG.md.
The source has no API. A link scan across every data page returned 165 PDFs
and zero files with .csv, .xlsx or .json. opendata.swiss does not list the
source at all (count=0 for six of seven search terms), and the BFS dam-api
silently ignores its filter parameters. What remains is machine-readable in
practice but not by design:
PDFs are cached for 24 h and fetched with 2s/4s/8s backoff.
What every response tells you
source_freshness.data_year— the data year, not the edition year. The 2026 edition reports 2024; that two-year lag is stated, not buried.totals_check— parsed rows are summed and compared against the total printed in the same publication. A broken layout shows up here instead of becoming a plausible wrong number.significant— the source marks statistically significant year-on-year changes with an asterisk. That flag is preserved per data point, so a change is only reported as significant where the source says so.
Installation
Claude Desktop (stdio)
Add to claude_desktop_config.json:
Cloud / HTTP
http is the transport to use. It is the only one that can carry the modern
protocol era: measured against this server object, http negotiates
2026-07-28 while sse caps every client at 2025-11-25, even a
client that offers the modern era. sse and streamable-http remain accepted
for existing deployments — tests/test_transport_aera.py runs both and records
which era each one actually yields.
The HTTP 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:
An unknown MCP_TRANSPORT value now exits with an error. It used to fall back
to stdio silently, so a typo produced a server that simply never appeared on
the expected port.
Development
Usage Examples
Search for youth unemployment data
Get cantonal unemployment for Zürich
Get monthly report URL
Key Concepts
Arbeitslose vs. Stellensuchende
Eselsbrücke: Arbeitslose ⊂ Stellensuchende — Arbeitslose sind eine Teilmenge.
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
Known Limitations
amstat.arbeit.swisshas 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
- UVG figures come from PDF parsing — the layout was stable across the 2025 and
2026 editions, but a redesign can break it. The
totals_checkin every response is what makes such a break visible rather than silent. - UVG data lags roughly two years (the 2026 edition reports 2024)
- UVG branch detail follows NOGA 2008 and groups some divisions (
41 – 42,77, 79 – 82); there is no cantonal breakdown at this level - Detailed UVG data beyond the publications sits behind the SSUV closed user group and is out of scope for this no-auth server
Phase 2 roadmap:
- Automatic CSV caching with 24h TTL
- Direct XLSX parsing for cantonal breakdowns
- Integration with
zh-education-mcpfor Schulamt-specific correlations
Data License
Two different licences apply — the code of this server is MIT either way, but the data is not covered by it.
SECO / AMSTAT data published on opendata.swiss is under Creative Commons CCZero (public domain). Source: Staatssekretariat für Wirtschaft (SECO) — seco.admin.ch
Unfallstatistik UVG data is not openly licensed. The publication states:
«Abdruck – ausser für kommerzielle Nutzung – mit Quellenangabe gestattet.» (Reproduction permitted, except for commercial use, with attribution.)
That is a non-commercial restriction with an attribution requirement. It belongs
to KSUV/SSUV and cannot be lifted by this repository's MIT licence: the MIT terms
cover the code, not the figures the code retrieves. If you use this server
commercially, the UVG tools are not covered — clarify directly with the
Sammelstelle ([email protected]). Every UVG response repeats this
restriction in its source field, because a README is not passed to the model.
Safety & Limits
MCP Protocol Version
This server serves two protocol eras over the same server object, on
fastmcp 4.x / mcp 2.x:
A client that offers the modern era gets it; a client that only knows the
handshake era still gets served. Both are pinned separately in
tests/test_protokoll_aeren.py, and both are measured — the test negotiates
a real connection against this server object rather than comparing two
constants.
Pinning only LATEST_PROTOCOL_VERSION would not be enough: in mcp 2.x that
name is an alias for the modern era, so it would leave the handshake ceiling
free to move — and that ceiling is what most clients in the field actually
speak.
Until 0.4.0 this server ran fastmcp 3.x, which pins mcp 1.x. There
2025-11-25 is the highest revision the SDK knows at all, so 2026-07-28 was
not partially supported — it was absent. The test that used to guard the
one-era state now guards its opposite: it fails if a downgrade takes the
modern era away again.
Note for anything reading server metadata: on a modern connection there is no
InitializeResult. Use the era-neutral protocol_version / server_info
instead of initialize_result.
Contributing
See CONTRIBUTING.md for development guidelines.
Security
See SECURITY.md for the security posture and how to report a vulnerability.
License
Released under the MIT License — Copyright © 2026 Hayal Oezkan.
Author
Hayal Oezkan · github.com/malkreide
Installation
Run via uv's uvx — no clone or manual install needed. Add to your MCP client config (mcpServers for Claude Desktop, Cursor and Windsurf; use a top-level servers key for VS Code in .vscode/mcp.json):
来源:README.md,提交 11f020e
工具
0版本历史
2- v0.5.0最新Sep 20, 2026
- v0.3.4Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分