Moodle MCP Server

v1.0.0Business Applicationsstable

Enables interaction with Moodle learning management systems through the Moodle REST API. Supports course management, user enrollment, assignments, forums, quizzes, and file operations through natural language.

moodle-mcp-servermcpai-integration
Share:
37
Stars
0
Downloads
0
Weekly
0/5

What is Moodle MCP Server?

Moodle MCP Server is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables interaction with moodle learning management systems through the moodle rest api. supports course management, user enrollment, assignments, forums, quizzes, and file operations through natural ...

Enables interaction with Moodle learning management systems through the Moodle REST API. Supports course management, user enrollment, assignments, forums, quizzes, and file operations through natural language.

This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables interaction with Moodle learning management systems

Use Cases

Manage Moodle learning management systems through REST API. Handle courses, enrollment, assignments, forums, quizzes, and files naturally.
peancor

Maintainer

LicenseMIT License
Languagejavascript
Versionv1.0.0
UpdatedMay 12, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx moodle-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Moodle MCP Server

Moodle MCP Server is a JavaScript MCP server that connects AI assistants to Moodle learning management systems via the Moodle REST API, enabling natural language management of courses, students, assignments, quizzes, and grades. Instructors and e-learning administrators use it to ask Claude to retrieve student submission lists, provide assignment feedback with grades, examine quiz attempt data, or get course enrollment information — all without navigating the Moodle web interface. It currently targets a single configured course ID and uses a Moodle web service token for authenticated API access.

Prerequisites

  • Node.js v14 or higher
  • A Moodle instance with the REST web service enabled and a web service token generated (Site Administration > Plugins > Web Services > Manage tokens)
  • The Moodle web service token must have permissions to manage courses, assignments, quizzes, and users
  • The numeric Moodle course ID you want to manage
  • An MCP client such as Claude Desktop
1

Clone the repository and install dependencies

Download the server source and install its Node.js dependencies.

git clone https://github.com/peancor/moodle-mcp-server.git
cd moodle-mcp-server
npm install
2

Create the .env file

Create a .env file in the project root with your Moodle REST API URL, token, and target course ID.

MOODLE_API_URL=https://your-moodle.com/webservice/rest/server.php
MOODLE_API_TOKEN=your_moodle_web_service_token
MOODLE_COURSE_ID=42
3

Build the server

Compile the TypeScript source to JavaScript in the build/ directory.

npm run build
4

Obtain a Moodle API token

Log in to Moodle as an administrator. Navigate to Site Administration > Plugins > Web Services > Manage tokens. Create a new token for a user with course management rights and copy the generated token into your .env file.

5

Configure your MCP client

Add the server to claude_desktop_config.json. Use the absolute path to your Node.js binary and to the built index.js file. Pass all credentials via env.

{
  "mcpServers": {
    "moodle-mcp-server": {
      "command": "/usr/local/bin/node",
      "args": ["/path/to/moodle-mcp-server/build/index.js"],
      "env": {
        "MOODLE_API_URL": "https://your-moodle.com/webservice/rest/server.php",
        "MOODLE_API_TOKEN": "your_moodle_api_token",
        "MOODLE_COURSE_ID": "42"
      }
    }
  }
}
6

Restart Claude Desktop and test

Restart Claude Desktop and ask it to list students in the course to verify the connection.

Moodle MCP Server Examples

Client configuration

Full claude_desktop_config.json entry for Moodle MCP Server.

{
  "mcpServers": {
    "moodle-mcp-server": {
      "command": "/usr/local/bin/node",
      "args": ["/Users/yourname/moodle-mcp-server/build/index.js"],
      "env": {
        "MOODLE_API_URL": "https://moodle.myschool.edu/webservice/rest/server.php",
        "MOODLE_API_TOKEN": "abc123yourtokenhere",
        "MOODLE_COURSE_ID": "7"
      }
    }
  }
}

Prompts to try

Natural language commands Claude can execute via the Moodle MCP Server.

- "List all students enrolled in this course with their last access time."
- "Show me all assignments and their due dates."
- "Get the submissions for Assignment 3 from student ID 42."
- "Give student 42 a grade of 85 and feedback 'Good analysis, but expand the conclusion' on Assignment 3."
- "List all quizzes and show attempt counts for each."
- "Show quiz attempt details for student 17 on Quiz 2."

Troubleshooting Moodle MCP Server

API returns 'Invalid token' or 403 Forbidden

Ensure the MOODLE_API_TOKEN is copied exactly from Moodle's Manage Tokens page. The token must belong to a user with sufficient permissions (e.g., teacher or admin role in the course). Also confirm the REST protocol is enabled at Site Administration > Plugins > Web Services > Manage protocols.

get_courses returns an empty list or 'course not found'

Verify MOODLE_COURSE_ID matches the numeric ID of an existing, visible course. Find the course ID in Moodle by opening the course and checking the URL (e.g., ...?id=42). The token's user must be enrolled in or have admin access to that course.

Server starts but Claude Desktop shows no tools

Check that 'npm run build' completed without errors and that build/index.js exists. The 'command' field must point to the Node.js binary (run 'which node' to find it) and 'args' must contain the absolute path to build/index.js.

Frequently Asked Questions about Moodle MCP Server

What is Moodle MCP Server?

Moodle MCP Server is a Model Context Protocol (MCP) server that enables interaction with moodle learning management systems through the moodle rest api. supports course management, user enrollment, assignments, forums, quizzes, and file operations through natural language. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Moodle MCP Server?

Follow the installation instructions on the Moodle MCP Server GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Moodle MCP Server?

Moodle MCP Server works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Moodle MCP Server free to use?

Yes, Moodle MCP Server is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Moodle MCP Server Alternatives — Similar Business Applications Servers

Looking for alternatives to Moodle MCP Server? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.

n8n

189.1k

A comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou

LobeHub

77.5k

🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.

Jeecgboot

46.4k

AI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。

CowAgent

44.7k

CowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。

Minds Platform

39.2k

Platform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.

Astrbot

32.8k

AI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨

Browse More Business Applications MCP Servers

Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "moodle-mcp-server": { "command": "npx", "args": ["-y", "moodle-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Moodle MCP Server?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides