Moodle Connector for Openclaw

A powerful Moodle REST API client and MCP server designed to integrate Learning Management System data directly into AI coding agents.

jabir-srj
v1.0.0
Apr 8, 2026
0
651
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install moodle-connector-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install moodle-connector-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Moodle Connector?

Moodle Connector is a comprehensive technical bridge between Moodle-based Learning Management Systems and AI environments. As a featured part of the Openclaw Skills ecosystem, it provides a robust REST API client that allows developers and students to interact with their educational data through a Command Line Interface (CLI), a Python library, or the Model Context Protocol (MCP).

By utilizing Openclaw Skills like Moodle Connector, users can automate the retrieval of course materials, monitor academic performance through grade tracking, and manage deadlines without manual navigation of the Moodle web interface. It is built with a focus on security, employing PBKDF2 and Fernet encryption to protect user credentials while offering high-performance features like aggressive file caching and batch downloading.

Moodle Connector Use Cases

  • Automating the download of weekly course materials and lecture slides into organized local directories.
  • Querying upcoming assignment deadlines and course announcements directly through Claude Code or OpenCode.
  • Exporting a full academic summary in Markdown format for personal knowledge management or AI analysis.
  • Integrating Moodle data into custom Python scripts for advanced academic data analytics.
  • Providing AI agents with real-time access to course grades and feedback for automated progress tracking.

How Moodle Connector Works

  1. The user authenticates with their Moodle instance using a Web Service Token stored in a secure, encrypted configuration file.
  2. Commands are issued via the CLI, Python API, or an MCP-compatible agent which targets specific Moodle endpoints.
  3. The connector fetches data (courses, grades, assignments) from the Moodle REST API and processes the JSON responses into human-readable or machine-ready formats.
  4. For file requests, the tool uses a batch downloader or a single-file download function with built-in caching to prevent redundant network requests.
  5. When used as an MCP server, it exposes native tools to AI agents, allowing them to "call" Moodle functions during a conversation.

Moodle Connector Setup

To get started with this skill from the Openclaw Skills collection, follow these steps:

# Install via clawhub
clawhub install moodle-connector

# Navigate to the skill directory
cd ./skills/moodle-connector

# Install dependencies
pip install -r requirements.txt
playwright install chromium

# Configure your credentials
cp config.template.json config.json
# Edit config.json with your Moodle base_url and web_service_token

Moodle Connector Data Schema & Taxonomy

Moodle Connector organizes data through a structured configuration and output system:

Component Format Description
config.json JSON Stores Moodle API URL, tokens, and cache TTL settings.
downloads.json JSON Defines batch download targets including module names and file URLs.
downloads/ Directory Auto-organized folders named by course/module containing downloaded PDFs and ZIPs.
cache/ Directory Local storage for API responses to improve performance and reduce server load.
summary Markdown A consolidated export of all course data, deadlines, and grades.

Moodle Connector Advanced Features

  • MCP Protocol Support: Seamlessly exposes Moodle functions as native tools for Claude Desktop and other Openclaw Skills compatible agents.
  • Encrypted Credential Management: Uses PBKDF2 with 480K iterations and Fernet encryption to ensure tokens are never stored in plain text.
  • Batch Downloader: A zero-code, JSON-driven engine to sync entire course modules to a local machine.
  • Headless Automation: Supports environment variable injection via MOODLE_CRED_PASSWORD for secure use in CI/CD or automated server environments.
  • Smart Caching: Intelligent API response caching to minimize latency and respect Moodle server rate limits.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*