Moodle-MCP
A Model Context Protocol (MCP) server implementation that provides capabilities to interact with Moodle LMS.
Warning: This project is still in development, only some functions are available.
Features
- [x] Get upcoming events from Moodle
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.example - Assume you have
uvinstalled, runuv add "mcp[cli]"to install the MCP CLI tools - Run
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.php - Use the token with
Moodle mobile web servicein theServicecolumn - Add this token to your
.envfile
Recommend MCP Servers 💡
@shiftengineering/mcp-close-server
Connects to Close.com API, allowing AI assistants to search and retrieve lead and contact information.
gds-agent
An MCP Server that integrates with the Neo4j Graph Data Science (GDS) library, enabling LLMs to perform complex graph reasoning and execute graph algorithms on Neo4j databases.
tritlo/lsp-mcp
An MCP server that lets you interact with LSP servers
rahul-roy-glean/github-mcp-server
An MCP server for the GitHub API, providing functionalities for file operations, repository management, search, issue/PR management, and workflow automation, designed for integration with CI flows.
Microsoft.PowerPlatform.Dataverse.MCP
Microsoft Dataverse MCP Server enables seamless integration between LLM applications and Dataverse, providing intelligent access to tables, records, and knowledge sources, standardizing AI model interaction with Dataverse data.
dbt-docs-mcp
MCP (model context protocol) server for interacting with dbt Docs
