Open-source · Moodle plugin + MCP server

Build your Moodle by talking to AI.

Let an AI assistant read your courses and build real content — pages, quizzes, forums, assignments — from plain-English instructions. No clicking through admin menus.

17 plugin functions · 58 AI tools · Moodle 4.2–5.3 · MIT / GPLv3

conversation

YouAdd a quiz to Biology 101 with a true/false question.

create_quiz { cmid: 42, instanceid: 8 }

add_truefalse_question { questionid: 17, slot: 1 }

✓ Quiz created in Biology 101 with 1 question.

How it works

Two pieces, one token

The plugin adds the activity-creation functions Moodle's core API is missing. The server exposes everything as typed tools for the AI. One web service token connects them.

AI clientClaude Desktop or any MCP client
MCP serverPython · 58 tools over REST
Moodle+ the local_mcpbridge plugin
Overview

Real courses, built from a sentence

The screenshot below is an actual result — a four-course program with its content, created from plain-English prompts.

A Moodle course category with four AI-created courses

“Create a Web Development Bootcamp category with four courses.” — done in seconds.

Capabilities

A full course lifecycle

Everything runs directly against your Moodle through official APIs — real records, not simulations.

Courses & sections

Create single courses or whole programs, organised into categories and sections.

“Create a bootcamp with 4 courses.”

Content activities

Pages, books, labels, URLs, forums, choices and assignments with rich HTML.

“Add a Week 1 page and a Q&A forum.”

Quizzes & questions

Build quizzes with multiple-choice, true/false and short-answer questions.

“Add a 5-question quiz.”

Users & groups

Create users, enrol (single or bulk), unenrol, and manage group membership.

“Enrol these five students.”

Edit & grade

Rewrite page content, move activities, and grade submissions with feedback.

“Grade this 85 with feedback.”

Read & analyse

Grades, deadlines, progress and combined dashboards across courses.

“Show my upcoming deadlines.”
Setup

Four steps to get running

Full instructions are in the README.

01

Install the plugin

Site administration → Plugins → Install plugins → upload mcpbridge.zip and confirm the upgrade.

02

Enable web services and create a token

Turn on web services and the REST protocol, then create a token. This is how the AI authenticates — no password required.

03

Connect the AI client

Run the Python MCP server with your Moodle URL and token, then register it in claude_desktop_config.json.

04

Work by chatting

Describe what you want and the assistant calls the right tools against your live Moodle.

Compatibility & authentication

Any Moodle, any login

Runs on any Moodle 4.2+, self-hosted or institutional. It authenticates with a web service token — not a password — so it is independent of how your users sign in.

Token-based auth

The AI sends a token an admin generates — never a password. It can only do what that user's capabilities allow.

Any login method

SSO/SAML, LDAP, Google/Microsoft OAuth, CAS or manual — all identical. Tokens are a separate channel.

Requirements

Admin access to install the plugin and enable web services. Some managed clouds may not allow custom plugins.