Install and connect

For the Moodle administrator: install the plugin, choose the authentication mode, open the access gate, then connect the assistants. The plugin installs closed: nothing happens until these steps are done.

Install the plugin

  1. Requirements

    Moodle 4.1 to 5.3, PHP 8.1 or later, site served over https. Moodle 4.1 no longer gets security fixes since 8 December 2025: prefer 4.5 LTS or 5.x. Take a backup, as before any plugin installation.

  2. Upload the zip

    Site administration > Plugins > Install plugins, upload the zip (about 3 MB) and follow the screens. On the server: unzip into local/mcpcourse (public/local/mcpcourse from Moodle 5.1).

  3. Check

    The plugin installs closed: gateway mode without secrets, empty access gate, only the course content family on, _EDITABLE marker required.

Get the plugin: coming soon on Moodle Marketplace; until then, on request, with its SHA-256 checksum: souphianejender@gmail.com

Choose the authentication mode

Self-hosted OAuth (recommended)

Moodle becomes its own OAuth 2.1 authorization server. Each person authorizes their assistant in their browser, signed in to Moodle as usual (SSO included). No password or secret is given to the assistant.

  • Add the two /.well-known/… rules that the page "Check the OAuth configuration" computes for Apache, Nginx or Caddy.
  • Run the check: every line must be green, then choose the OAuth mode.
  • Host that does not accept these rules: link the site to the discovery relay (central registration, below).

Gateway

An external gateway authenticates the person and signs their identity on every request (HMAC-SHA256, single-use nonce). For institutions that already run such infrastructure; the gateway is not shipped with the plugin.

Personal API keys

For a client that speaks neither OAuth nor through a gateway (a script, a command-line tool), each person can create their own keys, on top of the chosen mode. The setting “Accept API keys” is off by default.

  • Each person creates their own on “My API keys” (editing teachers and managers by default): a name, a scope, read only or read and write, and a mandatory expiry (90 days by default, 365 at most). The key is shown once.
  • The same barriers as everything else: the key acts for its owner, under the access gate and its level, the families, _EDITABLE, the Moodle permissions, the log and the emergency cut-off.
  • People revoke their own keys; the administrator sees and revokes every key of the site. No key is ever created for someone else.

An institutional sync with no person behind it: no site key, but a dedicated Moodle account with a narrow role, let through the gate by name at the read level, which creates its own read-only key (administrator guide, §3.7).

Open the access gate

The gate decides who may use the connector, on every request. Two levels: read, or read and write. A level only restricts: Moodle permissions always apply on top.

  • By role: for instance tick "Teacher" at the read level to start.
  • By person: the page "Users allowed" adds volunteers one by one, each with their level.
  • Then open the useful families (grading, enrolments, communication…), and only those.

Tool families

Only course_activity_work (course content) is on by default. The others — grading, grade release, enrolments, groups, cohorts, calendar and communication, completion, competencies, site accounts, reports, storage, certificates — are opened one by one in the settings.

Connect the assistants

The address to give is always https://<your Moodle>/local/mcpcourse/mcp.php. In OAuth mode the assistant discovers the rest and opens a Moodle page where the person signs in and clicks Allow. Which plans allow a custom MCP connector depends on the provider and the subscription.

Claude (web and desktop)

  1. Connector settings: add a custom connector.
  2. Paste the connector address, then sign in to Moodle and allow.

ChatGPT

  1. Add a custom MCP connector (depending on your plan, in developer mode).
  2. Paste the address, choose OAuth, then allow in Moodle.

Mistral Le Chat

  1. Connectors: add a custom MCP connector with the address and OAuth authentication.
  2. Allow in Moodle.

If the client registers through dynamic client registration (DCR), the administrator ticks "Accept dynamic client registration".

Claude Code

  1. claude mcp add --transport http moodle https://<your Moodle>/local/mcpcourse/mcp.php
  2. Then /mcp in Claude Code: the browser opens the Moodle authorization page.

Other MCP clients

  1. The plugin follows the MCP specification (Streamable HTTP, OAuth 2.1).
  2. A client that identifies itself neither by a metadata document nor by dynamic registration can be declared by the administrator on the "OAuth clients" page.

Suggested first try: "What can you do on this Moodle site?" The assistant describes your role, your access level and the open families.

Central registration

Your host does not let you add the /.well-known/… rules? The central service publishes the public OAuth discovery document for your site. The link is made from the plugin's "Link to the discovery relay" page, with a button or a manual registration. Only public information about the site goes through it; sign-ins, tokens and data go straight from the assistant to your Moodle.

Open the central registration

Moodle Marketplace

The listing of the plugin on Moodle Marketplace is being prepared. Until then, the plugin is provided on request.

Coming soon