
Openemis Pro
io.github.tixuz由 GitHub 帳號 tixuz 發布v1.1.0更新於 Oct 24, 2026
Read + write MCP server for OpenEMIS — free open-source school management system. 675 resources.
概覽
一個本機 MCP 伺服器,把 AI 助理連接到 OpenEMIS 學校管理系統,可讀取學校紀錄,並對非工作流程資源建立、更新或刪除紀錄。
- 可以做什麼
- 檢查執行個體是否可連線,並透過真實登入往返驗證設定好的 OpenEMIS 執行個體。列出精選領域,並依主題找出相關端點,避免把龐大的 API 全部塞進上下文。瀏覽並載入 40 個逐步工作流程劇本,例如記錄出缺席、註冊學生或提交考試成績。讀取任意 OpenEMIS 資源,可依 id 取單筆紀錄,或用原生查詢參數做篩選與分頁清單。對不經過工作流程外掛的資源建立、更新和刪除紀錄;受工作流程控制的資源會被攔截並導向對應劇本。
- 適用情境
- 當你使用 OpenEMIS 學校執行個體,希望用自然語言詢問學生、教職員、出缺席、評量、機構或基礎設施相關資料,或讓助理透過引導式劇本完成日常紀錄工作(如登記出缺席、輸入成績)時適用。
- 執行需求
- 以 Node.js 本機程序(Node 22 或更新版本)透過 stdio 執行。需要 OpenEMIS 執行個體的基礎 URL、由 OpenEMIS 管理員核發的 API 金鑰,以及登入用的使用者名稱和密碼,分別透過 OPENEMIS_BASE_URL、OPENEMIS_API_KEY、OPENEMIS_USERNAME 和 OPENEMIS_PASSWORD 環境變數提供。需要能連線到該執行個體的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Openemis Pro,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
title: openemis-mcp-pro — Read + Write MCP Server for OpenEMIS School Management description: openemis-mcp-pro is the read and write MCP server that bridges AI assistants to the OpenEMIS school management information system — 678 resources, 3361 endpoints, 40 playbooks. keywords:
- OpenEMIS
- school management system
- education management
- student attendance
- student risks
- MCP server
- write tools
[openemis-mcp-pro logo — read and write AI bridge for OpenEMIS school management]
openemis-mcp-pro — Read + Write AI Bridge for OpenEMIS School Management
A natural-language bridge between MCP-aware agents (Claude, Codex, Cursor, etc.) and any OpenEMIS school — with full read + write access.
OpenEMIS is a free, open-source school management information system developed by UNESCO and KORDIT. It runs the day-to-day administration of every kind of educational institution — kindergartens, primary schools, secondary schools, secondary vocational institutions, technical colleges, and universities — managing students, staff, attendance, assessment, infrastructure, meals, scholarships, examinations, training, and ministry-level reporting. This MCP-pro server adds full read + write access plus per-user authentication on top of any OpenEMIS school.
Translations: Русский · Español · हिन्दी · العربية
Built on top of the published OpenEMIS Core API (reference docs at api.openemis.org/core) and verified end-to-end against the public demo at demo.openemis.org/core with real credentials, real data, real round-trips.
Ask in English:
"How many current students are at Avory Primary?"
The agent plans the calls, this MCP delivers the data, and you get the answer:
"Avory Primary School (code P1002) has 553 currently enrolled students."
You never write a line of code. You never see JSON. You just ask.
Status: v1.0.0 — full CRUD for non-workflow resources. Read queries work against every OpenEMIS v5 resource. Write tools (create/update/delete) are live for all resources that do not flow through the CakePHP Workflow plugin. Workflow-controlled resources (attendance, staff leave) are blocked at the tool level and redirect to the appropriate playbook.
What this is
openemis-mcp-pro is the read + write MCP server that connects AI assistants to the OpenEMIS school management system. It exposes 678 resources (students, attendance, risks, staff, exams, infrastructure) across 40 curated playbooks — 26 read and 14 write/auth. The pro distribution adds direct write tools (openemis_create, openemis_update, openemis_delete), HTTP server mode for ChatGPT Custom GPT, and per-user authentication on top of the free read-only distribution.
Why this exists
The OpenEMIS Core REST API is large — the v5 surface alone exposes 3,361 endpoints across 678 resources (Core 5.13.0). No AI agent can hold that in context, and raw Swagger-style introspection floods a conversation with noise that has nothing to do with the user's actual question.
This MCP solves that in two ways:
- Domain-scoped discovery. Instead of dumping the whole API into the agent's context, the
openemis_discover(topic)tool narrows to the ~20–30 endpoints relevant to what the user is actually asking about ("attendance", "students", "assessment") — powered by a small curated knowledge pack ofDomain-*.mdnotes. - A single, composable getter. One
openemis_gettool covers list + singleton + filtered search across every resource. The agent suppliesresource+ optionalid+ optionalparams(_fields,_conditions,orderby,page,limit) and the rest of the OpenEMIS CakePHP-style query DSL maps straight through.
The net effect: agents answer natural-language questions in 2–4 tool calls, not 30.
Tools
A representative natural-language question like "how many teachers at Avory Primary, how many vacant positions?" resolves to three openemis_get calls — chained by the agent, narrowed by _conditions, delivered back as a single English answer. A write request like "enrol a new student" uses openemis_get_playbook to load the step-by-step guide, then openemis_create for each write step.
Core compatibility
Tested against OpenEMIS Core 5.13.0 (master, June 2026). Earlier 5.7 – 5.12 deployments are also supported — the API surface is backwards-compatible.
Capability flag — POCOR-9660 multi-id GET
openemis_get accepts params.ids = "1,2,3" for batch lookups. Core 5.10+ carries POCOR-9660 (?id=1,2,3 and _conditions=<field>:IN(...) support in CrudApiController), so the handler collapses the batch into a single round-trip by default. Pointing at an older Core (5.7 – 5.9) without the native operator? Force the legacy parallel fan-out:
For composite-PK or view resources — where ids does not apply — use _conditions=<field>:IN(1,2,3) instead; it filters any field by a value list and works regardless of this flag. Filtering on a field that does not exist on a resource now returns HTTP 400 (Core 5.10+, POCOR-9697), so use exact field names.
Verified against demo.openemis.org
Every claim in this README was proven against the public demo instance before being written:
POST /api/v5/loginwith{ username, password, api_key }→ JWT cached, 331 charsGET /api/v5/institutions?limit=200&_fields=id,name,code→ 24 institutions incl."Avory Primary School" (id=6, code P1002)GET /api/v5/institution-students?institution_id=6&student_status_id=1&limit=1→ pagination reportslast_page: 553→ 553 currently enrolled studentsGET /api/v5/academic-periods→ 7 pages of real academic-year dataGET /api/v5/absence-types→EXCUSED,UNEXCUSED,LATE, etc.
The sample scripts/smoke-login.mjs shipped with this repo performs the login test step-by-step so you can confirm reachability against your own instance before wiring it into Claude Code.
Compatible agents
openemis-mcp speaks the Model Context Protocol over stdio — any MCP-compatible client works:
Stdio mode (local machine) — connects as a subprocess:
HTTP server mode (OPENEMIS_TRANSPORT=http, install once on Oracle/VPS) — connects by URL:
Install
Requires Node 22+ (for built-in fetch and AbortController) and Python 3.10+ (for the manifest builder and playbook generator scripts in mcp-openemis-gen/). The MCP server itself is Node-only; Python is only needed if you rebuild the manifest from source.
From GitHub
Configure
.env.example documents every variable. At minimum you need the three credentials your OpenEMIS admin issues:
The server logs in lazily on the first authenticated tool call, POSTing to /api/v5/login, parsing the JWT out of data.token, and caching it in memory. On a 401 it re-logs in and retries once.
OPENEMIS_VAULT_PATH points at the folder containing the curated Domain-*.md notes used by openemis_discover. If missing, discovery degrades gracefully to keyword matching against the manifest alone.
OPENEMIS_MANIFEST_PATH points at the JSONL output of the companion builder in ../mcp-openemis-gen/. If absent, the discovery tools return a friendly "manifest not built yet" hint — they don't crash.
Smoke-test reachability
Expected:
Register with Claude Code
Any new Claude Code session in this project will see all nine tools automatically.
Server mode (Oracle Always Free / any VPS)
Set OPENEMIS_TRANSPORT=http to run as a persistent HTTP server instead of a local subprocess. Install once on your server; every MCP-compatible client (Claude Code, Cursor, Cline, Windsurf) connects by URL.
On your server:
.env for server mode:
Connect from Claude Code (remote):
Health probe (monitoring / uptime checks):
⚠️ Always set
OPENEMIS_AUTH_TOKENbefore exposing the port publicly. Without it the endpoint is open to anyone who can reach your IP.
Architecture
Design principles, from the first line of code:
- Domain-scoped, never firehose. The manifest can grow to thousands of endpoints; the agent's context is not going to.
openemis_discover(topic)is the funnel — every conversation only ever sees the slice it needs. - Write tools in v0.3.0.
openemis_create/openemis_update/openemis_deleteare live for all non-workflow resources. Workflow-controlled resources (attendance, staff-attendance) are blocked at the tool level and redirect to the appropriate playbook. - Stateless between calls. Only the JWT is cached in memory. No disk persistence, no analytics, nothing phones home.
- Thin over the real API. This bridge doesn't invent new concepts —
resourcenames are kebab-case v5 paths, query params are the native_conditions/_fieldsDSL. What you'd write in curl translates 1:1.
Documentation
- Resource Reference — all 678 resources with HTTP method availability and write status (Core 5.13.0)
- Playbooks — 40 curated workflow guides (26 read · 14 write/auth)
- ChatGPT Teacher Guide — how to let teachers mark attendance via ChatGPT Custom GPT
- Playbook Authoring Routine — 4-step process for adding new playbooks
- Glossary — definitions of key OpenEMIS and education management terms
- FAQ — frequently asked questions about OpenEMIS and this MCP server
Playbooks
Newer playbooks (29–40) ship as full English content in
data/playbooks.jsonand are loaded viaopenemis_get_playbook. Per-playbook markdown docs and RU/ES/HI/AR translations land in a follow-up release.
Roadmap
v0.4.0 — Browser Auth (planned)
Today, credentials require a manually-issued api_key from the OpenEMIS admin. v0.4.0 will add an optional openemis_browser_auth tool that eliminates all manual credential configuration:
- The tool launches a local Playwright browser — no target URL required upfront.
- The user navigates to their OpenEMIS instance and logs in normally.
- Playwright watches all network traffic. When it sees a response to
POST */api/v5/loginorPOST */api/v4/login(both return identical JWTs):- The base URL is extracted from the request URL automatically (e.g.
https://dev-demo.openemis.org/core/api/v5/login→ basehttps://dev-demo.openemis.org/core) — no need to pre-configureOPENEMIS_BASE_URL. - The JWT is extracted from the response body.
- The base URL is extracted from the request URL automatically (e.g.
- Both are cached in memory and used for all subsequent CRUD calls.
This removes OPENEMIS_BASE_URL, OPENEMIS_USERNAME, OPENEMIS_PASSWORD, and OPENEMIS_API_KEY as requirements — the user just opens a browser and logs in. Works with any OpenEMIS instance, any domain, any subdomain, including dev, staging, and production environments without any reconfiguration.
.env-based credentials remain fully supported — existing setups are unchanged. Browser auth is opt-in via the new tool.
v0.5.0 — Risk Dashboards ✅
view-student-risks and view-institution-risks — shipped. Risk scores, per-criterion breakdown, welfare cases, alert rules, and delivery logs.
v0.6.0 — Workflow Routes (Institution Pro + Country Pro)
Current write tools (openemis_create, openemis_update, openemis_delete) execute one operation at a time. Workflow routes take this further: the MCP orchestrates a complete multi-step playbook automatically, carrying state from step to step and enforcing pre-commit validation at each stage.
New tool: openemis_run_workflow { playbook_id, params, dry_run? } — accepts a playbook ID and structured input parameters, executes all steps in sequence, returns a structured run log. In dry-run mode, reports what would change without writing anything.
Workflow routes are gated above Individual Pro because bulk AI writes at institution or national scale need oversight. A teacher marking 30 students needs speed; a district office enrolling 500 students across 20 schools needs audit and approval.
Plans
→ Pricing and access: [email protected]
License
MIT — © 2026 Khindol Madraimov
Acknowledgements
Built by a coordinated team of AI agents under human direction — see ACKNOWLEDGEMENTS.md for the full team: Adviser Arastu, Marshal Sunny, Samurai Haiku, Xéphyrin Xirdal, Captain Nemo, Coddy (GPT-5), Miniqwenco (Qwen 2.5 Coder 7B), Miniqwen (Qwen 3.5 9B), and Gemmy (Gemma 4e4b) — each with distinct roles across architecture, code, analysis, and multilingual translation.
Not affiliated with OpenEMIS or its maintainers. This is a third-party bridge that speaks the public Core API. Credentials and data stay on your machine.
來源:README.md,提交 a7fcb7d
工具
0版本歷史
1- v1.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。