Skip to main content

ZHAW Moodle MCP

PyPI CI License: MIT

Use your ZHAW Moodle from Claude: courses, materials, downloads, deadlines and announcements. You log in yourself with SWITCH edu-ID — your password is never seen or stored, and everything stays on your computer.

Unofficial student project, not affiliated with ZHAW. Course material is for personal study only.

Quick start

  1. Download zhaw-moodle-<version>.mcpb from the latest release.
  2. Double-click it, or in Claude Desktop open Settings → Extensions → Advanced settings → Install Extension… and pick the file. Click Install.
  3. Open a new chat and ask "Which Moodle courses do I have?". The first start takes a few seconds; then a browser opens for the SWITCH edu-ID login.

No config files to edit. In the chat's + → prompts menu you find ready-made study sessions: study assistant, last lecture summary, deadlines overview, what's new, exam preparation.

Claude Code

Install uv, then:

claude mcp add zhaw-moodle -- uvx zhaw-moodle-mcp@latest

Ask Claude

"Summarise the last lecture of Software Engineering 1", "Show all my deadlines as a table", "Sync all my courses", "What's new since Monday?". Files go to the ZHAW folder in your home directory.

Good to know

  • Browser: login uses your default browser if it is Chrome, Edge, Brave or Vivaldi, otherwise another installed one (Firefox and Safari are not supported).
  • Updates: the extension is updated by installing a newer .mcpb; with uvx ...@latest (Claude Code) updates install automatically when Claude starts.
  • Extension does not start: it runs with uv. If Claude Desktop reports that uv is missing, install uv and restart Claude completely (also from the tray).
  • Sync never deletes local files. Logging out (ask Claude, or uvx zhaw-moodle-mcp logout) removes the stored session and the login browser profile; a running server notices it.
  • Session and settings live in ~/.zhaw-moodle-mcp on Windows (outside AppData, so Claude from the Microsoft Store and the command line share them) and in the usual app folders on macOS/Linux.

Configuration

Optional. The extension asks for the download folder and browser when you install it. Otherwise run uvx zhaw-moodle-mcp config-path to see where config.toml goes:

[moodle]
download_directory = "~/ZHAW"

[browser]
name = "auto"  # or "chrome", "msedge", "brave", "vivaldi"
# executable_path = "C:/path/to/browser.exe"  # any other Chromium-based browser

Development

uv sync
uv run pytest
uv run ruff check .

In this folder Claude Code picks up the server from .mcp.json, plus a study assistant subagent (copy it to ~/.claude/agents/ to use it everywhere). Build the Claude Desktop extension with uv run python scripts/build_extension.py (needs Node.js). Pushing a vX.Y.Z tag that matches pyproject.toml publishes to PyPI and attaches the .mcpb to a GitHub release.

Metadata

Release files for zhaw-moodle-mcp 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zhaw-moodle-mcp 0.4.0
File Size Uploaded Provenance Actions
zhaw_moodle_mcp-0.4.0.tar.gz 54.1 kB With provenance Details for zhaw_moodle_mcp-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zhaw-moodle-mcp 0.4.0
File Interpreter ABI Platform Actions
zhaw_moodle_mcp-0.4.0-py3-none-any.whl Python 3 none any Details for zhaw_moodle_mcp-0.4.0-py3-none-any.whl

Total release size: 125.9 kB

Release files / zhaw_moodle_mcp-0.4.0.tar.gz

Download URL zhaw_moodle_mcp-0.4.0.tar.gz
Size 54.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a76fafd8569dd84c99ff618b291c1f3c27320800b38e61d665d9f43ad35b3db2
BLAKE2b-256 checksum
How to use checksums
0111552df09e0ffdfb7a64f497484cd6f3c962489c577f9d67220c74fbf065ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / zhaw_moodle_mcp-0.4.0-py3-none-any.whl

Download URL zhaw_moodle_mcp-0.4.0-py3-none-any.whl
Size 71.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ac242afb342bfc10167cc3fe2f43614d1cd63b65301a1afeebdff01c3cd1e7b
BLAKE2b-256 checksum
How to use checksums
5c301528acc138ca39b484b8f29303cee740b8a0ff088a6a87fc4e6ab37900a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Security for zhaw-moodle-mcp 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zhaw_moodle_mcp-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page