eclass-mcp
Provides read-only access to York University's eClass/Moodle account, including upcoming deadlines via calendar feed or web service, enrolled courses, assignments and due dates, grade items, and course contents.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@eclass-mcp what's due this week?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
eclass-mcp
A read-only MCP server for York University's eClass (Moodle). Ask Claude (or any MCP client) things like "what's due this week?" or "what's my grade in EECS 2311?"
Unofficial; not affiliated with York University. Your own account only. Check York's acceptable-use policy.
Try it in 10 seconds (no login needed)
npx -y github:keerthan9453/eclass-mcp --demoRuns against a built-in fake eClass. To see every tool called, clone the repo and run npm install && npm run demo.
Related MCP server: ZHAW Moodle MCP Server
Use it with your account
Pick whichever setup York allows. They can be combined.
Setup | What you get | Needs |
A. Calendar feed (easiest) |
| Your private ICS URL |
B. Web service token | courses, assignments, grades, course contents | A Moodle token (York must allow it) |
A. Calendar feed
In eClass: Calendar → Import or export calendars → Export → pick "All courses" + a time range → Get calendar URL. Copy it.
B. Web service token
Gets you courses, assignments, grades, course contents and deadlines. It works only if your school allows Moodle's mobile service (York does). Use Chrome, Brave or Edge: Safari doesn't show the request you need.
Sign in to eClass in Chrome. Open DevTools (Cmd+Option+I, or F12) → Network, and tick Preserve log.
In the same tab, open:
https://eclass.yorku.ca/admin/tool/mobile/launch.php?service=moodle_mobile_app&passport=12345&urlscheme=moodlemobileThe page appears to fail ("Unsupported URL scheme" or "invalid address"). That means it worked: eClass redirected to amoodlemobile://token=…link, which only the Moodle mobile app can open.In the Network list, find the request whose name starts with
moodlemobile://token=. Right-click it → Copy → Copy URL. (If it isn't listed, click thelaunch.phprow and read theLocationheader.)Turn that link into your token. Run this in Terminal, paste the link when asked (nothing shows as you paste), and press Return:
printf 'Paste link: '; read -rs L; echo; node -e "console.log(Buffer.from(process.argv[1].trim().split('token=').pop(),'base64').toString().split(':::')[1])" "$L"It prints a 32-character string. That is your
ECLASS_WS_TOKEN.Put it in your MCP client config (below). Don't paste it into chat, issues or commits.
It didn't work?
A Moodle error page ("Web service is not available") means your school has the mobile service off. Use setup A.
Nothing in the Network list means the page was opened before DevTools. Reload it with DevTools open and Preserve log on.
Safari reports "address is invalid" and shows no request, so switch to Chrome.
If
check_connectionlater returns an HTML page with HTTP 202, a firewall is challenging the request. The server already uses your systemcurlto avoid this (see Firewall note).
Claude Desktop / any MCP client config
{
"mcpServers": {
"eclass": {
"command": "npx",
"args": ["-y", "github:keerthan9453/eclass-mcp"],
"env": {
"ECLASS_ICS_URL": "https://eclass.yorku.ca/calendar/export_execute.php?...",
"ECLASS_WS_TOKEN": "optional-token"
}
}
}
}Claude Code: claude mcp add eclass -e ECLASS_ICS_URL=... -- npx -y github:keerthan9453/eclass-mcp
Tools
Tool | Needs | Description |
| token or ICS | Deadlines in the next N days (1–365, default 14). Uses the token if set, else the calendar feed |
| token | Confirms the token works; shows your name |
| token | Enrolled courses with ids |
| token | Assignments and due dates |
| token | Your grade items |
| token | Sections, resources, activities |
Environment variables
ECLASS_ICS_URL, ECLASS_WS_TOKEN, ECLASS_BASE_URL (default https://eclass.yorku.ca), ECLASS_TIMEOUT_MS (default 15000), ECLASS_TRANSPORT (curl default, or fetch).
Scenarios handled
No config → only the calendar tool shows, with an error saying what to set
Calendar URL expired/regenerated (404), or returns a login page → explicit error
Token invalid, or web services disabled → explicit error; secrets are never echoed back
Slow or unreachable server → times out (no hang)
http://to a non-local host → refused so credentials aren't sent in clear textCourse with no assignments/grades, assignments with no due date → handled
Schulich courses live on Canvas, not eClass, so they won't appear
Firewall note
York's front end may answer Node's built-in fetch with an HTML bot-challenge page (HTTP 202) while accepting curl. The server therefore sends requests through your system curl by default (needs curl on PATH, which macOS and most Linux have). Set ECLASS_TRANSPORT=fetch to force Node's fetch.
Security
The ICS URL and token grant access to your account. Keep them in your MCP client's env, never commit them. The server never writes to eClass.
Development
npm install
npm test # builds and runs 22 end-to-end scenarios against a mock eClass
npm run demo # scripted walkthroughdist/ is committed so npx github:... works without a build step. Run npm run build before committing source changes.
Available Tools
1 toolget_upcoming_deadlinesA
List upcoming eClass deadlines (assignments, quizzes). Uses the web service token if set, otherwise the exported ICS calendar feed.
Inputs: days.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of confusion with another tool in the set. Its stated purpose (listing upcoming deadlines from assignments and quizzes) is clearly bounded.
The single name follows a clean verb_noun pattern (get_upcoming_deadlines) in snake_case. With one tool there is no convention mixing to evaluate against, and the name is readable and predictable.
A single tool is far too thin for a server branded as an eClass integration, which implies courses, content, assignments, and announcements. One read-only deadline lookup does not justify a whole MCP server surface.
The surface covers only one read operation (deadlines) with no access to courses, course materials, announcements, grades, or submission status, and no way to drill into a specific assignment. Agents hitting any other common eClass need will dead-end.
Maintenance
Related MCP Connectors
PLATO (Pusan National University LMS) MCP server via Moodle Web Service API + ubboard scraping
Read your plat.plus courses, tasks, course pages, sessions, files and messages. Read-only.
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
MCP server for Cronofy — read calendars, events and free/busy, and create, update or delete events.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables read-only querying of Moodle as a student, including courses, assignments, grades, forums, and files, using a personal web services token.1139 npmMIT
- AlicenseAqualityBmaintenanceLets MCP clients access a student's ZHAW Moodle account to list courses, find and download learning materials, sync local copies, and track deadlines, assignments, and announcements.161MIT
- AlicenseNot gradedqualityCmaintenanceEnables read-only Moodle access through MCP for querying courses, content, assignments, grades, forums, discussions, submissions, and calendar events, while supporting multiple profiles and local ICS export.MIT
- AlicenseNot gradedqualityCmaintenanceEnables users to read Moodle course information, list courses, outlines, resources, assignments, and deadlines, and download or extract text from course files locally via an MCP-compatible client.MIT