Moodle-MCP
Allows interaction with Moodle LMS, including retrieving upcoming events from a Moodle instance.
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-MCPShow my upcoming events for this week"
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
A Model Context Protocol (MCP) server implementation that provides capabilities to interact with Moodle LMS.
Features
The server exposes the following tools.
Courses & content
Tool | Description |
| Get all courses the current user is enrolled in |
| Get sections and modules for a specific course by its ID |
| Search across all course materials by query string |
| Get announcements from course news forums, optionally filtered by course ID |
| Get recent activity and updates across courses since a given time |
Assignments & deadlines
Tool | Description |
| Get assignments for courses, optionally filtered by course IDs |
| Get submission and grading status for a specific assignment |
| Get upcoming assignment deadlines across all courses, sorted by due date |
| Get unsubmitted assignments past their due date, most overdue first |
| Get a prioritized list of tasks needing action, sorted by urgency |
| Analyze an assignment: status, requirements, materials, progress, deadline |
| Extract requirements, deliverables, constraints, and evaluation criteria from an assignment |
| Find course content relevant to an assignment, ranked by relevance |
| Break an assignment into subtasks with effort, dependencies, and critical path |
| Build a step-by-step plan with timeline, resources, milestones, and risks |
Grades & progress
Tool | Description |
| Get a grade overview for all courses, or detailed grades for one course |
| Get progress and completion for one course or all courses |
| Health check for a course: progress, grades, unsubmitted and overdue counts |
| Analyze assignment distribution by week to identify heavy weeks |
Aggregated overviews
Tool | Description |
| Get upcoming events from Moodle |
| Combined overview of courses, upcoming deadlines, and grades |
| Daily summary of overdue count, today's deadlines, recent grades, events, and tasks |
| Weekly summary of submitted/graded counts, deadlines, overdue count, and progress |
| Ask a natural language question and have it routed to the right data sources |
Related MCP server: Google Calendar MCP Server
API Reference
For available Moodle API functions, please refer to the official documentation.
Setup Instructions
Method 1: Using mcp CLI (recommended)
Create your own
.envfile from.env.exampleAssume you have
uvinstalled, runuv add "mcp[cli]"to install the MCP CLI toolsRun
mcp install main.py -f .envto add the moodle-mcp server to Claude app
Method 2: Using uvx
Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include the following
{
"mcpServers": {
"moodle-mcp": {
"command": "uvx",
"args": ["moodle-mcp"],
"env": {
"MOODLE_URL": "https://{your-moodle-url}/webservice/rest/server.php",
"MOODLE_TOKEN": "{your-moodle-token}"
}
}
}
}Authentication
Getting your Moodle token
Navigate to your Moodle token management page
https://{your-moodle-url}/user/managetoken.phpUse the token with
Moodle mobile web servicein theServicecolumnAdd this token to your
.envfile
This server cannot be installed
Maintenance
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
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/loyaniu/moodle-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server