Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words Sign in

Moodle + Obsidian

by CarlosAndreFerreiraversion 0.8.3i★ 2iRuns on your computerRepository ↗
Registry nameio.github.CarlosAndreFerreira/moodle-obsidian-mcp

How to install

What it does

Moodle for AI assistants, SSO included: courses, grades, deadlines and forums synced to Obsidian.

  • Connects Runs on your computer
  • Account or key Needs MOODLE_TOKEN
  • Category Docs, sheets & office work

Use together with

Skills that teach the AI this kind of work; they work alongside this one

MinerU

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

by opendatalab★ 83,9721 skills

Skill · How-to guideNo license stated

watermarks-remover

A privacy-first app that strips AI watermarks from content you own.

by guillaumemeyer★ 27,7961 skills

Skill · How-to guide

obsidian-skills

Agent skills for Obsidian. Teach your agent to use Obsidian CLI and open formats including Markdown, Bases, JSON Canvas.

by kepano★ 53,242 (whole repo)5 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity6/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score18/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Moodle + Obsidian. Follow https://mcp.popnx.com/i/carlosandreferreira-moodle-obsidian-mcp.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 17, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a Moodle + Obsidian key (create it on the maker’s site) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Moodle + Obsidian for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "moodle-obsidian": { "command": "uvx", "args": [ "moodle-obsidian-mcp" ], "env": { "MOODLE_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For MOODLE_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Moodle + Obsidian tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Moodle + Obsidian key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Moodle + Obsidian site ↗

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "moodle-obsidian": {
          "command": "uvx",
          "args": [
            "moodle-obsidian-mcp"
          ],
          "env": {
            "MOODLE_TOKEN": "your-value"
          }
        }
      }
    }

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Quit Claude and open it again

  6. Try it

    Use Moodle + Obsidian and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Moodle + Obsidian or shows a Moodle + Obsidian tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • OBSIDIAN_VAULT_DIR Obsidian vault folder where notes and materials are written.
  • MOODLE_URL Moodle base URL (https). Optional if you log in with `moodle-mcp --login`.
  • MOODLE_MCP_TOOLS Toolsets to expose: core, grades, forums, obsidian, write, auth, raw, or all. · default core,grades,forums,obsidian
  • MOODLE_MCP_LANGUAGE Language of the generated notes. · default pt

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Moodle + Obsidian yet

Moodle + Obsidian runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Moodle + Obsidian

  • You need a Moodle + Obsidian key (create it on the maker’s site) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a Moodle + Obsidian key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)
  • You need a Moodle + Obsidian key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)
  • You need a Moodle + Obsidian key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

B · Others in Docs, sheets & office work that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a Moodle + Obsidian key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Moodle + Obsidian for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user moodle-obsidian --env MOODLE_TOKEN=your-value -- uvx moodle-obsidian-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For MOODLE_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Moodle + Obsidian tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Moodle + Obsidian key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Moodle + Obsidian site ↗

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user moodle-obsidian --env MOODLE_TOKEN=your-value -- uvx moodle-obsidian-mcp

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Type /mcp in Claude Code

    You should see Moodle + Obsidian listed as connected

  6. Try it

    Use Moodle + Obsidian and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Moodle + Obsidian or shows a Moodle + Obsidian tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • OBSIDIAN_VAULT_DIR Obsidian vault folder where notes and materials are written.
  • MOODLE_URL Moodle base URL (https). Optional if you log in with `moodle-mcp --login`.
  • MOODLE_MCP_TOOLS Toolsets to expose: core, grades, forums, obsidian, write, auth, raw, or all. · default core,grades,forums,obsidian
  • MOODLE_MCP_LANGUAGE Language of the generated notes. · default pt

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a Moodle + Obsidian key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Moodle + Obsidian for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "moodle-obsidian": { "command": "uvx", "args": [ "moodle-obsidian-mcp" ], "env": { "MOODLE_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For MOODLE_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Moodle + Obsidian tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Moodle + Obsidian key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Moodle + Obsidian site ↗

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the Moodle + Obsidian settings, MOODLE_TOKEN is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use Moodle + Obsidian and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Moodle + Obsidian or shows a Moodle + Obsidian tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • OBSIDIAN_VAULT_DIR Obsidian vault folder where notes and materials are written.
  • MOODLE_URL Moodle base URL (https). Optional if you log in with `moodle-mcp --login`.
  • MOODLE_MCP_TOOLS Toolsets to expose: core, grades, forums, obsidian, write, auth, raw, or all. · default core,grades,forums,obsidian
  • MOODLE_MCP_LANGUAGE Language of the generated notes. · default pt

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a Moodle + Obsidian key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Moodle + Obsidian for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "moodle-obsidian": { "type": "stdio", "command": "uvx", "args": [ "moodle-obsidian-mcp" ], "env": { "MOODLE_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For MOODLE_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Moodle + Obsidian tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Moodle + Obsidian key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Moodle + Obsidian site ↗

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the Moodle + Obsidian settings, MOODLE_TOKEN is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use Moodle + Obsidian and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Moodle + Obsidian or shows a Moodle + Obsidian tool in the answer, you are connected

4 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • OBSIDIAN_VAULT_DIR Obsidian vault folder where notes and materials are written.
  • MOODLE_URL Moodle base URL (https). Optional if you log in with `moodle-mcp --login`.
  • MOODLE_MCP_TOOLS Toolsets to expose: core, grades, forums, obsidian, write, auth, raw, or all. · default core,grades,forums,obsidian
  • MOODLE_MCP_LANGUAGE Language of the generated notes. · default pt

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Moodle + Obsidian💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user moodle-obsidian --env MOODLE_TOKEN=your-value -- uvx moodle-obsidian-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "moodle-obsidian": {
      "command": "uvx",
      "args": [
        "moodle-obsidian-mcp"
      ],
      "env": {
        "MOODLE_TOKEN": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "moodle-obsidian": {
      "command": "uvx",
      "args": [
        "moodle-obsidian-mcp"
      ],
      "env": {
        "MOODLE_TOKEN": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "moodle-obsidian": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "moodle-obsidian-mcp"
      ],
      "env": {
        "MOODLE_TOKEN": "your-value"
      }
    }
  }
}

Values you fill in

  • OBSIDIAN_VAULT_DIR env
    Obsidian vault folder where notes and materials are written.
  • MOODLE_URL env
    Moodle base URL (https). Optional if you log in with `moodle-mcp --login`.
  • MOODLE_TOKEN secret required env
    Moodle mobile web service token. Prefer `moodle-mcp --login`, which stores it with 0600 permissions.
  • MOODLE_MCP_TOOLS env
    Toolsets to expose: core, grades, forums, obsidian, write, auth, raw, or all.
  • MOODLE_MCP_LANGUAGE env
    Language of the generated notes.

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
Not on npm/PyPI
Connection
Runs on your computer
Latest versioni
0.8.3
Published to registryi
Nov 17, 2026
Code last changedi
Nov 17, 2026
Maker
CarlosAndreFerreira
Packages
pypi: moodle-obsidian-mcp
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account CarlosAndreFerreira, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 3 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

Not checked yet

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/carlosandreferreira-moodle-obsidian-mcp.svg)](https://mcp.popnx.com/en/servers/carlosandreferreira-moodle-obsidian-mcp)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Docs, sheets & office worki

  • More stars than 86% of the other 4164 servers in this category
  • Published to the registry more recently than 89% of the other 4164 servers in this category
  • Basic checks equal to or better than 99% of the other 4164 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Moodle + Obsidian safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: MOODLE_TOKEN

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 3 days ago, and the latest version (0.8.3) reached the registry 3 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: Puter MCP, XcodeBuildMCP, Vexa, Atlassian Rovo MCP Server, Anki MCP Server

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Puter MCP

Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more

by HeyPuterWidely used★ 44.2KUpdated 5 months ago

Runs in the cloud✓ service owner · puter.com

XcodeBuildMCP

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

by getsentryWidely used↓ 130.5K/wk shared package★ 6.6KUpdated 4 months ago

Runs on your computer✓ service owner · xcodebuildmcp.com

Vexa

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

by Vexa-aiWidely used★ 3KUpdated 2 months ago

Runs in the cloud✓ service owner · vexa.ai

Atlassian Rovo MCP Server

Atlassian’s official server lets AI search and manage Jira work and Confluence pages. Connects to Atlassian’s cloud with OAuth sign-in.

by atlassianGrowing★ 1.2KUpdated 2 months ago

Runs in the cloud✓ service owner · atlassian.com

Anki MCP Server

MCP server for Anki flashcards: adaptive review, notes, media, and deck management via AnkiConnect.

by ankimcpGrowing↓ 1.1K/wk★ 570Updated 2 months ago

Runs on your computer✓ service owner · ankimcp.ai
Compared with similar ones
This one
Moodle + Obsidian
Puter MCPXcodeBuildMCPVexaAtlassian Rovo MCP ServerAnki MCP Server
Runs whereInstalls on your computerRuns in the cloud, nothing to installInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installInstalls on your computer
Needs a keyYesNoNoYesNoNo
Add with + in ClaudeNoNoNoNoYesNo
Basic checks3/34/43/32/44/43/3
LicenseMITAGPL-3.0MITApache-2.0Apache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

moodle-mcp

A Model Context Protocol server that gives AI assistants (Claude, opencode, any MCP client) safe access to Moodle, and syncs your courses, grades, deadlines and materials into an Obsidian vault.

Works with any Moodle that has Web Services and the mobile app service enabled — including universities behind federated SSO (Entra ID, SAML, Shibboleth, CAS), where students can't generate an API token by hand.

🇵🇹 Versão em português


Why this one

Most MCP servers for third-party platforms pipe untrusted content straight into the model and expose every write action by default. Moodle is a worst case for that: any participant in a course can write forum posts the model will read, and actions like submitting an assignment can't be undone. This server is designed around that threat model:

  • Read-only by default. Write tools (submissions, forum posts, messages) and the raw Web Services API are off unless you enable them explicitly. 18 of the 22 default tools carry readOnlyHint, so a client can auto-approve them without auto-approving anything irreversible.
  • Prompt-injection defenses on the server side (OWASP LLM01), not delegated to the model:
  • hidden content is stripped from every Moodle response — display:none, font-size:0, hidden, HTML comments, Unicode tag characters, zero-width and bidi control characters — so the model reads what the student sees;
  • notes written to the vault can't execute anything: dataviewjs/dataview blocks, inline Dataview and Templater commands are neutralised, remote images become links (no tracking pixels);
  • every Moodle write requires user confirmation via MCP elicitation, showing the exact recipient and text — even when the client is set to auto-approve.
  • Token confinement. Credentials never appear in tool responses. The token is only ever attached to pluginfile.php URLs on the configured instance; any other host is refused before a request is made. Tools that can overwrite credentials are off by default, so a malicious forum post can't swap your token.
  • Context-budget aware. The full tool set costs ~9,700 tokens per request; selectable toolsets cut that to ~1,750–5,500.

Features

  • SSO token capture — moodle-mcp --login starts the mobile-app login in your browser with a single-use passport; a moodlemobile:// URL handler receives the redirect, checks Moodle's signature and stores the token (0600). Registered natively on Linux (xdg-mime), Windows (HKEY_CURRENT_USER, no admin) and macOS (an AppleScript applet registered with Launch Services). The token never passes through the model, and the handler moves the URL out of its command-line arguments at once, so other local users can't read it with ps.
  • Obsidian dashboard sync — a central note with every course, progress, current grades and a sorted deadline calendar; one note per course with grade report, per-assignment submission status, assignment briefs converted to Markdown and the resource tree.
  • What changed — each sync compares with the previous one and writes a note (and get_recent_changes returns it, without calling Moodle): new grades, changed deadlines, new assignments and quizzes, new materials, new forum topics and topics with new replies.
  • Deadlines everywhere — a .ics calendar next to the dashboard (import or subscribe in Google Calendar, Outlook, Thunderbird or your phone; a reminder the day before), and an Obsidian Tasks list (- [ ] … 📅 YYYY-MM-DD) in the dashboard.
  • Scheduled sync — moodle-mcp --schedule 6 syncs every 6 hours with the OS scheduler (systemd timer, launchd or Windows Task Scheduler), no MCP client running. moodle-mcp --sync runs one sync now.
  • English or Portuguese notes — moodle-mcp --set language=en switches the text of every generated note; folders stay put.
  • MCP resources and prompts — moodle://changes, moodle://deadlines and moodle://dashboard serve the last sync without calling Moodle; the weekly_review, prepare_assignment and forum_catch_up prompts are ready-made flows. The Vault tools return typed structured output (outputSchema).
  • Course material download — PDFs, slides and HTML pages saved into the vault, with each PDF converted to a searchable .pdf.md that agents can read (optional [pdf] extra).
  • 33 tools across courses, books and pages, completion, grades, assignments and submissions, quizzes, forums (search, export to Obsidian, reply), messages and calendar.
  • Multi-instance — an open registry of Moodle instances; when more than one is configured, the instance parameter is exposed as an enum in the schema, so the model gets the valid names instead of free text.

Install

The package is on PyPI as moodle-obsidian-mcp; it installs two commands, moodle-mcp and moodle-mcp-token-catcher.

uv tool install "moodle-obsidian-mcp[pdf]"     # or: pipx install "moodle-obsidian-mcp[pdf]"

moodle-mcp --install-handler # once: register the moodlemobile:// handler moodle-mcp --login # log in through your browser (SSO works)

Upgrade with uv tool upgrade moodle-obsidian-mcp (or pipx upgrade moodle-obsidian-mcp).

Use a permanent install (uv tool or pipx) rather than uvx: the login handler is registered with the executable's path, and uvx runs from a cache that can be wiped. To try it without installing:

uvx --from moodle-obsidian-mcp moodle-mcp --show-config

From a clone, ./install.sh [vault-path] does the permanent install, sets the vault, registers the handler and tells you to run moodle-mcp --login. For development, see Development.

The [pdf] extra adds PDF text extraction via PyMuPDF. It's kept out of the base install because PyMuPDF is AGPL-3.0; without it everything works, PDF downloads just don't get the companion .md.

moodle-mcp --uninstall-handler removes the moodlemobile:// handler again.

Reliability

  • Your notes are yours. Generated content lives between %% moodle-mcp:start %% and %% moodle-mcp:end %%; anything you write outside that block, and any frontmatter properties you add, survive every sync. A note from an older version (without the markers) is copied to .moodle-mcp/backup/ in the vault before its first rewrite.
  • Incremental downloads. Each file's timemodified and size are recorded in .moodle-mcp/state- .json in the vault; files that haven't changed in Moodle and are still in the vault aren't downloaded again.
  • One failing course doesn't stop a sync. Each course syncs independently; a section Moodle refuses (quizzes, choices, grades) is left empty and reported in errors with status: "partial". Only a missing or invalid token stops everything, with instructions to log in again.
  • Moodle errors arrive as errors (isError in MCP), with the cause and what to do, instead of being disguised as results.
  • Nothing is overwritten by accident: files, pages, forums and courses with the same name get (2), (3)…; filenames are valid on Windows, macOS and Linux.
  • Transient failures are retried: reads back off on 429/5xx and connection errors (honouring Retry-After); writes are never retried once the server has received them, so nothing gets posted twice. Connections are reused (keep-alive).
  • The server doesn't block: sync, material download and forum export run in a thread and report per-course progress to the client.
  • Vault layout: MOODLE_MCP_SYNC_SUBDIR puts the dashboard and course notes in a subfolder (links follow); MOODLE_MCP_DASHBOARD_NAME renames the dashboard. With several instances, each gets its own dashboard.
  • Atomic, bounded downloads: a failed download leaves the previous file intact, and no file exceeds MOODLE_MCP_MAX_DOWNLOAD_MB (500).
  • Audit trail: every action on Moodle is recorded in audit.log (0600, in the config directory) with its outcome — confirmed, refused, or run without confirmation — with no tokens and rotation at 1 MB.
  • Less personal data: get_course_participants returns only id, name, roles and groups; classmates' emails and profile data never reach the LLM provider.
  • Secrets: credentials.json and last_auth.log are written atomically and already 0600; an unreadable credentials.json is set aside rather than deleted; moodle-mcp --show-config (and startup) warn about files readable by other users.

Configuration

Nothing is required — every option has a default. Configuration is layered, highest precedence first:

  1. Environment variables — how MCP clients inject options (env in Claude, environment in opencode).
  2. `config.toml` in the user config directory.
  3. `credentials.json` in the same directory — tokens only, 0600.
  4. `.env` next to the code — legacy, still read.

The config directory follows the OS: ~/.config/moodle-mcp (Linux), ~/Library/Application Support/moodle-mcp (macOS), %LOCALAPPDATA%\moodle-mcp (Windows). It doesn't live next to the code because under uvx/pipx the package runs from an ephemeral, possibly read-only cache.

moodle-mcp --show-config      # where everything is read from, secrets redacted

moodle-mcp --list-toolsets # which tools each toolset exposes moodle-mcp --set sync_subdir=Moodle --set instances.utad.url=https://e-learning.utad.pt moodle-mcp --set language=en # note text in English (default: pt)

Note options: language (pt/en), dashboard_name (default: an existing Doutoramento - Painel Moodle note, else Painel Moodle/Moodle Dashboard), courses_dir (default Unidades Curriculares), sync_subdir.

Scheduled sync
moodle-mcp --sync                    # sync every instance with a token, now

moodle-mcp --schedule 6 # every 6 hours (1–24); add --materials to download files too moodle-mcp --unschedule

The task runs moodle-mcp --sync and reads the same config.toml and credentials.json; no token goes into the task files or the command line. The scheduler doesn't see your shell or MCP client environment, so put the vault in config.toml (moodle-mcp --set obsidian_vault_dir=…) rather than only in the client's env. The result of the last run is in last_sync.log, in the config directory.

Moodle instances
default_instance = "uab"

[instances.uab] url = "https://elearning.uab.pt"

[instances.utad] url = "https://e-learning.utad.pt"

or via environment: MOODLE_ _URL and MOODLE_ _TOKEN.

Unnamed MOODLE_URL / MOODLE_TOKEN still work as the default instance, but only while no named instance exists — otherwise one university's token could be sent to another's server.

Toolsets
--toolsTools~tokensWrites to Moodle
(default)22~5,500no
core,grades,forums,obsidian,write29~7,900yes
all33~9,700yes, plus the raw API
core,obsidian13~3,700no
core8~1,750no

core is always included. write and raw log a warning at startup. auth (tools that sto

Only the beginning is shown; read the rest in the repo