Skip to main content
Glama

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 status

With 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, tooling

Skills 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

/tooling:verify

all pre-commit checks (or node plugins/tooling/skills/verify/verify.mjs)

/tooling:refresh-plugins

reload edited plugins into Claude Code's cache, then /reload-plugins

npm run build

bundle to dist/

npm test

unit + in-memory MCP e2e tests

npm run typecheck

tsc --noEmit

npm run manifest

regenerate tools.manifest.json (tool names, kinds, WS functions)

npm run inspect

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 install also installs the git hooks (core.hooksPath → .githooks). Nothing can be committed on or pushed to main/develop, and a push only goes through when every check in npm run verify passes.

  • Commit messages follow Conventional Commits: feat(scope): subject.

  • Flow: branch from develop → PR into develop → releases are PRs develop → main. Maintainers merge.

  • Style: Biome (npm run format, npm run lint).

License

MIT

Available Tools

4 tools
auth_statusMoodle sign-in statusA
Read-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 MoodleA
Idempotent

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 MoodleA
Idempotent

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 userA
Read-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

    A3.7/5.0

    Scored across 4 tools

    Disambiguation4/5

    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).

    Naming Consistency3/5

    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.

    Tool Count3/5

    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.

    Completeness2/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    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.

      https://edusign.usefulapi.io/mcp

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 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 npm
      18
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      3
      MIT