moodle-mcp
Provides full access to Moodle learning management systems, enabling tools for retrieving courses, files, assignments, grades, quizzes, calendar events, forums, and notifications from educational institutions.
Enables building linked Obsidian knowledge vaults from course materials, creating wikilinks between concepts, generating study notes, and performing natural language searches across course content.
Click on "Install 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-mcpwhat assignments are due this week for my calculus course?"
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-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-mcpOr install globally:
npm install -g moodle-mcp2. Get your token → see 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)
Log in to your school's Moodle in a browser
Go to Profile → Security keys (URL:
https://moodle.yourschool.edu/user/managetoken.php)Find the Moodle mobile web service token and copy it
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)
Install the Moodle app on your phone and log in with SSO
Go to App settings → About
Tap the version number 5 times to enable developer mode
Go to Developer options → Copy token and copy it
Use that token as
MOODLE_TOKENin Option A
Tools
Tool | Description | Params |
| School name, Moodle version, which APIs are enabled | — |
| All your enrolled courses | — |
| Sections and all activities in a course |
|
| Files and links, grouped by course section |
|
| Assignments with due dates, grouped by section |
|
| Submission status and grade feedback |
|
| Full grade report with categories and feedback |
|
| Upcoming events across courses |
|
| Quizzes with time limits and open dates |
|
| Your past attempt grades and states |
|
| Forum activities in a course |
|
| Recent discussions in a forum |
|
| Recent notifications (grades, feedback, replies) |
|
Prompts
Use these in any MCP client that supports prompts (Claude Desktop, VS Code with Copilot, etc.):
Prompt | Use case | Example |
| Full course overview organized by section |
|
| Prioritized due dates this week / next week |
|
| Build a linked Obsidian vault from course materials |
|
| Topic-by-topic study guide based on grades and quiz results |
|
| Natural language search across all course files |
|
Obsidian Finals Prep
Turn your entire semester into a linked knowledge graph in one command.
Setup
Install Obsidian (free, works on Mac/Windows/Linux)
Create a new vault, e.g.
~/obsidian/finalsMake sure
moodle-mcpis connected to your MCP client
Build the vault
Use the /build-study-notes prompt in Claude Desktop:
/build-study-notes courseId=42 vaultPath=~/obsidian/finalsOr 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:
Pull all your course sections, files, assignments, and grades
Read each PDF and document directly via the MCP resources protocol
Write one
.mdfile per section with key concepts, definitions, and examplesAdd
[[wikilinks]]between related terms across notesCreate a
MOC.md(Map of Content) index linking everything
See the graph
Open the vault in Obsidian
Click Graph View (sidebar icon or
Cmd+G)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.
Tool | Required | Notes |
| Always available | Core Moodle WS |
| Admin must enable |
|
| Admin must enable |
|
| Usually available |
|
| Admin may need to enable |
|
| Admin may need to enable |
|
| Admin may need to enable |
|
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
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/1alexandrer/moodle-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server