moodle-mcp-server-aql
v0.1.6Query Moodle LMS data through natural language.
Values you need
| Variable | What it is | |
|---|---|---|
MOODLE_URL | required | Base URL for the Moodle instance to query. |
MOODLE_TOKEN | required secret | Moodle Web Services API token. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add moodle-mcp-server-aql -e 'MOODLE_TOKEN=<MOODLE_TOKEN>' -e 'MOODLE_URL=<MOODLE_URL>' -- npx -y --package=moodle-mcp-server-aql@0.1.6 moodle-mcp-serverAdd to
claude_desktop_config.json{
"mcpServers": {
"moodle-mcp-server-aql": {
"args": [
"-y",
"--package=moodle-mcp-server-aql@0.1.6",
"moodle-mcp-server"
],
"command": "npx",
"env": {
"MOODLE_TOKEN": "<MOODLE_TOKEN>",
"MOODLE_URL": "<MOODLE_URL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"moodle-mcp-server-aql": {
"args": [
"-y",
"--package=moodle-mcp-server-aql@0.1.6",
"moodle-mcp-server"
],
"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-server-aql": {
"args": [
"-y",
"--package=moodle-mcp-server-aql@0.1.6",
"moodle-mcp-server"
],
"command": "npx",
"env": {
"MOODLE_TOKEN": "${input:moodle-token}",
"MOODLE_URL": "${input:moodle-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.moodle-mcp-server-aql]
command = "npx"
args = ["-y", "--package=moodle-mcp-server-aql@0.1.6", "moodle-mcp-server"]
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.
- Verify: the server should expose these tools: list_courses, get_course, list_course_users, list_assignments, get_site_info, list_categories, get_user, list_user_courses, ….
- 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