
Global Education Mcp
io.github.malkreidePublished by GitHub account malkreidev0.4.0Updated Oct 24, 2026
UNESCO UIS and OECD Education at a Glance
Overview
Local MCP server that gives an assistant read-only access to UNESCO UIS and OECD Education at a Glance statistics for country comparisons and SDG-4 reporting.
- What you can do
- Search and list UNESCO UIS indicators, countries and database versions, and retrieve indicator data for a country or year range. Compare one indicator across several countries and build a country education profile from ten core indicators. List and search OECD Education at a Glance datasets and retrieve OECD education indicators via SDMX. Benchmark several countries across five focus themes and use bundled resources and prompts for indicator references and SDG-4 reporting.
- When to use it
- Useful when you need internationally comparable education figures — literacy, enrolment, spending, teacher salaries, gender parity — and want the assistant to fetch and compare them across countries without manual lookups. Also suited to SDG-4 monitoring write-ups and OECD dataset discovery.
- Requirements
- Runs locally over stdio as a Python package (Python 3.11 or newer) launched with uvx or pip. No API keys or accounts. Outbound network access to the UNESCO UIS and OECD SDMX APIs; results are cached in memory and fall back to bundled reference data when an API is unreachable.
Installation
In SourceWeft
- Open Global Education Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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):
Source: README.md at commit 6aa2072
Tools
0Version history
2- v0.4.0LatestSep 27, 2026
- v0.3.5Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts