Moodle MCP Server

An MCP (Model Context Protocol) server that enables LLMs to interact with the Moodle platform to manage courses, students, assignments, and quizzes.

Local serverstdio

What is the Moodle MCP Server?

Moodle MCP Server is an MCP project maintained in the peancor/moodle-mcp-server repository. The maintainer describes its purpose as “An MCP (Model Context Protocol) server that enables LLMs to interact with the Moodle platform to manage courses, students, assignments, and quizzes”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using /path/to/node. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares MOODLE_API_URL, MOODLE_API_TOKEN, MOODLE_COURSE_ID. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the Moodle MCP Server

{
  "mcpServers": {
    "moodle-mcp-server": {
      "command": "/path/to/node",
      "args": [
        "/path/to/moodle-mcp-server/build/index.js"
      ],
      "env": {
        "MOODLE_API_URL": "https://your-moodle.com/webservice/rest/server.php",
        "MOODLE_API_TOKEN": "YOUR_MOODLE_API_TOKEN",
        "MOODLE_COURSE_ID": "your_course_id"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
MOODLE_API_URLDeclared in the maintainer’s client configuration.Check documentation
MOODLE_API_TOKENDeclared in the maintainer’s client configuration.Check documentation
MOODLE_COURSE_IDDeclared in the maintainer’s client configuration.Check documentation