
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 的網路;結果會快取於記憶體,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 分