# Moodle MCP

> Moodle MCP is an MCP server for education and exams. Let a teacher's AI assistant review Moodle submissions and save confirmed grades. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI
- **Repository:** https://github.com/av-leschinskiy/moodle-mcp
- **MCP Registry name:** io.github.av-leschinskiy/moodle-mcp
- **Categories:** [education and exams](https://ai-powered.com/categories/education-and-exams)
- **Listing updated:** 2026-11-23

## About

The server is aimed at teachers rather than students: its ten tools list courses and assignments, show who still needs attention across a course, read a full submission, download submission files to disk and write back grades and comments. The three writing tools, saving a grade with feedback, adding a submission comment and returning a submission to draft, are flagged as destructive so the client asks for confirmation.

It uses Moodle's mobile web service, so any site with mobile app access enabled works, including ones that log in through an external OAuth provider with a captcha. A separate moodle-mcp-login command opens Chrome for you to sign in and stores a token file with 0600 permissions. Responses turn HTML into plain text and never return participant emails. It needs Node 22 and runs locally over stdio.

## Features

- **Teacher-focused grading:** Save grades and feedback, comment on and revert submissions.
- **Confirmation on writes:** Three tools that students will see require confirmation.
- **Pending work overview:** Lists what needs attention across a course.
- **Browser login helper:** moodle-mcp-login handles SSO and captchas, storing the token locally.
- **Trimmed responses:** HTML becomes plain text and participant emails are never returned.

## Good for

- Review a batch of submissions and draft feedback
- Find ungraded assignments in a course
- Download submitted files for offline reading
- Return a submission for rework

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add moodle-mcp --env MOODLE_URL='<MOODLE_URL>' --env MOODLE_TOKEN='<MOODLE_TOKEN>' -- npx -y @av-leschinskiy/moodle-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "moodle-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@av-leschinskiy/moodle-mcp"
      ],
      "env": {
        "MOODLE_URL": "<MOODLE_URL>",
        "MOODLE_TOKEN": "<MOODLE_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "moodle-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@av-leschinskiy/moodle-mcp"
      ],
      "env": {
        "MOODLE_URL": "<MOODLE_URL>",
        "MOODLE_TOKEN": "<MOODLE_TOKEN>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "moodle-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@av-leschinskiy/moodle-mcp"
      ],
      "env": {
        "MOODLE_URL": "<MOODLE_URL>",
        "MOODLE_TOKEN": "<MOODLE_TOKEN>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "moodle-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@av-leschinskiy/moodle-mcp"
      ],
      "env": {
        "MOODLE_URL": "<MOODLE_URL>",
        "MOODLE_TOKEN": "<MOODLE_TOKEN>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add moodle-mcp --env MOODLE_URL='<MOODLE_URL>' --env MOODLE_TOKEN='<MOODLE_TOKEN>' -- npx -y @av-leschinskiy/moodle-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.moodle-mcp]
command = "npx"
args = ["-y", "@av-leschinskiy/moodle-mcp"]
env = { MOODLE_URL = "<MOODLE_URL>", MOODLE_TOKEN = "<MOODLE_TOKEN>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "moodle-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@av-leschinskiy/moodle-mcp"
      ],
      "env": {
        "MOODLE_URL": "<MOODLE_URL>",
        "MOODLE_TOKEN": "<MOODLE_TOKEN>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e MOODLE_URL='<MOODLE_URL>' -e MOODLE_TOKEN='<MOODLE_TOKEN>' moodle-mcp npx -- -y @av-leschinskiy/moodle-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "moodle-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@av-leschinskiy/moodle-mcp"
      ],
      "env": {
        "MOODLE_URL": "<MOODLE_URL>",
        "MOODLE_TOKEN": "<MOODLE_TOKEN>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "moodle-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@av-leschinskiy/moodle-mcp"
      ],
      "env": {
        "MOODLE_URL": "<MOODLE_URL>",
        "MOODLE_TOKEN": "<MOODLE_TOKEN>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "moodle-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@av-leschinskiy/moodle-mcp"
      ],
      "env": {
        "MOODLE_URL": "<MOODLE_URL>",
        "MOODLE_TOKEN": "<MOODLE_TOKEN>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "moodle-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@av-leschinskiy/moodle-mcp"
      ],
      "env": {
        "MOODLE_URL": "<MOODLE_URL>",
        "MOODLE_TOKEN": "<MOODLE_TOKEN>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "moodle-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@av-leschinskiy/moodle-mcp"
      ],
      "env": {
        "MOODLE_URL": "<MOODLE_URL>",
        "MOODLE_TOKEN": "<MOODLE_TOKEN>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "moodle-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@av-leschinskiy/moodle-mcp"
      ],
      "env": {
        "MOODLE_URL": "<MOODLE_URL>",
        "MOODLE_TOKEN": "<MOODLE_TOKEN>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "moodle-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@av-leschinskiy/moodle-mcp"
      ],
      "env": {
        "MOODLE_URL": "<MOODLE_URL>",
        "MOODLE_TOKEN": "<MOODLE_TOKEN>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "moodle-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@av-leschinskiy/moodle-mcp"
      ],
      "env": {
        "MOODLE_URL": "<MOODLE_URL>",
        "MOODLE_TOKEN": "<MOODLE_TOKEN>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 10 tools changes data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `moodle_list_courses` (name suggests: reads): Lists your courses.
- `moodle_site_info`: Returns user and Moodle site information.
- `moodle_get_submission` (name suggests: reads): Returns a full submission.
- `moodle_list_assignments` (name suggests: reads): Lists a course's assignments.
- `moodle_list_pending_submissions` (name suggests: reads): Lists what needs the teacher across a course.
- `moodle_list_submissions` (name suggests: reads): Lists participants and submission statuses.
- `moodle_download_file` (name suggests: reads): Downloads submission files to disk.
- `moodle_add_submission_comment` (name suggests: changes): Adds a submission comment, with confirmation.
- `moodle_revert_submission_to_draft`: Returns a submission for rework, with confirmation.
- `moodle_save_grade`: Saves a grade and feedback, with confirmation.

## FAQ

### What does Moodle MCP need on the Moodle site?

Mobile app access enabled, the same web service the Moodle mobile app uses.

### What do I need locally?

Node.js 22 or newer, plus Chrome or Chromium for the login command.

### Does Moodle MCP return student emails?

No, participant emails are never returned.

### Where is the token stored?

In a file with 0600 permissions, by default under ~/.config/mcp-moodle.

### How do I add Moodle MCP to Claude Code?

Run this command in your terminal: claude mcp add moodle-mcp --env MOODLE_URL='<MOODLE_URL>' --env MOODLE_TOKEN='<MOODLE_TOKEN>' -- npx -y @av-leschinskiy/moodle-mcp

### What are the best alternatives to Moodle MCP?

The closest alternatives to Moodle MCP are Scholar Sidekick, Helium - Student Planner, StudyQA study abroad catalog, Braineos and ExamStep OET prep.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Scholar Sidekick](https://ai-powered.com/mcp/scholar-sidekick): Scholar Sidekick is a freemium MCP server for education and exams.
- [Helium - Student Planner](https://ai-powered.com/mcp/helium-student-planner-2): Helium - Student Planner is a free MCP server for education and exams.
- [StudyQA study abroad catalog](https://ai-powered.com/mcp/studyqa-study-abroad-catalog): StudyQA study abroad catalog is a free MCP server for education and exams.
- [Braineos](https://ai-powered.com/mcp/braineos): Braineos is a freemium MCP server for education and exams.
- [ExamStep OET prep](https://ai-powered.com/mcp/examstep-oet-prep): ExamStep OET prep is a freemium MCP server for education and exams.
- [GoldCoach](https://ai-powered.com/mcp/goldcoach): GoldCoach is a free MCP server for education and exams.
- [GoldCheck](https://ai-powered.com/mcp/goldcheck): GoldCheck is a free MCP server for education and exams.
- [Proxy MS](https://ai-powered.com/mcp/proxy-ms): Proxy MS is an MCP server for education and exams.

---
Source: https://ai-powered.com/mcp/moodle-mcp-3
