Moodle Study MCP
Enables AI assistants to read your Moodle courses, list materials, quizzes, and search content to plan exam preparation through natural language.
README
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 |
|---|---|
list_courses |
Your enrolled courses |
get_course_overview |
Detected counts (lectures / problem sets / practice exams / quizzes) + the raw item list |
sync_course |
Downloads + text-extracts all materials into a local cache |
list_quizzes |
Every quiz + how many attempts you've made |
search_materials |
Full-text search across everything you've synced |
get_material |
The extracted text of one file, for Claude to read |
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 capture a token through the browser:
python -m moodle_mcp auth
It opens a browser, you log in with SSO, and it hands back a
moodlemobile://token=... value — paste that back into the prompt. The token is
stored in your OS keyring (never in a file, never in git) and is long-lived.
Verify:
python -m moodle_mcp doctor
2. Register with Claude Code
claude mcp add moodle -- python -m moodle_mcp serve
Then 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 auth
The 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]"
pytest
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.