MCP Hub
Back to servers

moodle-mcp

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.

glama
Stars
2
Updated
Apr 16, 2026
Validated
Apr 17, 2026

moodle-mcp

Give Claude full access to your Moodle — courses, files, assignments, grades, quizzes, calendar, and more. Build Obsidian study vaults from your lecture notes in one command.

13 tools · 5 prompts · MCP Resources


Quick Start

1. Install

npx moodle-mcp

Or install globally:

npm install -g moodle-mcp

2. Get your tokensee below

3. Add to your MCP client

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on Mac, %APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "moodle": {
      "command": "npx",
      "args": ["moodle-mcp"],
      "env": {
        "MOODLE_URL": "https://moodle.yourschool.edu",
        "MOODLE_TOKEN": "your_token_here"
      }
    }
  }
}

VS Code (add to .vscode/mcp.json):

{
  "servers": {
    "moodle": {
      "command": "npx",
      "args": ["moodle-mcp"],
      "env": {
        "MOODLE_URL": "https://moodle.yourschool.edu",
        "MOODLE_TOKEN": "your_token_here"
      }
    }
  }
}

Getting Your Token

Option A — Moodle profile page (works everywhere)

  1. Log in to your school's Moodle in a browser
  2. Go to Profile → Security keys (URL: https://moodle.yourschool.edu/user/managetoken.php)
  3. Find the Moodle mobile web service token and copy it
  4. Set MOODLE_TOKEN=<token> in your MCP config

Option B — Username + password (not SSO schools)

If your school uses a regular username/password (not Microsoft/Google/SSO), you can skip the token step entirely:

"env": {
  "MOODLE_URL": "https://moodle.yourschool.edu",
  "MOODLE_USERNAME": "your_username",
  "MOODLE_PASSWORD": "your_password"
}

⚠️ SSO schools: If your school login page redirects to Microsoft, Google, or another identity provider, Option B won't work. Use Option A or C.

Option C — Extract from Moodle mobile app (SSO schools)

  1. Install the Moodle app on your phone and log in with SSO
  2. Go to App settings → About
  3. Tap the version number 5 times to enable developer mode
  4. Go to Developer options → Copy token and copy it
  5. Use that token as MOODLE_TOKEN in Option A

Tools

ToolDescriptionParams
moodle_get_site_infoSchool name, Moodle version, which APIs are enabled
moodle_list_coursesAll your enrolled courses
moodle_get_courseSections and all activities in a coursecourseId
moodle_list_resourcesFiles and links, grouped by course sectioncourseId
moodle_list_assignmentsAssignments with due dates, grouped by sectioncourseId
moodle_get_assignmentSubmission status and grade feedbackassignmentId
moodle_get_gradesFull grade report with categories and feedbackcourseId
moodle_get_calendar_eventsUpcoming events across coursescourseId?, daysAhead?
moodle_list_quizzesQuizzes with time limits and open datescourseId
moodle_get_quiz_attemptsYour past attempt grades and statesquizId
moodle_list_forumsForum activities in a coursecourseId
moodle_get_forum_discussionsRecent discussions in a forumforumId
moodle_get_notificationsRecent notifications (grades, feedback, replies)limit?

Prompts

Use these in any MCP client that supports prompts (Claude Desktop, VS Code with Copilot, etc.):

PromptUse caseExample
summarize-courseFull course overview organized by section/summarize-course courseId=42
whats-duePrioritized due dates this week / next week/whats-due or /whats-due courseId=42
build-study-notesBuild a linked Obsidian vault from course materials/build-study-notes courseId=42 vaultPath=~/obsidian/finals
exam-prepTopic-by-topic study guide based on grades and quiz results/exam-prep courseId=42
search-notesNatural language search across all course files/search-notes courseId=42 query="derivatives and limits"

Obsidian Finals Prep

Turn your entire semester into a linked knowledge graph in one command.

Setup

  1. Install Obsidian (free, works on Mac/Windows/Linux)
  2. Create a new vault, e.g. ~/obsidian/finals
  3. Make sure moodle-mcp is connected to your MCP client

Build the vault

Use the /build-study-notes prompt in Claude Desktop:

/build-study-notes courseId=42 vaultPath=~/obsidian/finals

Or paste this directly into Claude:

Pull my [Course Name] (course ID 42), read all the lecture notes and slides,
and build a linked Obsidian vault at ~/obsidian/finals — one note per topic,
with [[wikilinks]] between related concepts, a MOC.md index, and tags for each section.

Claude will:

  1. Pull all your course sections, files, assignments, and grades
  2. Read each PDF and document directly via the MCP resources protocol
  3. Write one .md file per section with key concepts, definitions, and examples
  4. Add [[wikilinks]] between related terms across notes
  5. Create a MOC.md (Map of Content) index linking everything

See the graph

  1. Open the vault in Obsidian
  2. Click Graph View (sidebar icon or Cmd+G)
  3. Your entire course appears as a knowledge graph — linked concepts cluster together, isolated topics stand out as things to review

Natural language search

Once the vault is built, you can ask Claude to find specific content:

/search-notes courseId=42 query="the central limit theorem and when to use it"

Claude will look through all your course materials, find the relevant files, read them, and synthesize a direct answer.


Compatibility

Some tools require your Moodle admin to enable specific web services. Run moodle_get_site_info to see which tools are available on your school's Moodle.

ToolRequiredNotes
moodle_list_courses, moodle_get_course, moodle_list_resourcesAlways availableCore Moodle WS
moodle_list_assignments, moodle_get_assignmentAdmin must enablemod_assign service
moodle_get_gradesAdmin must enablegradereport_user service
moodle_get_calendar_eventsUsually availablecore_calendar service
moodle_list_quizzes, moodle_get_quiz_attemptsAdmin may need to enablemod_quiz service
moodle_get_forum_discussionsAdmin may need to enablemod_forum service
moodle_get_notificationsAdmin may need to enablemessage_popup service

If a tool isn't available, it returns a helpful message explaining what your admin needs to enable — it won't crash the server.


Contributing

Issues and PRs welcome. Open an issue first for large changes.

MIT License — © 2026 Alexandre Ribeiro

Reviews

No reviews yet

Sign in to write a review