moodle-academic-mcp
Provides tools for interacting with a Moodle instance (initially UFSC's Moodle Presencial) via its REST API: listing courses, assignments, deadlines and calendar events, retrieving assignment descriptions and course materials (PDF/DOCX/PPTX), reading quizzes, forums and grades, computing attendance and grade simulations, managing groups (including group choice vacancies), and write operations such as submitting assignments (upload, draft, submit) and posting to forums.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
A community, independent project, not affiliated with UFSC, Moodle, Anthropic or OpenAI. The first target is UFSC's Moodle "Presencial"; the architecture supports other institutions (guide).
✨ In action
you ▸ Which assignments are due in the next 7 days? Separate the ones already submitted.
claude ▸ (list_deadlines · window: 2026-11-04 15:30 → 2026-11-11 15:30, America/Sao_Paulo)
✅ submitted Lista 2 ........ Banco de Dados II ... 11/04 23:59
⏳ pending Trabalho T ..... Banco de Dados II ... 11/04 23:59 (cut-off 11/06)
⏳ pending Entrega parcial Modelagem de Proc. .. 11/08 23:59Illustrative example with synthetic data.
You say | The server does |
"What is due next week?" | combines assignments + quizzes + calendar; returns the exact window (calendar week ≠ 7 days) |
"Read the statement, use the slides and do the assignment." |
|
"Submit my assignment." | upload → draft → submit → reads it back and shows the evidence |
"Can I skip Tuesday? How many classes can I still miss?" | exact count by class hours, pending roll calls, critical meetings |
"What do I need on the P2 to pass?" | deterministic simulation; a grade not yet posted ≠ zero |
"Join group 3 if there is room." | group choice with a seat check and a read-back |
"Any new announcements since yesterday?" |
|
Related MCP server: moodle-mcp
🚀 Start in 2 minutes
Option A — Claude Code plugin (recommended)
/plugin marketplace add matheussilvano/moodle-mcp
/plugin install moodle-academic@moodle-mcpClaude Code asks for your Moodle URL and token (kept in secure storage, never shown to the model). Create the token at <your Moodle>/user/managetoken.php (service Moodle mobile web service). Then use the guided skills: /moodle-academic:semana (overview), :entregar (deliver), :faltas (attendance), :notas (grades), :estudar (study), :setup (diagnose). Requires uv.
Option B — the MCP server alone (any client, terminal setup)
uvx --from git+https://github.com/matheussilvano/moodle-mcp@v0.1.3 moodle-academic-mcp configure --profile ufsc --service mobile
uvx --from git+https://github.com/matheussilvano/moodle-mcp@v0.1.3 moodle-academic-mcp doctor
claude mcp add --scope user --transport stdio moodle -- uvx --from git+https://github.com/matheussilvano/moodle-mcp@v0.1.3 moodle-academic-mcp serve
codex mcp add moodle -- uvx --from git+https://github.com/matheussilvano/moodle-mcp@v0.1.3 moodle-academic-mcp serveRestart the client and ask: "list my current courses". Requires Python 3.11+ and uv. Not on PyPI yet (how it gets there). ChatGPT and custom GPTs need the hosted mode. Per-client guide: docs/clients.md.
🧭 How it works
flowchart LR
subgraph Clients
A[Claude Code / Codex<br/>stdio]
B[ChatGPT / Claude<br/>Streamable HTTP + OAuth]
C[GPT Actions<br/>OpenAPI]
end
A --> R
B --> R
C --> R
R{{"single operation registry<br/>(55 tools = 55 REST routes)"}} --> D[academic domain<br/>assignments · deadlines · quiz · grades<br/>groups · attendance · materials]
D --> M[(Moodle client<br/>REST + upload + pluginfile)]
D --> S[(SQLite / PostgreSQL<br/>encrypted credentials · write journal)]
D --> K[[exact math<br/>Fraction / Decimal]]
M --> U((Your institution's Moodle))Two golden rules: each person uses their own token (no shared token, no singleton), and text from PDFs, forums and pages is untrusted data, so it never authorizes actions.
✅ Validation status (no makeup)
Area | Automated tests (mock) | Real Moodle (UFSC 4.1.5+) |
Courses, assignments, status, calendar, forum list | ✅ | ✅ read |
Delivery (upload → draft → submit), quiz, groups, forum (write) | ✅ | ⛔ not tested |
Attendance (math) / grades (simulation) | ✅ 100% pure | n/a |
Attendance, VPL, Group choice (adapters) | ✅ | ⛔ not validated |
Hosted mode (HTTP, onboarding, PostgreSQL 16) | ✅ | n/a |
OIDC with a real IdP · ChatGPT · Codex | ⛔ | ⛔ |
Want to help move a ⛔ to ✅? See the sandbox; it is the most valuable contribution.
🔒 Security and privacy
Tokens stay out of logs, URLs, results and the model;
userprivateaccesskeyis removed; credentials are encrypted in hosted mode.Downloads only from the profile's Moodle host; SSRF is blocked; local files are confined to allowed folders.
Writes are separate, annotated tools; you (or your client) decide the confirmation policy: examples.
No "Sign in with UFSC" and no institutional password. Details: SECURITY.md · privacy.
🤝 Contribute (it is easy)
git clone https://github.com/matheussilvano/moodle-mcp && cd moodle-mcp
make setup # uv sync + hooks
make check # lint + types + tests (~10 s, no credentials, no network)🌱 Good first issues · 🗺️ Roadmap · 🏫 Add your university
Tests use a fake Moodle (
tests/fake_moodle.py), no real data. Never mark something as validated without running it on a real Moodle.Start with CONTRIBUTING.md; questions go to Discussions.
📚 Documentation
Tools · Architecture · Tokens and VPN · Clients · Hosting and auth · Attendance and grades · Feature matrix · Workflows
MIT license. It covers the code in this repository, not the logo and the name "Moodle", which are trademarks of Moodle Pty Ltd and appear here only to identify the platform. This project is independent and unofficial.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI assistants to Edusign attendance, courses, learners, documents, and API docs via OAuth.
Absorb LMS MCP server for ChatGPT, Claude and any AI agent: list users, list course enrollments, list overdue learners, approve enrollment request, enroll users in a course, message learners, create user and deactivate user in your own Absorb LMS account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Absorb LMS yourself; Cotlet does not store your password and you need no Absorb LMS API key. About the official Absorb LMS API: Absorb LMS has an Integration API, a REST API with JSON for learners, courses, departments and grades, but it needs a private key tied to your portal that your Absorb account team provides, and your own code (checked 20 Oct 2026). Absorb's Aura MCP for Claude and ChatGPT is planned for 27 Oct 2026 and is read and answer only. Setup and FAQ: https://cotlet.dev/integrations/absorb-lms-api-mcp-server
Thought Industries MCP server for ChatGPT, Claude and any AI agent: list learners, enroll learner in course, import and invite learners, read content actions log, set content status and add learner to waitlist in your own Thought Industries account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Thought Industries yourself; Cotlet does not store your password and you need no Thought Industries API key. About the official Thought Industries API: Thought Industries has a REST API and a GraphQL API, but no MCP server you can connect today (checked 23 Oct 2026). Both APIs need a key an admin creates under Settings > Security, and the Claude plugin lists "a Thought Industries instance with API access enabled" as a prerequisite. Setup and FAQ: https://cotlet.dev/integrations/thought-industries-api-mcp-server
LearnWorlds MCP server for ChatGPT, Claude and any AI agent: list users, list course learners, enroll users, unenroll users, update tags, send message, suspend user and grade assessment in your own LearnWorlds account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to LearnWorlds yourself; Cotlet does not store your password and you need no LearnWorlds API key. About the official LearnWorlds API: LearnWorlds has a REST API (v2) for courses, users, bundles, subscriptions, promotions, payments and certifications, but it comes with the Learning Center plan and higher, and you need your own code to use it (checked 5 Nov 2026). LearnWorlds has no official MCP server. Setup and FAQ: https://cotlet.dev/integrations/learnworlds-api-mcp-server
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI agents to access a student's EPFL Moodle data—deadlines, course files, assignments, forums, and grades—through read-only tools.12MIT
- AlicenseBqualityCmaintenanceConnects Claude to your Moodle account through the same web-service API the mobile app uses. Enables asking about upcoming and overdue deadlines, reading course files and announcements, checking grades, searching course content, and saving assignment submissions from chat.172MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to sign into a real Moodle LMS and handle the student workflow end to end: browsing courses, schedules, forums and grades, converting assignments and attachments into markdown, and uploading and submitting work as drafts or finalized submissions. Ships as a single static binary with write actions confirmed by the user and quiz-taking deliberately excluded.30MIT
- AlicenseNot gradedqualityCmaintenanceConnects Claude to a student's Moodle account so it can retrieve courses, pending assignments, grades, notices, materials, forums, and submission status, and can publish forum posts or upload assignments after confirmation.MIT