kntu-moodle-mcp
Provides tools for signing in to KNTU Moodle as a student, managing the session with auth_status, login, logout, and whoami, with automatic re-login from secrets.yaml and cached tokens.
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., "@kntu-moodle-mcp check if I'm still signed in to Moodle, and log me back in if not"
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.
kntu-moodle-mcp
MCP server + Claude Code skills for the KNTU Moodle (https://mdl.kntu.net.ua), acting as the signed-in student. See ARCHITECTURE.md for the design.
Status: Phase 0. Skeleton, sign-in from secrets.yaml (with automatic re-login), auth_status / login / logout / whoami tools, and the moodle:login skill.
Setup
npm install
npm run build
node plugins/tooling/skills/sync-secrets/sync.mjs # creates secrets.yaml; fill in the empty values (quoted)
node dist/index.js login # optional check: signs in from ./secrets.yaml and stores the token
node dist/index.js statusWith the project .mcp.json (MOODLE_SECRETS_FILE=secrets.yaml), the server signs in by itself,
on the login tool or automatically when the token is missing or expired. The token is cached in
~/.kntu-moodle-mcp/tokens.json (override with MOODLE_HOME).
secrets.yaml is gitignored. Signing in always uses it: there is no password prompt and no token override.
Related MCP server: NYCU
Use with Claude Code
Skills ship as project-local plugins (plugins/moodle, plugins/github, plugins/tooling), registered in
.claude/settings.json. When you open the folder and trust it, Claude Code offers to install them. If it doesn't:
claude plugin marketplace add ./ --scope project
claude plugin install moodle@kntu-moodle-mcp --scope project # likewise github, toolingSkills then appear as /moodle:login, /tooling:sync-secrets, …
The project ships a .mcp.json that registers the server as kntu-moodle (run npm run build first).
Open the folder in Claude Code and approve the server. Tools appear as mcp__kntu-moodle__<tool>.
To register it for use from any folder:
claude mcp add kntu-moodle -s user -- node "<absolute path>/dist/index.js"Commands
| all pre-commit checks (or |
| reload edited plugins into Claude Code's cache, then |
| bundle to |
| unit + in-memory MCP e2e tests |
|
|
| regenerate |
| open the MCP Inspector against the built server |
Configuration
See .env.example. The most relevant settings are MOODLE_TOOLS (tool allowlist),
MOODLE_READ_ONLY, and MOODLE_LANG.
Contributing
npm installalso installs the git hooks (core.hooksPath→.githooks). Nothing can be committed on or pushed tomain/develop, and a push only goes through when every check innpm run verifypasses.Commit messages follow Conventional Commits:
feat(scope): subject.Flow: branch from
develop→ PR intodevelop→ releases are PRsdevelop→main. Maintainers merge.Style: Biome (
npm run format,npm run lint).
License
Available Tools
4 toolsauth_statusMoodle sign-in statusARead-onlyIdempotent
Check whether the server is signed in to the KNTU Moodle (mdl.kntu.net.ua) and whether the token still works. Call this first when unsure; it never fails. If signedIn is false, follow the returned instructions to sign in.
Inputs: no named parameters. Returns: url, reason, userid, fullname, +2 more
loginSign in to MoodleAIdempotent
Sign the user in to the KNTU Moodle with the credentials stored in secrets.yaml (read by the server; the password never appears in arguments or output). Takes no arguments: never pass or ask for a password. Errors: CREDENTIALS_MISSING (secrets.yaml not set up), INVALID_LOGIN (wrong credentials, do not retry).
Inputs: no named parameters. Returns: method, fullname, signedIn, username
logoutSign out of MoodleAIdempotent
Forget the stored Moodle token on this computer and stop automatic re-login until login is called again. Only use when the user asks to sign out.
Inputs: no named parameters. Returns: removed
whoamiCurrent Moodle userARead-onlyIdempotent
Get the signed-in student's profile and site details: full name, username, user id, site name, language, Moodle release, and how many web-service functions the token may call.
Inputs: no named parameters. Returns: lang, userid, release, siteurl, +5 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a distinct role: auth_status checks token validity, login/logout manage the session, and whoami returns profile data. auth_status and whoami overlap slightly since both reveal sign-in state, but the descriptions make the boundary clear (status check vs. full profile).
Names mix conventions: `auth_status` is a namespaced snake_case identifier, `login`/`logout` are bare verbs, and `whoami` is a Unix-ism with no verb_noun structure. The set is still readable and each name is intuitive, but there is no predictable pattern an agent can extrapolate.
Four tools is thin for a server branded as a full Moodle integration, though it is reasonable if the scope is deliberately auth-only. No tool feels redundant, so the count is borderline rather than excessive or trivial.
The auth lifecycle (status, login, logout, identity) is fully covered with no dead ends, but the Moodle domain itself is untouched — no course listing, assignments, grades, deadlines, or content access. An agent asked to do anything academic with Moodle would immediately fail.
Maintenance
Related MCP Connectors
Thought Industries MCP server for ChatGPT, Claude and any AI agent: list learners, enroll learner in course, import and invite learners, read content actions log, set content status and add learner to waitlist in your own Thought Industries account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Thought Industries yourself; Cotlet does not store your password and you need no Thought Industries API key. About the official Thought Industries API: Thought Industries has a REST API and a GraphQL API, but no MCP server you can connect today (checked 23 Oct 2026). Both APIs need a key an admin creates under Settings > Security, and the Claude plugin lists "a Thought Industries instance with API access enabled" as a prerequisite. Setup and FAQ: https://cotlet.dev/integrations/thought-industries-api-mcp-server
Absorb LMS MCP server for ChatGPT, Claude and any AI agent: list users, list course enrollments, list overdue learners, approve enrollment request, enroll users in a course, message learners, create user and deactivate user in your own Absorb LMS account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Absorb LMS yourself; Cotlet does not store your password and you need no Absorb LMS API key. About the official Absorb LMS API: Absorb LMS has an Integration API, a REST API with JSON for learners, courses, departments and grades, but it needs a private key tied to your portal that your Absorb account team provides, and your own code (checked 20 Oct 2026). Absorb's Aura MCP for Claude and ChatGPT is planned for 27 Oct 2026 and is read and answer only. Setup and FAQ: https://cotlet.dev/integrations/absorb-lms-api-mcp-server
LearnWorlds MCP server for ChatGPT, Claude and any AI agent: list users, list course learners, enroll users, unenroll users, update tags, send message, suspend user and grade assessment in your own LearnWorlds account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to LearnWorlds yourself; Cotlet does not store your password and you need no LearnWorlds API key. About the official LearnWorlds API: LearnWorlds has a REST API (v2) for courses, users, bundles, subscriptions, promotions, payments and certifications, but it comes with the Learning Center plan and higher, and you need your own code to use it (checked 5 Nov 2026). LearnWorlds has no official MCP server. Setup and FAQ: https://cotlet.dev/integrations/learnworlds-api-mcp-server
Read courses, attendance, students, groups and documents; mark attendance in Edusign.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides Claude with full access to Moodle learning management systems, enabling interaction with courses, files, assignments, grades, and calendar events. It also supports building Obsidian study vaults from course materials through automated knowledge graph creation.48 npm18MIT
- AlicenseNot gradedqualityBmaintenanceEnables Codex and Claude Code to access university course portal identity and activities, E3 courses, assignments, deadlines, grades, materials, public timetables, and part-time attendance sign-in/out. It provides platform-aware tools with confirmation safeguards for attendance writes.3MIT
- AlicenseBqualityCmaintenanceConnects Claude to your Moodle account through the same web-service API the mobile app uses. Enables asking about upcoming and overdue deadlines, reading course files and announcements, checking grades, searching course content, and saving assignment submissions from chat.172MIT
- AlicenseNot gradedqualityCmaintenanceConnects Claude to a student's Moodle account so it can retrieve courses, pending assignments, grades, notices, materials, forums, and submission status, and can publish forum posts or upload assignments after confirmation.MIT