Xpersona
M

Moodle Connector

CLAWHUB · Unverified

Moodle REST API client, batch downloader, and MCP server for Claude Code integration. SSO-enabled with support for Azure AD, Google, and SAML. Skill: Moodle Connector Owner: jabir-srj Summary: Moodle REST API client, batch downloader, and MCP server for Claude Code integration. SSO-enabled with support for Azure AD, Google, and SAML. Tags: latest:2.0.0 Version history: v2.0.0 | 2026-03-30T00:22:08.071Z | user Major update: SSO Support & Headless Deployment Features. Support for Azure AD, Google OAuth, and SAML. Mobile Launch Flow integration. Tampermonkey h

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17e1qp0jaz7ad6f2z8g455nkx83gdpg:moodle-connector
  1. Node.js workspace detected. Install dependencies securely: run `npm ci --ignore-scripts` to prevent post-install lifecycle triggers from running arbitrary code, then selectively audit the dependency tree.
  2. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jabir-srj-moodle-connector/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

67,951 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: moodle-connector
description: "Moodle REST API client, batch downloader, and MCP server for Claude Code integration. SSO-enabled with support for Azure AD, Google, and SAML."
metadata: { "author": "Jabir Iliyas Suraj-Deen", "license": "MIT", "homepage": "https://github.com/Jabir-Srj/moodle-connector", "repository": "https://github.com/Jabir-Srj/moodle-connector.git", "tags": ["moodle", "education", "lms", "api", "batch-download", "mcp", "claude-code", "sso", "azure-ad", "oauth", "saml"] }
---

# Moodle Connector

**Enterprise-ready Moodle REST API client with SSO authentication, batch downloading, and MCP protocol support for Claude Code and OpenCode.**

## Features

**Complete Moodle API Access**
- List courses, check grades, track assignments
- Fetch materials, deadlines, announcements
- Download files with aggressive caching

**🆕 Enterprise SSO Support (v2.0.0)**
- **Azure AD / Entra ID** — Full OAuth2 integration
- **Google OAuth** — Google Workspace and personal accounts
- **SAML** — Generic SAML provider support
- Mobile Launch Flow — Seamless SSO for mobile apps
- Token rotation and automatic refresh

**Multiple Integration Modes**
- **CLI:** `python moodle_connector.py courses`
- **Python Library:** `from moodle_connector import MoodleConnector`
- **MCP Protocol:** Native integration with Claude Code, OpenCode
- **Headless Mode** — Tampermonkey helper for CI/CD and automation

**Generic Batch Downloader**
- JSON-driven configuration (zero code modification)
- Works with any Moodle module
- Auto-organized by course name

**Security**
- Encrypted credentials (PBKDF2 + Fernet)
- Token management built-in
- No secrets in git history
- MIT licensed
- Safe for headless environments (CI/CD compatible)

## Installation

Once installed via `clawhub install moodle-connector`:

```bash
cd ./skills/moodle-connector
pip install -r requirements.txt
playwright install chromium
```

## Quick Start

### 1. Setup Moodle Token

```bash
cp config.template.json config.json
# Edit config.json with your Moodle web service token
```

### 2. Use CLI

```bash
python moodle_connector.py courses        # List all courses
python moodle_connector.py grades         # Check grades
python moodle_connector.py assignments    # View assignments
python moodle_connector.py materials --course-id 44864
python moodle_connector.py download "https://mytimes.taylors.edu.my/..." --output myfile.pdf
python moodle_connector.py summary        # Full markdown export
```

## 🆕 SSO Authentication (v2.0.0)

### Azure AD / Entra ID

```bash
# Set environment variables
export MOODLE_SSO_PROVIDER="azure"
export MOODLE_SSO_TENANT_ID="your-tenant-id"
export MOODLE_SSO_CLIENT_ID="your-client-id"
export MOODLE_SSO_CLIENT_SECRET="your-client-secret"

# Run with SSO
python moodle_connector.py courses
# Browser opens automatically for login
```

### Google OAuth

```bash
export MOODLE_SSO_PROVIDER=

_meta.json

{
  "ownerId": "kn7dj7by0m29kvqed9vpbg8p498337ag",
  "slug": "moodle-connector",
  "version": "2.0.0",
  "publishedAt": 1774830128071
}

skill-card.md

## Description:

Moodle REST API client, batch downloader, and MCP server for Claude Code integration. SSO-enabled with support for Azure AD, Google, and SAML.

This skill is ready for commercial/non-commercial use.

## Publisher:

[jabir-srj](https://clawhub.ai/user/jabir-srj)

### License/Terms of Use:

MIT

## Use Case:

Developers and agents use this skill to connect to Moodle instances, retrieve courses, grades, assignments, announcements, materials, and summaries, and download Moodle-hosted files through CLI, Python, or MCP workflows.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Credential handling, downloads, and local persistence have serious under-disclosed security risks.

Mitigation: Review before installing and do not use real Moodle credentials until credential storage, caching, and data transmission behavior are accurately documented.

Risk: Downloads may use untrusted URLs or write outside an approved location.

Mitigation: Restrict downloads to the configured Moodle origin and contain output paths to an approved directory before deployment.

Risk: Default credential-password behavior can weaken protection for stored Moodle tokens or passwords.

Mitigation: Remove the test-pass default, require a strong deployment-specific password, and rotate Moodle tokens or stored passwords if the skill was already used with the default.

## Reference(s):

- [ClawHub Skill Listing](https://clawhub.ai/jabir-srj/skills/moodle-connector)
- [Project Homepage](https://github.com/Jabir-Srj/moodle-connector)
- [Project Repository](https://github.com/Jabir-Srj/moodle-connector.git)

## Skill Output:

**Output Type(s):** [Text, Markdown, Files, Shell commands, Configuration]

**Output Format:** [Markdown and plain text responses, downloaded files, JSON configuration, and shell command guidance]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Outputs may include Moodle course data, grades, assignments, announcements, materials, summaries, cached API responses, and downloaded files.]

## Skill Version(s):

2.0.0 (source: server release metadata and package.json)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

config.template.json

{
  "_comment": "Moodle connector config for mytimes.taylors.edu.my - TEMPLATE",
  "moodle": {
    "base_url": "https://mytimes.taylors.edu.my",
    "web_service_token": ""
  },
  "microsoft": {
    "tenant_id": "common",
    "client_id": "",
    "scopes": ["openid", "profile", "email", "offline_access"]
  },
  "credentials": {
    "storage_file": "credentials.enc"
  },
  "cache": {
    "dir": "cache",
    "pdf_ttl_days": 7,
    "api_ttl_seconds": 300,
    "max_size_mb": 500
  },
  "output": {
    "format": "markdown",
    "include_grades": true,
    "include_assignments": true,
    "include_announcements": true,
    "include_materials": true
  }
}

package.json

{
  "name": "moodle-connector",
  "version": "2.0.0",
  "description": "Moodle REST API client, batch downloader, and MCP server for Claude Code integration. SSO-enabled with Azure AD, Google, and SAML support.",
  "author": "Jabir Iliyas Suraj-Deen <jabirsrj8@protonmail.com>",
  "license": "MIT",
  "homepage": "https://github.com/Jabir-Srj/moodle-connector",
  "repository": {
    "type": "git",
    "url": "https://github.com/Jabir-Srj/moodle-connector.git"
  },
  "keywords": [
    "moodle",
    "education",
    "lms",
    "api",
    "batch-download",
    "mcp",
    "claude-code",
    "rest-api",
    "sso",
    "azure-ad",
    "oauth",
    "saml",
    "headless"
  ],
  "scripts": {
    "install": "pip install -r requirements.txt && playwright install chromium"
  }
}

Sponsored

Ads related to Moodle Connector and adjacent AI workflows.