Moodle MCP
v0.1.1Read-only Moodle server: assignments, deadlines, grades, courses, forums, notifications.
Values you need
| Variable | What it is | |
|---|---|---|
MCP_TRANSPORT | optional | Run over stdio for local clients |
MOODLE_URL | required | Root URL of your Moodle site, e.g. https://moodle.example.edu |
MOODLE_TOKEN | required 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.1Add 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
- Ask the user for: MOODLE_URL, MOODLE_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- 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