G36maid/moodle-mcp
MCP server that lets AI agents operate Moodle: courses, assignments, forums, grades and files-as-markdown.
18bd1777eb0bmoodle-mcp0.2.1 in Cargo.tomlio.github.G36maid/moodle-mcpPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 2 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 1 file reached by the taint walk exceeded the 524288 byte size limit and were read and parsed only up to it
- 1 file exceeded the 524288 byte size limit and were parsed only up to it
- 1 source file could be read only in part
Top risks in plain words
- CRITICAL12 production dependencies have known vulnerabilities (worst: critical).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Update its vulnerable packages
Use
astro7.4.7 or later,cookie0.18.3 or later,rmcp3.9.0 or later,rustix1.1.6 or later and 5 more. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 22 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
call_ws_function, download_file, fetch_file, get_conversations, get_course_overview, get_forum_discussions and 9 moreNo tool was seen to: start other programs on the machine; read or write files; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (22: 22 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
call_ws_functiontool Call any Moodle web service function by name with free-form JSON parameters (advanced escape hatch). Nested arrays/objects are flattened to Moodle's PHP bracketNetwork
Call any Moodle web service function by name with free-form JSON parameters (advanced escape hatch). Nested arrays/objects are flattened to Moodle's PHP bracket notation. The function must be enabled for this token — discover candidates with list_ws_functions. WARNING: destructive functions (delete/block/reset) take effect immediately without confirmation — double-check with the user first.
create_forum_discussiontool Start a new discussion in a forum. WRITE operation — confirm with the user before calling.
Start a new discussion in a forum. WRITE operation — confirm with the user before calling.
download_filetool Download a Moodle file to a local path (metadata only — binary payloads never enter the conversation). Refuses to overwrite an existing save_to unless overwriteNetwork
Download a Moodle file to a local path (metadata only — binary payloads never enter the conversation). Refuses to overwrite an existing save_to unless overwrite=true. Only same-site Moodle URLs are accepted; for external links use your own web tooling (MOODLE_ALLOW_EXTERNAL_FETCH=1 opts out).
fetch_filetool Fetch a Moodle file and return its content as markdown: documents (PDF, Word, PowerPoint, Excel, ODF, RTF, EPUB, CSV), HTML pages and plain text are returned inNetwork
Fetch a Moodle file and return its content as markdown: documents (PDF, Word, PowerPoint, Excel, ODF, RTF, EPUB, CSV), HTML pages and plain text are returned inline; other binaries (zip, images) are rejected — use download_file instead. Only same-site Moodle URLs are accepted; for external links use your own web tooling (MOODLE_ALLOW_EXTERNAL_FETCH=1 opts out).
get_assignmenttool Get everything about one assignment as a markdown document: times, draft/attempt state, full description, attachments (with URLs), your submission (text/files),
Get everything about one assignment as a markdown document: times, draft/attempt state, full description, attachments (with URLs), your submission (text/files), grade and teacher feedback. Check draft_required here before submit_assignment — it decides whether finalize=true is needed. assignment_id comes from get_course_overview or get_grades.
get_conversationstool Get your messaging conversations (display name, unread state, last message, member ids for send_message).Network
Get your messaging conversations (display name, unread state, last message, member ids for send_message).
get_course_overviewtool Get the full map of one course as a markdown document: every section with its summary text (lecture links, instructions, notices), activity descriptions (the asNetwork
Get the full map of one course as a markdown document: every section with its summary text (lecture links, instructions, notices), activity descriptions (the assignment specs), files (download URLs included), plus assignments, quizzes, forums and graded items. Restricted or hidden items are marked as such. The hub for anything about one course — assignment_id, quiz_id and forum_id for the per-item tools all come from here. course_id comes from list_courses.
get_discussion_poststool Read a whole discussion thread: the opening post and every reply in order, with author, timestamps, converted message text and post attachments. Each post's pos
Read a whole discussion thread: the opening post and every reply in order, with author, timestamps, converted message text and post attachments. Each post's post_id is the reply target for reply_to_discussion; discussion_id comes from get_forum_discussions.
get_forum_discussionstool List the discussions in one forum (subject, preview of the opening post, author, replies, pinned/locked); each row's discussion_id opens get_discussion_posts anNetwork
List the discussions in one forum (subject, preview of the opening post, author, replies, pinned/locked); each row's discussion_id opens get_discussion_posts and opening_post_id targets reply_to_discussion. forum_id comes from get_course_overview.
get_gradestool Get grades: without course_id, a cross-course summary of final grades; with course_id, every grade item of that course (quizzes, manual items, course total) witNetwork
Get grades: without course_id, a cross-course summary of final grades; with course_id, every grade item of that course (quizzes, manual items, course total) with ranges, weights and teacher feedback. Assignment items carry assignment_id for direct chaining into get_assignment.
get_notificationstool Get your recent notifications (announcements, grade releases, teacher messages); for two-way conversations use get_conversations.Network
Get your recent notifications (announcements, grade releases, teacher messages); for two-way conversations use get_conversations.
get_quiz_attemptstool Get your attempts on a quiz: state, start/finish times, total marks. quiz_id comes from get_course_overview. Quiz-taking itself is intentionally not provided.Network
Get your attempts on a quiz: state, start/finish times, total marks. quiz_id comes from get_course_overview. Quiz-taking itself is intentionally not provided.
get_scheduletool Get your timeline of deadlines: assignment due dates, quiz closes and calendar events in a single list, sorted by time. Defaults to the next 30 days across all Network
Get your timeline of deadlines: assignment due dates, quiz closes and calendar events in a single list, sorted by time. Defaults to the next 30 days across all enrolled courses.
get_usertool Look up one user's profile by an exact id, username, email or idnumber — resolves ids from conversations, notifications and forum posts into names/emails; for k
Look up one user's profile by an exact id, username, email or idnumber — resolves ids from conversations, notifications and forum posts into names/emails; for keyword search use search_users. Whether other students' profiles are visible is the site's privacy policy.
list_coursestool List the courses you are enrolled in (course_id, name, dates, progress), optionally filtered by name. The starting point of navigation: course_id feeds get_courNetwork
List the courses you are enrolled in (course_id, name, dates, progress), optionally filtered by name. The starting point of navigation: course_id feeds get_course_overview, course_ids feed get_schedule.
list_ws_functionstool Search the Moodle WS functions this token may call (case-insensitive substring, e.g. 'wiki', 'forum', 'assign'). Matches can then be executed via call_ws_functiNetwork
Search the Moodle WS functions this token may call (case-insensitive substring, e.g. 'wiki', 'forum', 'assign'). Matches can then be executed via call_ws_function.
reply_to_discussiontool Reply to a forum post (replying to the opening post = replying to the thread). WRITE operation — confirm with the user before calling.
Reply to a forum post (replying to the opening post = replying to the thread). WRITE operation — confirm with the user before calling.
search_userstool Search users by a keyword (a name or username fragment). May be permission-denied for student accounts (the error will say so); for exact-id lookups use get_useNetwork
Search users by a keyword (a name or username fragment). May be permission-denied for student accounts (the error will say so); for exact-id lookups use get_user.
send_messagetool Send a direct message to a user. WRITE operation — the message is sent as you; draft it and confirm with the user before calling.
Send a direct message to a user. WRITE operation — the message is sent as you; draft it and confirm with the user before calling.
submit_assignmenttool Submit an assignment: online text and/or draft files (item_id from upload_file). Set finalize=true only when the assignment enables draft submissions (see get_a
Submit an assignment: online text and/or draft files (item_id from upload_file). Set finalize=true only when the assignment enables draft submissions (see get_assignment). WRITE operation — confirm with the user before calling.
upload_filetool Upload a local file to the user's draft file area and return the draft item_id for submit_assignment. Multiple files: call repeatedly with the same item_id. WRINetwork
Upload a local file to the user's draft file area and return the draft item_id for submit_assignment. Multiple files: call repeatedly with the same item_id. WRITE operation — confirm with the user before calling.
whoamitool Identify the token owner (user_id, username, fullname) and the connected Moodle site/release, plus the active timestamp timezone, read-only mode, and this MCP sNetwork
Identify the token owner (user_id, username, fullname) and the connected Moodle site/release, plus the active timestamp timezone, read-only mode, and this MCP server's version. Also a quick connectivity check: if this fails, the site URL or token is usually wrong.
Text the model reads (22)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
whoami tool
Identify the token owner (user_id, username, fullname) and the connected Moodle site/release, plus the active timestamp timezone, read-only mode, and this MCP server's version. Also a quick connectivity check: if this fails, the site URL or token is usually wrong.
list_courses tool
List the courses you are enrolled in (course_id, name, dates, progress), optionally filtered by name. The starting point of navigation: course_id feeds get_course_overview, course_ids feed get_schedule.
get_course_overview tool
Get the full map of one course as a markdown document: every section with its summary text (lecture links, instructions, notices), activity descriptions (the assignment specs), files (download URLs included), plus assignments, quizzes, forums and graded items. Restricted or hidden items are marked as such. The hub for anything about one course — assignment_id, quiz_id and forum_id for the per-item tools all come from here. course_id comes from list_courses.
get_forum_discussions tool
List the discussions in one forum (subject, preview of the opening post, author, replies, pinned/locked); each row's discussion_id opens get_discussion_posts and opening_post_id targets reply_to_discussion. forum_id comes from get_course_overview.
get_discussion_posts tool
Read a whole discussion thread: the opening post and every reply in order, with author, timestamps, converted message text and post attachments. Each post's post_id is the reply target for reply_to_discussion; discussion_id comes from get_forum_discussions.
create_forum_discussion tool
Start a new discussion in a forum. WRITE operation — confirm with the user before calling.
reply_to_discussion tool
Reply to a forum post (replying to the opening post = replying to the thread). WRITE operation — confirm with the user before calling.
get_assignment tool
Get everything about one assignment as a markdown document: times, draft/attempt state, full description, attachments (with URLs), your submission (text/files), grade and teacher feedback. Check draft_required here before submit_assignment — it decides whether finalize=true is needed. assignment_id comes from get_course_overview or get_grades.
submit_assignment tool
Submit an assignment: online text and/or draft files (item_id from upload_file). Set finalize=true only when the assignment enables draft submissions (see get_assignment). WRITE operation — confirm with the user before calling.
get_grades tool
Get grades: without course_id, a cross-course summary of final grades; with course_id, every grade item of that course (quizzes, manual items, course total) with ranges, weights and teacher feedback. Assignment items carry assignment_id for direct chaining into get_assignment.
get_schedule tool
Get your timeline of deadlines: assignment due dates, quiz closes and calendar events in a single list, sorted by time. Defaults to the next 30 days across all enrolled courses.
get_notifications tool
Get your recent notifications (announcements, grade releases, teacher messages); for two-way conversations use get_conversations.
get_conversations tool
Get your messaging conversations (display name, unread state, last message, member ids for send_message).
send_message tool
Send a direct message to a user. WRITE operation — the message is sent as you; draft it and confirm with the user before calling.
get_user tool
Look up one user's profile by an exact id, username, email or idnumber — resolves ids from conversations, notifications and forum posts into names/emails; for keyword search use search_users. Whether other students' profiles are visible is the site's privacy policy.
search_users tool
Search users by a keyword (a name or username fragment). May be permission-denied for student accounts (the error will say so); for exact-id lookups use get_user.
get_quiz_attempts tool
Get your attempts on a quiz: state, start/finish times, total marks. quiz_id comes from get_course_overview. Quiz-taking itself is intentionally not provided.
fetch_file tool
Fetch a Moodle file and return its content as markdown: documents (PDF, Word, PowerPoint, Excel, ODF, RTF, EPUB, CSV), HTML pages and plain text are returned inline; other binaries (zip, images) are rejected — use download_file instead. Only same-site Moodle URLs are accepted; for external links use your own web tooling (MOODLE_ALLOW_EXTERNAL_FETCH=1 opts out).
download_file tool
Download a Moodle file to a local path (metadata only — binary payloads never enter the conversation). Refuses to overwrite an existing save_to unless overwrite=true. Only same-site Moodle URLs are accepted; for external links use your own web tooling (MOODLE_ALLOW_EXTERNAL_FETCH=1 opts out).
upload_file tool
Upload a local file to the user's draft file area and return the draft item_id for submit_assignment. Multiple files: call repeatedly with the same item_id. WRITE operation — confirm with the user before calling.
call_ws_function tool
Call any Moodle web service function by name with free-form JSON parameters (advanced escape hatch). Nested arrays/objects are flattened to Moodle's PHP bracket notation. The function must be enabled for this token — discover candidates with list_ws_functions. WARNING: destructive functions (delete/block/reset) take effect immediately without confirmation — double-check with the user first.
list_ws_functions tool
Search the Moodle WS functions this token may call (case-insensitive substring, e.g. 'wiki', 'forum', 'assign'). Matches can then be executed via call_ws_function.
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 22 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 22 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 22 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 22 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 22 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 22 capabilities; 22 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 22 capabilities; 22 more call code the scanner could not follow, where it may happen
- Tools that call the network15 of 22 capabilities call the network; 7 more call code the scanner could not follow, where it may happen
Where the code is: 22 handlers in 1 file at commit 18bd1777eb0b
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests2 manifests: Cargo.toml, site/package.json
- Lockfiles checked against OSV2 files resolved and checked against the OSV database
- Known vulnerabilities in production dependencies CRITICAL12 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionrmcp 3.5
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 22 capabilities; 22 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (12 in production)
zipcrates.io 8.6.0 CRITICAL 13 advisories 9.0.09.0.5
- CRITICALGHSA-m665-v7pm-7grj CVE-2026-115905 RUSTSEC-2026-0548zip: Critical Parser Differential & Security Control Bypass via Dual-Header Inconsistencies (Zip Cloaking) Leading to Arbitrary File Overwrite & RCE
- HIGHGHSA-hjqx-j4rw-g7xv CVE-2026-115908 RUSTSEC-2026-0546zip: Arbitrary file write outside the extraction directory, because ZipArchive::extract validates symlink targets lexically.
- HIGHGHSA-q7v9-x93c-xqv3 CVE-2026-115909 RUSTSEC-2026-0429zip: Unbounded Symlink-Target Handling Can Abort Or Exhaust Memory During Extraction
- HIGHGHSA-9hj8-73fh-9963 CVE-2026-115907 RUSTSEC-2026-0547zip: legacy Shrink/Reduce/Implode decoder: denial of service from attacker-controlled ZIP64 uncompressed size
- MEDIUMRUSTSEC-2026-0545 CVE-2026-115906 GHSA-8hxf-qr8p-62x4AES entries returned without checking their authentication code when the data ends early or is empty
- MEDIUMRUSTSEC-2026-0429 CVE-2026-115909 GHSA-q7v9-x93c-xqv3zip: `ZipArchive::extract` aborts the process on a symlink entry with a large declared size
- MEDIUMRUSTSEC-2026-0546 CVE-2026-115908 GHSA-hjqx-j4rw-g7xv`ZipArchive::extract` can write outside the destination through absolute or chained symlink targets
- MEDIUMRUSTSEC-2026-0367 GHSA-vv5m-jxxh-4627 Insecure Preservation of SUID/SGID Bits during ZIP Extraction Leading to Potential Privilege Escalation
- MEDIUMRUSTSEC-2026-0368 GHSA-4v9h-p7m9-rh26zip: `ZipArchive::extract` creates symbolic links whose attacker-controlled targets are outside the destination directory
- MEDIUMRUSTSEC-2026-0547 CVE-2026-115907 GHSA-9hj8-73fh-9963Legacy Shrink, Reduce and Implode decoders preallocate the declared uncompressed size
- MEDIUMGHSA-8hxf-qr8p-62x4 CVE-2026-115906 RUSTSEC-2026-0545zip: AES Entry HMAC Authentication Bypass on Premature EOF
- MEDIUMRUSTSEC-2026-0369 GHSA-4684-h2q9-2vcpZipStreamReader::extract() and ZipArchive::extract() apply Unix permissions through symlinks without confining the target
- MEDIUMRUSTSEC-2026-0548 CVE-2026-115905 GHSA-m665-v7pm-7grj`ZipStreamReader` extracts entries under local-header names that can differ from the central directory
rmcpcrates.io 3.5.1 MEDIUM 3 advisories 3.6.03.7.03.9.0
- MEDIUMRUSTSEC-2026-0461 GHSA-4432-vg92-fqh6Unbounded tool schema cache in Streamable HTTP server transport
- MEDIUMRUSTSEC-2026-0462 GHSA-c9f9-cp8h-jcj5Unbounded response body buffering in Streamable HTTP clients
- MEDIUMRUSTSEC-2026-0457 GHSA-5p52-q7pq-9fq2OAuth client SSRF filter checks host strings, not resolved addresses
astronpm 7.4.0 MEDIUM 2 advisories 7.4.57.4.7
- MEDIUMGHSA-r3h5-4585-7x3w CVE-2026-126364Astro: Image endpoint in @astrojs/node can read files from a case-variant sibling of the output directory on case-sensitive filesystems
- LOWGHSA-mh32-jxcr-mh9f CVE-2026-126361Astro: XSS via attribute injection in dynamic tag names
chronocrates.io 0.4.45 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0543chrono is unmaintained
chrono-tzcrates.io 0.10.4 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0555chrono-tz is unmaintained
cookiecrates.io 0.18.1 MEDIUM 1 advisory 0.12.00.18.3
- MEDIUMRUSTSEC-2026-0594 GHSA-8wcq-xq25-7fhmPrivate cookie nonces can repeat in processes that fork
rustixcrates.io 1.1.5 MEDIUM 1 advisory 1.1.6
- MEDIUMRUSTSEC-2026-0486 GHSA-jh2m-fhpj-3vr7xattr functions mark unwritten bytes as initialized when given a zero-length buffer
rustls-webpkicrates.io 0.103.15 MEDIUM 1 advisory 0.103.160.104.0-alpha.8
- MEDIUMRUSTSEC-2026-0382 BIT-golang-2026-111943 CVE-2026-111943 GO-2026-6809 RUSTSEC-2026-0381 RUSTSEC-2026-0383Certificate verification may accept distrusted intermediates
tokiocrates.io 1.53.2 MEDIUM 1 advisory 1.51.61.53.3
- MEDIUMRUSTSEC-2026-0386`AsyncFd::new` and related constructors violate I/O safety
ttf-parsercrates.io 0.25.1 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0192`ttf-parser` is unmaintained
urlcrates.io 2.5.8 MEDIUM 1 advisory 2.5.9
- MEDIUMRUSTSEC-2026-0592 GHSA-hrj5-67jp-wqp9Stack overflow in `Url::origin()` on nested `blob:` URLs
webpki-root-certscrates.io 1.0.9 MEDIUM 1 advisory 0.26.111.0.10
- MEDIUMRUSTSEC-2026-0383 BIT-golang-2026-111943 CVE-2026-111943 GO-2026-6809 RUSTSEC-2026-0381 RUSTSEC-2026-0382Bundled root certificates allow trust in distrusted emSign intermediates
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | rmcp 3.5 |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-10-20 |
| Signed releases | not checked yet |
Where it is published
| MCP Registry | io.github.G36maid/moodle-mcp |
|---|---|
| Listed in | 4 catalogs (github_search, glama, mcp_registry, mcp_toplist) |
| License | MIT |
| Created | 2026-10-12 |
| Topics | llm mcp model-context-protocol moodle rust |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.