
Global Education Mcp
io.github.malkreide由 GitHub 账号 malkreide 发布v0.4.0更新于 Oct 24, 2026
UNESCO UIS and OECD Education at a Glance
概览
本地 MCP 服务器,让助手以只读方式访问 UNESCO UIS 与 OECD Education at a Glance 统计数据,用于国家比较和 SDG-4 报告。
- 可以做什么
- 搜索并列出 UNESCO UIS 指标、国家和数据库版本,按指标检索某国或某年份区间的数据。对同一指标进行多国比较,并基于十项核心指标生成国家教育概况。列出并搜索 OECD Education at a Glance 数据集,通过 SDMX 获取 OECD 教育指标。围绕五个重点主题对多国进行基准比较,并提供指标参考资源和 SDG-4 报告提示词。
- 适用场景
- 需要国际可比的教肓数据(识字率、入学率、教育支出、教师薪资、性别均等)并希望助手自动获取和跨国比较时适用。也适合撰写 SDG-4 监测报告和查找 OECD 数据集。
- 运行要求
- 以 Python 包形式通过 stdio 在本地运行,需要 Python 3.11 或更高版本,可用 uvx 或 pip 启动。无需 API 密钥或账号。需要访问 UNESCO UIS 和 OECD SDMX API 的网络连接;结果在内存中缓存,接口不可用时回退到内置参考数据。
安装
在 SourceWeft 中
- 打开 控制台中的 Global Education Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
🇨🇭 Part of the Swiss Public Data MCP Portfolio
🎓 global-education-mcp
[Version] [License: MIT] [Python 3.11+] [MCP] [Data: UNESCO UIS] [Data: OECD] [Tests] [No API Key] [CI]
MCP server for international education data – UNESCO UIS (4,000+ indicators across all member countries) and OECD Education at a Glance via SDMX. No API keys required.
[global-education-mcp demo flow]
Overview
global-education-mcp gives AI assistants like Claude a complete international education intelligence system – literacy rates, enrolment ratios, education expenditure, teacher salaries, gender parity and SDG-4 monitoring, all accessible through a single standardised MCP interface.
The server bridges two of the most authoritative sources for internationally comparable education statistics: UNESCO UIS (global coverage, 4,000+ indicators) and the OECD's annual Education at a Glance (38 OECD countries, SDMX REST API). Both are open and require no API key.
Anchor demo query: "Compare Switzerland's education expenditure as a percentage of GDP with Finland, Singapore and South Korea over the last 10 years – and flag any SDG-4 gaps."
Features
- 🌍 UNESCO UIS – 4,000+ indicators, all UNESCO member countries, no API key
- 📊 OECD Education at a Glance – 38 OECD countries + partners via SDMX REST
- 🔍 Indicator search – browse and filter the full UNESCO indicator catalogue
- 🗺️ Multi-country comparison – benchmark any indicator across multiple countries
- 🏫 Country education profiles – 10 core indicators in one call
- 🎯 SDG-4 monitoring – structured reporting on Education for All targets
- 📈 OECD dataset search – discover and retrieve Education at a Glance dataflows
- 🔑 No API keys required – fully open data, zero setup friction
- ☁️ Dual transport – stdio for Claude Desktop, Streamable HTTP (
/mcp, spec2026-07-28) for cloud deployment - 🛡️ Graceful degradation – API failures return helpful messages with local reference fallback
Prerequisites
- Python 3.11+
uv(recommended) orpip- No API keys needed
Installation
Or with uvx (no permanent installation):
Quickstart
Try it immediately in Claude Desktop:
"What is Switzerland's literacy rate compared to Finland and Singapore?" "Show me education expenditure as % of GDP for CHE, DEU and AUT over the last 10 years."
Configuration
Claude Desktop Configuration
Windows (%APPDATA%\Claude\claude_desktop_config.json):
macOS (~/Library/Application Support/Claude/claude_desktop_config.json):
A ready-to-use claude_desktop_config.json is included in the repository root.
Cloud Deployment (Streamable HTTP for browser access)
For use via claude.ai in the browser (e.g. on managed workstations without local software).
⚠️ Security note: Since v0.3,
MCP_HOSTdefaults to127.0.0.1. The HTTP transport must always run behind a reverse proxy that adds TLS, authentication, and rate-limiting. Never expose the raw port to the internet —MCP_HOST=0.0.0.0is only safe inside an isolated container network.
Docker (recommended):
The repository ships a hardened multi-stage Dockerfile and a
docker-compose.yml that applies read_only: true, cap_drop: [ALL],
security_opt: [no-new-privileges:true], and runs as non-root user
uid 10001. The compose file binds the port to 127.0.0.1 so a host-level
reverse proxy is required for any external access.
Plain docker run (without compose):
Render.com:
- Push/fork the repository to GitHub
- On render.com: New Web Service → connect GitHub repo
- Set environment variables in the Render dashboard:
- In claude.ai under Settings → MCP Servers, add:
https://your-app.onrender.com/mcp
Migrating from SSE. Up to v0.3.5 the container defaulted to MCP_TRANSPORT=sse
with the endpoint /sse. The default is now streamable-http at /mcp — the
transport through which 2026-07-28 clients send their single-POST requests;
SSE has been superseded since spec 2025-03-26 and never offered that path.
Existing deployments either switch the client URL to /mcp or set
MCP_TRANSPORT=sse explicitly; the server then logs a
legacy_transport_warning on start. An unknown MCP_TRANSPORT value now
aborts the start instead of silently falling back to stdio.
💡 "stdio for the developer laptop, sandboxed Streamable HTTP container for the browser."
Available Tools
UNESCO UIS Tools
OECD Tools
Cross-Source Tools
Resources & Prompts
Resources:
education://indicators/unesco– Quick reference for core UNESCO indicatorseducation://datasets/oecd– Quick reference for OECD Education at a Glance dataflows
Prompts:
bildungsvergleich_schweiz– Switzerland vs. Finland, Singapore, Japansdg4_monitoring– SDG-4 report for CH/DE/AT
Country Codes
ISO 3166-1 Alpha-3 standard:
Example Use Cases
→ More use cases by audience →
Architecture
Infrastructure Components
Caching Strategy
Project Structure
Known Limitations
- UNESCO UIS: Some indicators have sparse coverage for low-income countries or recent years
- OECD SDMX: Occasional API timeouts on large multi-country, multi-year requests; reduce the year range if needed
- OECD coverage: 38 OECD members + select partners – does not cover all UNESCO member states
- Historical depth: UNESCO UIS data availability varies by indicator; not all series go back to 1970
- Language: UNESCO UIS returns indicator labels in English only; OECD labels may vary by dataflow
- No real-time data: Both sources publish annually – figures reflect the latest published edition, not live school statistics
- Estimated values are labelled: UIS marks part of its observations
UIS_EST(UIS estimate) orNAT_EST(national estimate) – forLR.AG15T99that is 1,306 of 9,818 values. The status column names it; an unlabelled value is a reported one. - Data rows carry the ISO code, not the country name: plain names come from
uis_list_countries. The data tools print the code rather than inventing a name. - An unknown country code is not an error status: UIS answers HTTP 200 with an empty result set and states the reason in the payload's
hintsfield. The tools print that hint – otherwise a typo would look exactly like a country without data.
Compliance & Data Classification (City of Zurich)
Verbindliche Klassifikation für den Einsatz im Schulamt der Stadt Zürich (German section follows in
README.de.md).
ISDS Protection Class (Stadt Zürich Schutzbedarfsklassen)
- Data owner: UNESCO UIS / OECD (external)
- System owner: Schulamt der Stadt Zürich
- Processes personal data: no
- DSG / EDÖB relevance: none (only anonymized country-level aggregates)
Schulamt Classification (BUI / Vertraulich / Streng Vertraulich)
→ The server is approved for any Schulamt use case without additional clearance from the data protection officer.
Compatibility
Major-version upgrades are deliberate decisions — the upper bounds in
pyproject.toml exist so a transitive bump does not silently break the
server. See CHANGELOG.md for the upgrade trail.
🛡️ Safety & Limits
MCP Protocol Version
This server speaks two protocol eras over the same endpoint. The client's first request on a connection decides which one applies; a later claim from the other era is refused.
Over HTTP both eras share the endpoint /mcp (MCP_TRANSPORT=streamable-http,
stateless): a request with the MCP-Protocol-Version: 2026-07-28 header is
served as a self-contained single exchange — no initialize, no
Mcp-Session-Id. The legacy SSE transport (MCP_TRANSPORT=sse) offers no such
path and reaches the handshake era only.
Both revisions are pinned in
tests/test_protocol_version.py and asserted
against the installed SDK, so a Dependabot bump of mcp cannot move either one
silently. tests/test_streamable_http.py
measures them: it builds the HTTP app with the options main() starts, and
sends a 2026-07-28 client, an auto client, a legacy initialize and a raw
server/discover through it. The CI Docker job sends the same
server/discover to the hardened container.
What 2026-07-28 changes for this server. The logging capability is
deprecated (SEP-2577) and is not used: announcements before a fan-out travel as
progress 0 of n, operational logs go to stderr as JSON. serverInfo, which
now rides in _meta on every response, carries the package version. List
methods carry freshness hints (ttlMs, cacheScope, SEP-2549).
Note that the SDK's LATEST_PROTOCOL_VERSION is an alias for the modern
era, not for the handshake era — pinning against it alone would leave the era
that current clients actually negotiate free to drift.
Update policy. When the gate fails, do not edit the constant blindly: read
the spec changelog between the two revisions, verify the server still behaves,
then move the constant, this section, README.de.md and
CHANGELOG.md together.
Testing
169 tests – 152 offline, 17 against the live source.
Why the fixtures are recorded rather than written
A hand-written mock encodes its author's assumption and therefore cannot refute it: production code and fixture come from the same head, the same hour, the same reading of the docs. Where both are wrong, both are wrong together — and the suite stays green.
That is not a hypothetical here. Before 2026-08-08 this repo had 128 green
tests while three of its four UNESCO paths answered HTTP 404 and every data
query returned an empty list. The mocks carried the same invented field names
as the production code (observations, indicatorId, entityType), so
nothing could ever contradict them.
Every fixture under tests/fixtures/ is now a recorded response.
PROVENANCE.md names the source URL, the recording date, the selection rule
and the SHA-256 for each one. Without a date, "recorded" becomes
indistinguishable from "invented" after two years — the file looks the same.
Three of the fixtures are controls: a made-up theme value, a made-up
country code, and the same time series requested twice with different
parameter names. Without them a measurement only shows what we received; with
them it shows what the source actually distinguishes.
Contributing
Contributions are welcome. Please open an issue first to discuss what you would like to change.
- Follow the existing code style (Ruff linting, Black formatting)
- Add tests for new tools (
tests/test_server.pyortest_extended_scenarios.py) - Use the
@pytest.mark.integrationmarker for tests that call live APIs - Update
CHANGELOG.mdand the tool table in this README - See CONTRIBUTING.md for the full contribution guide
Changelog
See CHANGELOG.md
Security
To report a vulnerability, see SECURITY.md (🇩🇪 Deutsche Version). Please use the private channels described there rather than public issues.
License
MIT License — see LICENSE
Author
Hayal Oezkan · github.com/malkreide
Credits & Related Projects
- Data: UNESCO Institute for Statistics (UIS) – open education data for all UNESCO member states
- Data: OECD Education at a Glance – annual OECD education statistics via SDMX
- Protocol: Model Context Protocol – Anthropic / Linux Foundation
- Related: swiss-transport-mcp – MCP server for Swiss public transport
- Related: zurich-opendata-mcp – MCP server for Zurich city open data
- Portfolio: Swiss Public Data MCP Portfolio
MCP Client Configuration
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,提交 6aa2072
工具
0版本历史
2- v0.4.0最新Sep 27, 2026
- v0.3.5Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分