Skip to content
MCP server
Registry

moodle-mcp MCP Server

Moodle MCP server for teachers: review assignment submissions, grade and give feedback; SSO login

moodle-mcp scores 70 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 6 tools. Filed under Uncategorized. GitHub shows 1 stars. Package registries report about 903 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by av-leschinskiyMITTypeScript1 stars
Trust score
70Good
Trust score 70 of 100, Good

Good trust

70 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 70 comes from

22 + 20 + 4 + 10 + 4 + 10 = 70. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity4 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 4 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "av-leschinskiy-moodle-mcp": {      "command": "npx",      "args": [        "-y",        "@av-leschinskiy/moodle-mcp@0.6.0"      ],      "env": {        "MOODLE_URL": "",        "MOODLE_TOKEN_FILE": "",        "MOODLE_TOKEN": "YOUR_MOODLE_TOKEN",        "MOODLE_TIMEOUT": "",        "MOODLE_EDITOR_PORT": "",        "MOODLE_CHROME": "",        "MOODLE_DEBUG": ""      }    }  }}

Environment variables

NameRequiredNotes
MOODLE_URLRequiredMoodle site address (wwwroot), e.g. https://moodle.example.org
MOODLE_TOKEN_FILEOptionalWhere moodle-mcp-login saves the token (path is resolved via homedir())
MOODLE_TOKENSecretOptionalWeb service token override (CI / smoke tests)
MOODLE_TIMEOUTOptionalTimeout of a single API request (ms)
MOODLE_EDITOR_PORTOptionalLoopback debugging port of the dedicated, signed-in Chrome for material editing
MOODLE_CHROMEOptionalChrome/Chromium binary for moodle-mcp-login (looked up in PATH by default)
MOODLE_DEBUGOptional1/true/yes/on enables debug output to stderr and debug level in the host log channel

Tools6Tool docs quality grade F

All capabilities

About

Moodle MCP Server

An MCP server for AI assistants (Claude Code, Cursor, Codex and other stdio clients) on top of the Moodle web services REST API. It is built for teachers: the assistant can see courses, assignments and student submissions, download submission files, and save a grade with feedback, acting as the teacher and only after the teacher confirms. Unlike student-oriented Moodle MCP servers, the focus here is reviewing assignments and grading.

The server works with any Moodle site that has the mobile web service (moodle_mobile_app) enabled: the token is issued the same way as for the Moodle mobile app, so login through an external OAuth provider with a captcha works too.

Prerequisites

  • Node.js ≥ 22.
  • Google Chrome or Chromium, for the moodle-mcp-login command.
  • Mobile app access enabled on the Moodle site (Site administration → Mobile app). To check: <site>/admin/tool/mobile/launch.php should open rather than return an error.

Quick start

The example below uses https://moodle.example.org; replace it with your Moodle address exactly as it appears in the browser (scheme, host, path; a trailing slash does not matter).

  1. Log in, once per machine and again whenever a tool returns a login error (Moodle login and server token, in Russian):

    MOODLE_URL=https://moodle.example.org npx -y -p @av-leschinskiy/moodle-mcp moodle-mcp-login
    

    A Chrome window opens: log in to the site as usual and solve the captcha yourself. The command prints Logged in as <name> on <site> and closes the window. Without -p, npx would start the server instead of the login command. Chrome is looked up in PATH; on macOS and Windows, set its path in MOODLE_CHROME.

  2. Add the server to your client. Claude Code:

    claude mcp add moodle -e MOODLE_URL=https://moodle.example.org -- npx -y @av-leschinskiy/moodle-mcp
    

    Add -s user to enable it for all projects; without it, only for the current one.

    Codex, with a command or a block in ~/.codex/config.toml:

    codex mcp add moodle --env MOODLE_URL=https://moodle.example.org -- npx -y @av-leschinskiy/moodle-mcp
    
    [mcp_servers.moodle]
    command = "npx"
    args = ["-y", "@av-leschinskiy/moodle-mcp"]
    env = { MOODLE_URL = "https://moodle.example.org" }
    

    Cursor and other clients: a stdio server with the command npx -y @av-leschinskiy/moodle-mcp and the MOODLE_URL variable:

    {
      "mcpServers": {
        "moodle": {
          "command": "npx",
          "args": ["-y", "@av-leschinskiy/moodle-mcp"],
          "env": { "MOODLE_URL": "https://moodle.example.org" }
        }
      }
    }
    
  3. Check: ask the assistant "show my Moodle courses".

From a repository clone, use node <clone>/dist/index.js and node <clone>/dist/cli/login.js instead of npx: dist/ is committed, no build is needed.

What's inside

24 tools in total; 6 of them require user confirmation.

CategoryToolsConfirmationCovers
Site3—who I am, Moodle version, available functions, my courses
Assignments and submissions5—course assignments, participants and submission statuses, what needs the teacher across a course, full submission
Course materials3—ordered course outline, pages and feedback survey aggregates
Submission history1—compare two attempts, online text, previous feedback and attachments
Course copies1—compare material titles, dates and link targets across two courses
Material editing21preview and apply changes through signed-in Chrome
Participant progress1—course gradebook and passing thresholds
Files2—downloading submission files to disk
Grading65grade and feedback, submission comment, returning a submission for rework

Site

  • moodle_list_courses
  • moodle_search_participants
  • moodle_site_info

Assignments and submissions

  • moodle_get_assignment
  • moodle_get_submission
  • moodle_list_assignments
  • moodle_list_pending_submissions
  • moodle_list_submissions

Course materials

  • moodle_get_course_contents
  • moodle_get_feedback_summary
  • moodle_get_page

Submission history

  • moodle_compare_submission_attempts

Course copies

  • moodle_compare_course_materials

Material editing

  • moodle_apply_material_edit — confirmation
  • moodle_preview_material_edit

Participant progress

  • moodle_get_participant_progress

Files

  • moodle_download_file
  • moodle_download_submission_files

Grading

  • moodle_add_submission_comment — confirmation
  • moodle_get_resubmission_window
  • moodle_grant_extension — confirmation
  • moodle_return_submission_with_reason — confirmation
  • moodle_revert_submission_to_draft — confirmation
  • moodle_save_grade — confirmation

Moodle checks the token's service functions and your permissions for the selected course or activity. To edit course materials, open a dedicated Chrome profile with remote debugging on the local port from Configuration and sign in as the same Moodle user. Review the proposed title, HTML, files and upload hashes before confirming the edit. If the preview expires or the material changes, request a fresh preview. Student-visible writes are marked in the tool table above.

When grading, keep the gradingState returned by moodle_get_submission with the work being reviewed. Pass that original value as expectedState to moodle_save_grade after teacher approval. A conflict identifies which part changed. Review the updated submission and obtain approval for the revised decision. This check and the write are separate Moodle requests. The write targets the specific attempt the teacher reviewed.

Responses are trimmed for the model context: HTML in descriptions and submissions is converted to plain text, times to ISO, a grade that is not set to null, and participant emails are never returned.

Configuration

VariableRequiredDefaultDescription
MOODLE_URLyes—Moodle site address (wwwroot), e.g. https://moodle.example.org
MOODLE_TOKEN_FILE—~/.config/mcp-moodle/token.jsonWhere moodle-mcp-login saves the token (path is resolved via homedir())
MOODLE_TOKEN——Web service token override (CI / smoke tests)
MOODLE_TIMEOUT—30000Timeout of a single API request (ms)
MOODLE_EDITOR_PORT—9222Loopback debugging port of the dedicated, signed-in Chrome for material editing
MOODLE_CHROME——Chrome/Chromium binary for moodle-mcp-login (looked up in PATH by default)
MOODLE_DEBUG—false1/true/yes/on enables debug output to stderr and debug level in the host log channel

The token file has 0600 permissions and stores the site address it was issued for: if it does not match MOODLE_URL, the server asks you to run moodle-mcp-login. The server reads the file on every request, so there is no need to restart the host after logging in again. The token is scrubbed from error messages, logs and tool responses (including file URLs).

The Chrome profile used for login is kept separate from your main one (~/.config/mcp-moodle/chrome-profile): site cookies persist, so logging in again often works without a password.

Development

npm install        # also enables the git hooks (.githooks)
npm run dev        # tsx, no compilation
npm run build      # native TypeScript 7 → dist/
npm run verify     # typecheck + lint + tests + docs check
MOODLE_URL=… npm run smoke   # read-only tool chain against a live Moodle

Build only with npm run build: devDependencies contain two compiler versions, details. dist/ is committed; the pre-commit hook builds and stages it, bumps the patch version and regenerates the tables above. Architecture and rules are in AGENTS.md (in Russian).

Frequently asked questions

What is moodle-mcp MCP Server?

Moodle MCP server for teachers: review assignment submissions, grade and give feedback; SSO login

How do I install moodle-mcp MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. moodle-mcp MCP Server runs locally from the npm package @av-leschinskiy/moodle-mcp with the command npx -y @av-leschinskiy/moodle-mcp@0.6.0.

Is moodle-mcp MCP Server free and open source?

Yes. moodle-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does moodle-mcp MCP Server support remote (HTTP) connections?

No remote endpoint is listed for moodle-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does moodle-mcp MCP Server provide?

moodle-mcp MCP Server provides 6 tools, including moodle_add_submission_comment, moodle_apply_material_edit, moodle_grant_extension, and moodle_return_submission_with_reason. See the full tool list for descriptions and parameters.

How is moodle-mcp MCP Server's trust score calculated?

moodle-mcp MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server