Skip to main content
Glama

Waseda Moodle MCP

English · 日本語 · 简体中文

Connect Waseda University Moodle (wsdmoodle) to Claude, ChatGPT, Cursor and other AI assistants. Assignments & deadlines, timetable, syllabus, grades and course updates — just ask.

Public instance · Self-hosting · MIT License

An MCP (Model Context Protocol) server for Waseda University's Moodle (https://wsdmoodle.waseda.jp). Ask your AI assistant what is due this week, when and where your next class is, how a course is graded, or what teachers posted recently — across every course at once. It is Waseda-only by design: the Moodle origin, the login flow and several features (syllabus-based timetable, assignments & deadlines sweep) are specific to that site.

It runs either as a hosted service on Cloudflare Workers (with a web console) or as a local stdio process. Unofficial; not affiliated with Waseda University.

Ask things like

  • "What assignments are due this week? Which ones have I not submitted?"

  • "What classes do I have tomorrow, and in which rooms?"

  • "How is Introduction to Data Science graded?"

  • "What did teachers add to my courses since Monday?"

Screenshots

Overview

Assignments & deadlines

My courses

Timetable

Screenshots use fictional demo data.

Related MCP server: FCPC-lms-mcp-server

Features

Assignments & deadlines

  • Outstanding items grouped Overdue / Today / Tomorrow / Next 7 days / Later, or by course (group_by=course). Submitted items stay in their group struck through. From the Moodle calendar plus a background sweep that finds undated activities and deadlines written in course text (marked "verify").

  • Recent teacher additions and changes in your courses.

  • Calendar feed: a secret ICS subscription URL (console Settings → Calendar feed) for assignments & deadlines and the timetable in Google Calendar, Apple Calendar or Outlook.

Timetable

  • Per-day classes with times, room and campus, built from the public Waseda syllabus and the academic calendar. On-demand and unknown slots listed separately.

Courses, content and grades

  • Enrolled courses (this term by default), a confirmed course selection (Settings → This term's courses), course sections and activities, activity details, name search across courses, grades per course.

Forums, messages and notifications

  • Forum threads and posts, Moodle conversations, notifications with unread counts.

Waseda mail (optional, hosted)

  • Apply for access, and once an administrator approves, connect your Wasedaメール (Google Workspace Gmail) under Settings → Mail or on the Overview page, to search and read mail and attachments, and to send or reply after you confirm. Connections unused for 90 days are disconnected automatically. Google limits an unverified app to 100 users per project, so the hosted service offers a fixed number of mail slots; when they are taken, self-host with your own Google OAuth client.

Files

  • Download any Moodle file through a short-lived signed URL (hosted) or a temp file (stdio); small files can be attached inline.

Writes with preview, then confirm

  • Assignment submission (text and files), forum posts and replies, Moodle messages, manual completion.

  • Every write is two steps: prepare_* returns a preview, and nothing reaches Moodle until confirm_action runs after you agree. Once one of several prepared actions for the same target (e.g. the same forum, post or assignment) runs, the others that were pending are marked superseded and can no longer run, so a stale preview never posts twice. Writes can also be restricted to approval in the web console, or turned off.

How it works

The server talks to Moodle's web services using the same token the official Moodle mobile app uses. That token is obtained from Moodle's mobile-app launch flow while you are signed in to Moodle in your browser; your password is never requested or seen. On Waseda Moodle the token lasts about a week; the hosted server keeps it renewed automatically (see Security and privacy).

AI client  <-- MCP (HTTP or stdio) -->  MCP server (Worker / Node)  <-- REST -->  Moodle web services
                                              |
                                        D1 / KV (hosted)

Quick start

Public instance — operated by Konata, free:

  1. Open the public instance and connect Moodle with the bookmarklet, the browser extension, or by pasting the launch link. Your password is never asked for.

  2. Optionally confirm this term's courses under Settings → This term's courses.

  3. Copy the MCP URL from Settings → AI clients and add it to your AI client (see Clients).

Your own instance — see Self-hosting. Below, https://wasemoodle.example.com stands for your instance URL.

Console

The hosted console sidebar: Overview, Assignments & deadlines, My courses, Timetable, Approvals, Settings.

My courses is the per-course view (tasks, timetable, syllabus grading, recent updates). Confirm which courses you attend under Settings → This term's courses.

Settings tabs: General, This term's courses, AI clients, API keys, Authorized apps, Calendar feed, Activity, Account.

Clients

MCP URL: https://wasemoodle.example.com/mcp (Streamable HTTP). OAuth is the default: the client discovers the authorization server from the 401 response (RFC 9728), registers itself and opens the consent page, where you grant read-only or read+write access. API keys (wmm_…, created on the console Settings → API keys) are for clients that can send an Authorization: Bearer <API_KEY> header. The console Settings → AI clients page shows the same steps with your instance URL filled in.

Client

Setup

Claude (web, Desktop; usable on mobile once added)

Customize → Connectors → Add custom connector → URL → Connect. Free plan: 1 custom connector; Team/Enterprise: an Owner adds it in Organization settings → Connectors.

ChatGPT

Plugins → + → Add custom MCP server → URL, Authentication OAuth → Create. Available on Plus, Pro, Business, Enterprise and Edu.

Grok

grok.com/connectors → New Connector → Custom → URL. Business/Enterprise: admin adds it first at console.x.ai.

Claude Code

claude mcp add --transport http waseda-moodle https://wasemoodle.example.com/mcp, then /mcp → Authenticate

Cursor

~/.cursor/mcp.json: {"mcpServers": {"waseda-moodle": {"url": "https://wasemoodle.example.com/mcp"}}}

VS Code (Copilot)

.vscode/mcp.json: {"servers": {"waseda-moodle": {"type": "http", "url": "https://wasemoodle.example.com/mcp"}}}

Codex CLI

codex mcp add waseda-moodle --url https://wasemoodle.example.com/mcp, then codex mcp login waseda-moodle

Gemini CLI

gemini mcp add --transport http waseda-moodle https://wasemoodle.example.com/mcp, then /mcp auth waseda-moodle (free and Google One users now use Antigravity CLI)

Grok CLI

grok mcp add --transport http waseda-moodle https://wasemoodle.example.com/mcp

Other (LobeHub, Cherry Studio, …)

Streamable HTTP + URL; OAuth if supported, otherwise the API-key header

With an API key instead of OAuth. Keep the key out of project files: CLIs store it in your user config, and Codex and Cursor read it from WMM_API_KEY (set it in your shell profile, e.g. export WMM_API_KEY='<API_KEY>' in ~/.zshrc).

# Claude Code / Grok CLI (instead of the OAuth command; `claude mcp remove waseda-moodle` first if already added)
claude mcp add --transport http waseda-moodle https://wasemoodle.example.com/mcp \
  --header "Authorization: Bearer <API_KEY>"
grok mcp add --transport http waseda-moodle https://wasemoodle.example.com/mcp \
  --header "Authorization: Bearer <API_KEY>"
# Codex
codex mcp add waseda-moodle --url https://wasemoodle.example.com/mcp --bearer-token-env-var WMM_API_KEY

Cursor (~/.cursor/mcp.json): add "headers": { "Authorization": "Bearer ${env:WMM_API_KEY}" } to the server entry. VS Code (.vscode/mcp.json): let VS Code prompt for the key and store it securely:

{
  "inputs": [
    { "type": "promptString", "id": "wmm-api-key", "description": "Waseda Moodle MCP API key", "password": true }
  ],
  "servers": {
    "waseda-moodle": {
      "type": "http",
      "url": "https://wasemoodle.example.com/mcp",
      "headers": { "Authorization": "Bearer ${input:wmm-api-key}" }
    }
  }
}

Gemini CLI (~/.gemini/settings.json, use httpUrl): add "headers": { "Authorization": "Bearer <API_KEY>" } to the server entry. ChatGPT and Claude (web) use OAuth only.

Local stdio (Node 20+):

pnpm install
pnpm build:stdio                                  # produces dist/stdio.js
node dist/stdio.js connect -                      # paste the launch link on stdin

Client configuration (JSON form used by most clients):

{
  "mcpServers": {
    "waseda-moodle": {
      "command": "node",
      "args": ["/path/to/waseda-moodle-mcp/dist/stdio.js"]
    }
  }
}

Or with Claude Code: claude mcp add waseda-moodle -- node /path/to/dist/stdio.js --read-only.

Option

Meaning

--read-only / WMM_READ_ONLY=1

Register read tools only

WMM_TOKEN

Token or launch link; overrides the token file

WMM_CONFIG_DIR

Config directory (default ~/.config/waseda-moodle-mcp; token file mode 0600)

HTTPS_PROXY, ALL_PROXY, NO_PROXY

Outbound proxy settings

Stdio stores the token in plain text (file mode 0600) and does not support console approval of writes or create_upload_link.

Tools

Tool

Purpose

Access

get_due_items

Assignments and deadlines grouped by day or by course (group_by=course); submitted items stay in their group struck through; includes submission state and sweep results

read

list_courses

Enrolled courses (scope: mine or all)

read

get_course

Sections and activities of one course

read

search_course_content

Search activity, section and file names

read

get_activity

Full details of one activity; questionnaire questions and your answers, attendance summary

read

get_grades

Grades for a course

read

set_my_courses

Save the course selection (This term's courses; server-side filter; does not change Moodle)

read scope

get_course_updates

Recent teacher changes

read

get_timetable

Classes per day with room and campus

read

set_course_schedule

Set or clear a course's class time (server-side; does not change Moodle)

read scope

get_syllabus

Public syllabus: plan, grading weights, textbooks

read

get_quiz_review

Review a finished quiz attempt (questions, marks, right answers)

read

get_file

Fetch a Moodle file (signed URL, temp file, or inline up to 1 MiB)

read

list_discussions

Forum threads of your courses, with forum ids, posting permission and paging

read

get_discussion

Posts of one discussion

read

list_messages

Moodle conversations

read

get_conversation

Messages of one conversation

read

list_notifications

Notifications and unread count

read

search_forums

Keyword search over forum discussions (optionally messages)

read

search_people

Find teachers and classmates seen in your course forums or conversations

read

search_mail

Search the Waseda mailbox with Gmail search syntax (only after connecting mail)

read

get_mail

Read a mail or a whole thread, with attachment links

read

create_upload_link

Short-lived upload URL for large files: submissions and forum attachments (hosted only)

write

prepare_submission

Preview an assignment submission

write

prepare_forum_post

Preview a new discussion or reply, with attachments

write

prepare_forum_post_change

Preview editing or deleting your own forum post

write

prepare_questionnaire

Preview answers to a questionnaire (submit or save as draft)

write

prepare_message

Preview a Moodle message

write

prepare_mail_send

Preview a new mail from your Waseda address

write

prepare_mail_reply

Preview a reply (or reply all) to a mail

write

prepare_completion

Preview marking an activity done / not done

write

prepare_forum_subscription

Preview subscribing to / unsubscribing from a forum

write

prepare_mark_read

Preview marking notifications, a conversation or a forum discussion as read

write

confirm_action

Execute a prepared action

write

cancel_action

Discard a prepared action

write

Prompts: daily_briefing (optional date), weekly_plan, exam_prep (course). Resources: moodle://course/{course_id} and moodle://syllabus/{course_id}. Prepared actions expire after 30 minutes. Times are shown in JST. The server never takes quizzes.

Security and privacy

  • No Moodle password is ever requested. The Moodle token is encrypted at rest (AES-256-GCM with the operator's MASTER_KEY).

  • Automatic renewal: the hosted server keeps a Moodle web session (stored encrypted, sent only to Moodle) and uses it to pick up a new token when the old one expires, so you do not have to reconnect every week.

  • File contents are streamed, not stored. Download and upload links are HMAC-signed and expire in 15 and 30 minutes.

  • Waseda mail (optional): the server keeps the Google authorization (encrypted), your address, Google account id, granted permissions and connection times. Mail in your mailbox passes through to your AI client and is never stored; a mail you prepare (sent or not) is kept with its action for 90 days. Attachments up to 5 MB download through signed links; larger ones open in Gmail. Reading mail never marks it read.

  • API keys are stored as hashes. OAuth access tokens last 12 hours, refresh tokens 90 days.

  • Deleting your account under Settings → Account removes all of your data on the server.

Details: docs/privacy.md.

Self-hosting

The hosted variant fits the Cloudflare Workers Free plan (Worker + D1 + KV + static assets). See docs/self-hosting.md.

Development

Command

Purpose

pnpm dev

wrangler dev (console via pnpm --filter waseda-moodle-mcp-web dev)

pnpm test

Vitest (core, worker, node, extension)

pnpm --filter waseda-moodle-mcp-web test

Console tests

pnpm typecheck

TypeScript, root and web/

pnpm lint / pnpm lint:fix

Biome

pnpm dup / pnpm dead

jscpd duplication / knip dead code

pnpm quality

lint + dup + dead + typecheck (tests run separately)

pnpm build:stdio

Bundle the stdio server

Layout: src/core (runtime-agnostic services, Moodle client, MCP tools), src/worker (Cloudflare entry, OAuth, API, D1 store, cron), src/node (stdio CLI), web (React console), extension (MV3 connector, no build step), migrations (D1 SQL), tests.

License

MIT.

Disclaimer

This is an unofficial project and is not affiliated with or endorsed by Waseda University. The Moodle token it uses is the same token the official Moodle mobile app uses (one per user). This server never revokes or resets it; when it expires the hosted server picks up the new one automatically, and asks you to reconnect only if that is not possible.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    • 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

    • 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

    • WorkRamp MCP server for ChatGPT, Claude and any AI agent: list assignments, remind learners, assign training, change due date, unassign learner, get learner transcript, set reminder cadence and run automation in your own WorkRamp account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to WorkRamp yourself; Cotlet does not store your password and you need no WorkRamp API key. About the official WorkRamp API: WorkRamp has a REST API, but it is private: you ask support@workramp.com for access, it needs an enterprise account, and tokens come only from Admin users (checked 22 Oct 2026). WorkRamp's own MCP server is announced in its June 2026 product roundup and described as read and search of guides and assignments, with no write tools. Setup and FAQ: https://cotlet.dev/integrations/workramp-api-mcp-server

    • Udemy MCP server for ChatGPT, Claude and any AI agent: create coupon, update course, send announcement and get revenue report in your own Udemy account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Udemy yourself; Cotlet does not store your password and you need no Udemy API key. About the official Udemy API: Udemy has an Instructor API that lists your courses, reads reviews, and reads and answers Q&A questions and direct messages (checked 12 Oct 2026). It has no coupons, announcements, review responses, course edits or revenue. Setup and FAQ: https://cotlet.dev/integrations/udemy-api-mcp-server

      https://cotlet.dev/mcp/v1/udemy

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Connects AI assistants to any Moodle site through the official mobile web service, with a limited browser-session fallback, enabling access to courses, grades, deadlines, assignments, quizzes, forums, and course files. It also supports reading and downloading files and uploading or submitting assignment work under explicit confirmation.
      34
      ISC