Skip to content
VS Code

Moodle MCP for VS Code

io.github.fabioov/moodle-mcp

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

client:VS Code transport:stdio runtime:npm

Install Moodle MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "mcp-transport",
      "description": "MCP_TRANSPORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "moodle-url",
      "description": "MOODLE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "moodle-token",
      "description": "MOODLE_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "moodle-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@fabioov/moodle-mcp"
      ],
      "env": {
        "MCP_TRANSPORT": "${input:mcp-transport}",
        "MOODLE_URL": "${input:moodle-url}",
        "MOODLE_TOKEN": "${input:moodle-token}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Moodle MCP in other clients