Moodle MCP

v0.1.1
io.github.fabioov/moodle-mcp Checked 22 hours ago Published 26 days ago

Read-only Moodle server: assignments, deadlines, grades, courses, forums, notifications.

Values you need

VariableWhat it is
MCP_TRANSPORToptional Run over stdio for local clients
MOODLE_URLrequired Root URL of your Moodle site, e.g. https://moodle.example.edu
MOODLE_TOKENrequired secret Your Moodle web service token (Preferences > Security keys)

npm (npx)

Requires Node.js 18+

Run in a terminal
claude mcp add moodle-mcp -e 'MOODLE_TOKEN=<MOODLE_TOKEN>' -e 'MOODLE_URL=<MOODLE_URL>' -- npx -y @fabioov/moodle-mcp@0.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "moodle-mcp": {
      "args": [
        "-y",
        "@fabioov/moodle-mcp@0.1.1"
      ],
      "command": "npx",
      "env": {
        "MOODLE_TOKEN": "<MOODLE_TOKEN>",
        "MOODLE_URL": "<MOODLE_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "moodle-mcp": {
      "args": [
        "-y",
        "@fabioov/moodle-mcp@0.1.1"
      ],
      "command": "npx",
      "env": {
        "MOODLE_TOKEN": "<MOODLE_TOKEN>",
        "MOODLE_URL": "<MOODLE_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "MOODLE_TOKEN",
      "id": "moodle-token",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "MOODLE_URL",
      "id": "moodle-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "moodle-mcp": {
      "args": [
        "-y",
        "@fabioov/moodle-mcp@0.1.1"
      ],
      "command": "npx",
      "env": {
        "MOODLE_TOKEN": "${input:moodle-token}",
        "MOODLE_URL": "${input:moodle-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.moodle-mcp]
command = "npx"
args = ["-y", "@fabioov/moodle-mcp@0.1.1"]
env = { "MOODLE_TOKEN" = "<MOODLE_TOKEN>", "MOODLE_URL" = "<MOODLE_URL>" }

For AI agents

  1. Ask the user for: MOODLE_URL, MOODLE_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json