Moodle Study MCP
Allows interaction with Moodle, providing tools to list courses, get course overview with content counts, sync and search materials, and list quizzes with attempt information.
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., "@Moodle Study MCPGive me a study overview of Fluid Dynamics"
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.
Moodle Study MCP
An MCP server that lets Claude read your ETH Moodle courses so it can plan your exam prep. Ask Claude things like:
"For Control Systems II, exam in 12 days — how many lectures, problem sets, quizzes and practice exams do I have, and what should I actually do?"
The server fetches, counts, and categorizes your course content. Claude does the
reasoning. Works for any Moodle site (defaults to ETH; set MOODLE_URL for others).
What it gives Claude
Tool | What it does |
| Your enrolled courses |
| Detected counts (lectures / problem sets / practice exams / quizzes) + the raw item list |
| Downloads + text-extracts all materials into a local cache |
| Every quiz + how many attempts you've made |
| Full-text search across everything you've synced |
| The extracted text of one file, for Claude to read |
Related MCP server: mcp-moodle
Setup (ETH students)
Requires Python 3.10+.
git clone <this-repo> && cd Moodle-MCP
pip install -e .1. Get your token (once)
ETH uses SSO, so you need a Moodle web-service token (a 32-character hex string). The token is stored in your OS keyring (never in a file, never in git) and is long-lived.
python -m moodle_mcp authThis opens a browser; log in with SSO. At the end Moodle tries to hand the token
back via a moodlemobile://token=... redirect. Since no app is registered for
the moodlemobile:// scheme, your browser shows an error — "address invalid"
(or "Safari cannot open the page because the address is invalid"). That's
expected. You just need to fish the token=... value out of that failed
redirect and paste it at the prompt.
Most browsers (Safari and Chrome included) hide the failed URL, so grab it from DevTools instead:
Safari — enable Settings → Advanced → "Show features for web developers", then Develop → Show Web Inspector (
⌥⌘I) → Network tab. Run the login, click thelaunch.phpentry → Response, and search formoodlemobile://token=. Copy that whole value.Chrome / Edge —
Ctrl/⌘+Shift+I→ Network tab → run the login → open thelaunch.phpresponse and findtoken=.
Paste that value at the Paste the moodlemobile://token=... value here: prompt
(the tool decodes it for you).
Non-ETH Moodle sites: many expose the token directly under your profile → Preferences → Security keys (
<your-moodle>/user/managetoken.php), listed as "Moodle mobile web service". If it's there, skip the browser dance:python -m moodle_mcp auth --token <token>. Note: the RSS token on that page is not the right one, and ETH does not list the mobile token there.
Verify:
python -m moodle_mcp doctor2. Register with Claude Code
claude mcp add moodle -- python -m moodle_mcp serveThen in Claude: "List my Moodle courses", or "Give me a study overview of Fluid Dynamics."
Other universities
export MOODLE_URL="https://moodle.your-uni.example"
python -m moodle_mcp authThe classifier keywords (taxonomy.yaml) are tuned for German + English ETH
naming. Add your own patterns there if your course names differ.
Privacy & security
Your token is a password to your Moodle account. It lives only in your OS keyring.
.gitignoreexcludes the cache and any token files.The local cache (
~/.moodle-mcp/) holds copyrighted course material — it stays on your machine.Uses only Moodle's sanctioned mobile web-service API. No scraping.
Development
pip install -e ".[dev]"
pytestThis server cannot be deployed
Maintenance
Related MCP Connectors
Connect your Moodle to AI assistants: courses, content, grading and reports from the chat.
Create, edit, translate, and export SCORM eLearning modules from a connected AI assistant.
Read-only access to Epivo's live course catalogue for AI agents.
Lucky AI study buddy over your own LlamaNotes courses: chat, progress, and AI course generation.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides 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.190 npm17MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to interact with Moodle via web services, allowing tasks like listing courses, assignments, events, and downloading files.104MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to access Canvas LMS course content, including assignments, modules, announcements, and files, to help students manage their coursework.3 npmISC
- AlicenseNot gradedqualityCmaintenanceConnects Moodle LMS with AI assistants through the Model Context Protocol, enabling users to interact with Moodle data via a conversational chatbot interface.2 npmMIT