Metadata-Version: 2.4
Name: moodle-mcp-bridge
Version: 1.6.0
Summary: MCP server exposing a Moodle site as 86 typed AI tools: read courses, grades and deadlines; build courses, quizzes, questions and content.
Project-URL: Homepage, https://nmaaalhawary.github.io/MCP-Moodle/
Project-URL: Documentation, https://nmaaalhawary.github.io/MCP-Moodle/docs/
Project-URL: Repository, https://github.com/NmaaAlhawary/MCP-Moodle
Project-URL: Issues, https://github.com/NmaaAlhawary/MCP-Moodle/issues
Author-email: Namaa Alhawary <namaa.alhawary@htu.edu.jo>
License: MIT License
        
        Copyright (c) 2026 Moodle MCP contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: ai,claude,education,lms,mcp,model-context-protocol,moodle
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Education
Requires-Python: >=3.11
Requires-Dist: httpx>=0.27.0
Requires-Dist: mcp>=1.2.0
Requires-Dist: python-dotenv>=1.0.0
Description-Content-Type: text/markdown

# moodle-mcp-bridge

Talk to Moodle. An [MCP](https://modelcontextprotocol.io/) server that exposes a
Moodle site as **86 typed tools** for AI clients like Claude Desktop and Claude
Code — read courses, grades, deadlines and quiz results; build courses,
sections, quizzes (six question types), assignments and content; back courses
up to real `.mbz` files and restore them.

> *"Create a course called Biology 101, add a welcome page, and enrol these five students."* — and it actually happens.

## Install

```bash
pip install moodle-mcp-bridge
```

## Configure

Three environment variables (or a `.env` file in the working directory):

```bash
MOODLE_URL=https://moodle.example.edu   # your Moodle site
MOODLE_TOKEN=xxxxxxxxxxxxxxxx           # a web service token
MOODLE_ALLOW_WRITE=true                 # omit for read-only (the default)
```

Read tools are always available. Write tools (course/content creation,
enrolment, grading, backup/restore) only register when `MOODLE_ALLOW_WRITE`
is explicitly `true`, so a misconfiguration can never silently enable writes.

## Connect Claude Desktop

```json
{
  "mcpServers": {
    "moodle": {
      "command": "moodle-mcp-bridge",
      "env": {
        "MOODLE_URL": "https://moodle.example.edu",
        "MOODLE_TOKEN": "your-token",
        "MOODLE_ALLOW_WRITE": "true"
      }
    }
  }
}
```

## The companion Moodle plugin

Core Moodle web services cannot create activities (pages, quizzes, questions…).
The companion plugin **`local_mcpbridge`** adds those functions — grab it from
the [GitHub releases](https://github.com/NmaaAlhawary/MCP-Moodle/releases) and
install it on your Moodle (4.2+). Without the plugin, all core-backed tools
(courses, users, enrolment, grades, completion, messaging) still work.

## Documentation

Full setup guide, tool reference and security model:
**https://nmaaalhawary.github.io/MCP-Moodle/**

MIT licensed. Source: https://github.com/NmaaAlhawary/MCP-Moodle
