原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Moodle MCP Server Aql

作者:csmediapro版本 0.1.6i★ –i在你的电脑上运行
注册名称io.github.csmediapro/moodle-mcp-server-aql

安装

概览

作者提供的说明(英文原文)

Query Moodle LMS data through natural language. Attach your agent to your LMS data.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:MOODLE_URL, MOODLE_TOKEN

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: MOODLE_URL, MOODLE_TOKEN

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "moodle-aql": {
      "command": "npx",
      "args": [
        "-y",
        "moodle-mcp-server-aql"
      ],
      "env": {
        "MOODLE_URL": "your-value",
        "MOODLE_TOKEN": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add moodle-aql --env MOODLE_URL=your-value --env MOODLE_TOKEN=your-value -- npx -y moodle-mcp-server-aql

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "moodle-aql": {
      "command": "npx",
      "args": [
        "-y",
        "moodle-mcp-server-aql"
      ],
      "env": {
        "MOODLE_URL": "your-value",
        "MOODLE_TOKEN": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "moodle-aql": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "moodle-mcp-server-aql"
      ],
      "env": {
        "MOODLE_URL": "your-value",
        "MOODLE_TOKEN": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • MOODLE_URL 必填 env
    Base URL for the Moodle instance to query.
  • MOODLE_TOKEN 机密 必填 env
    Moodle Web Services API token.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 csmediapro 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 18433 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 18433 个服务器的 52% 更新
  • 基础检查结果等于或优于此分类中其他 18433 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Moodle MCP Server Aql 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:MOODLE_URL, MOODLE_TOKEN

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.6)于42天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, MyGroceryPal

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 2113天前更新
安装

MyGroceryPal

作者:mygrocerypal.co.uk

UK supermarket prices: compare products and baskets across 13 stores, see price history, set alerts.

在云端运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

moodle-mcp-server — AI-Powered LMS Analytics

Ask your Moodle instance anything. Get structured answers in seconds.

moodle-mcp-server is an open-source MCP (Model Context Protocol) server that connects AI agents directly to Moodle's Web Services API. It is the first reference implementation of the Agentic Query Layer (AQL) pattern — a software design pattern for giving large language models safe, permission-aware, read-only access to structured data.

Instead of learning report builders, writing SQL, or exporting CSVs, you ask questions in plain English — the AI agent queries your LMS and returns structured data.

AQL pattern: https://csmediapro.com/notes/agentic-query-layer Project home: https://csmediapro.com/products/moodle-mcp-server npm package: https://www.npmjs.com/package/moodle-mcp-server-aql MCP Registry: io.github.csmediapro/moodle-mcp-server-aql


Features

  • Core query tools — course catalog, user enrollment, assignments, category navigation, site metadata, user lookup, and cache management
  • Premium reporting plugins — optional tools such as course completion reports and recent activity can be attached through the plugin runtime
  • LLM-agnostic — works with Claude, GPT, Gemini, Ollama, or any MCP-compatible AI client
  • Zero LMS modification — uses Moodle's existing Web Services API, no plugin installation required
  • Compliance-ready data handling — secure, efficient data processing with privacy by design
  • Read-only — never modifies Moodle data, safe for production
  • Plugin-extensible — drop new tool modules into a directory; tools and optional agent routing hints auto-register at runtime

Quick Start

Prerequisites
  • Node.js 20+
  • A Moodle instance with Web Services enabled
  • A Moodle API token (Site administration → Plugins → Web services → Manage tokens)
Use With An MCP Client

Most users launch the server through an MCP client such as Claude Desktop:

{

"mcpServers": { "moodle-mcp-server-aql": { "command": "npx", "args": ["-y", "moodle-mcp-server-aql"], "env": { "MOODLE_URL": "https://your-moodle-instance.example", "MOODLE_TOKEN": "your-moodle-web-services-token" } } } }

Setup From Source
# Clone the repo

git clone https://github.com/csmediapro/moodle-mcp-server cd moodle-mcp-server

Install dependencies

npm install

Configure

cp packages/server/.env.example packages/server/.env

Edit .env: add your MOODLE_URL and MOODLE_TOKEN

Run (stdio mode)

npm run server:build node packages/server/dist/index.js

User field schema

User field display settings are generated per Moodle instance and stored locally at packages/server/data/user-field-schema.json. This file is intentionally ignored by git because it can include site-specific custom profile fields.

After connecting to a Moodle site, run the refresh_user_field_schema tool once to discover available standard and custom user fields. A minimal example shape is included at packages/server/data/user-field-schema.example.json.

Separately installed plugins can use this schema to flatten custom profile fields into stable keys such as school. The premium user-directory plugin, for example, uses it to cache and summarize full-user directory fields outside the OSS core.

Config identity

The core owns two different server identity fields:

  • server.id — stable machine identity, for example mcp_8f3k2q9x
  • server.name — human-facing display label

If server.id is missing, the core generates one once and persists it to the resolved config file before startup continues.

Environment overrides:

  • MOODLE_MCP_CONFIG or MOODLE_MCP_SERVER_CONFIG — choose the config file path
  • SERVER_ID — explicit server.id override
  • SERVER_NAME — explicit server.name override
  • SERVER_VERSION — explicit server.version override

If server.id is missing and the resolved config path is not writable, startup fails deliberately.

Using the reference client
# From the project root

cp packages/client/.env.example packages/client/.env npm run client:dev

Open http://localhost:3000

The client will auto-detect your Moodle instance and present a chat interface where you can ask questions in plain English.


Connecting an LLM

moodle-mcp-server needs an AI model to power the natural-language interface. You bring the model — the moodle-mcp-server core and reference client support any MCP-compatible provider.

Option 1: Run Locally (Recommended for Speed & Privacy)

Running a local model keeps all data on your own hardware — nothing leaves your network. Modern quantized models run well on consumer GPUs and even CPU-only setups.

Performance: A quantized 24B model on a single RTX 3090 delivers ~1.5-second responses after the first query — faster than most cloud APIs once the system is initialized.

Via Ollama (easiest)
# Install Ollama: https://ollama.com

ollama pull gemma3:12b # Fast, reliable tool use (~200ms TTFT) ollama pull qwen3:14b # Strong reasoning, good for complex queries ollama pull deepseek-r1:14b # Excellent at multi-step chains

Then point the reference client at http://localhost:11434 (Ollama's default).

Via llama.cpp (maximum control)
# Download a GGUF model (example: Devstral 24B Q4)

Run the llama.cpp server:

llama-server -m devstral-24b-Q4_K_M.gguf --ctx-size 60000 --port 8080

Point the reference client at http://localhost:8080/v1.

Recommended local models
ModelSizeBest ForHardware
Gemma 3 12B~7 GB VRAMFast tool calls, straightforward queriesSingle consumer GPU
Qwen 3 14B~8.5 GB VRAMComplex reasoning, multi-tool chainsSingle consumer GPU
Devstral 24B Q4~14.5 GB VRAMMaximum capability, 60K contextRTX 3090 / 4090
Option 2: Cloud Providers

Anthropic (Claude):

export ANTHROPIC_API_KEY=sk-ant-...

Select "Anthropic" in the reference client's provider dropdown. Claude Sonnet offers the most reliable tool-calling behavior.

OpenAI (GPT):

export OPENAI_API_KEY=sk-...

Select "OpenAI" in the provider dropdown. GPT-4o performs well on structured queries.

Ollama Cloud: Uses the same API as local Ollama, hosted at https://ollama.com/v1. Good middle ground — faster than local cold starts, more private than big cloud providers.

Option 3: Claude Desktop (Direct MCP)

Claude Desktop connects to the moodle-mcp-server core directly over stdio — no reference client needed.

Add to your Claude Desktop config (claude_desktop_config.json):

{

"mcpServers": { "moodle-mcp-server": { "command": "node", "args": ["/path/to/moodle-mcp-server/packages/server/dist/index.js"], "env": { "MOODLE_URL": "https://your-moodle-instance.com", "MOODLE_TOKEN": "your-api-token" } } } }

Restart Claude Desktop. The server's tools will appear in Claude's tool list — ask questions directly.


Tools

Core Tools (free, open source — AGPL)
ToolDescription
list_coursesFull course catalog with category drill-down
get_courseDetail view for any course
list_course_usersEnrolled users with roles and access data (now supports course name search with interactive selection)
list_assignmentsAll assignments with due dates
list_categoriesFull hierarchy with exact parent resolution
get_site_infoInstance overview — site name, version, course count
get_userDetail view for a Moodle user
list_user_coursesCourses for a specific user
search_usersUser search by standard Moodle identity fields
search_courses_by_nameSearch for courses by name with partial matching and interactive selection
Premium Plugins (available separately)
  • Advanced Reporting — gradebooks, cross-course comparison, custom report builder
  • User Analytics — progress tracking, engagement scoring, risk flags
  • User Directory — cached directory listing and structured filtering across standard and custom profile fields
  • Compliance Pack — certification tracking, expiration alerts, audit exports

Architecture

This project is a reference implementation of the Agentic Query Layer (AQL) pattern — a layer that sits between an AI agent and your data, providing permission-aware, read-only, plain-language access without exposing the underlying data to the model.

User (plain English question)

│ ▼ AI Agent (Claude / GPT / Gemini / Ollama / local) │ ▼ MCP Protocol moodle-mcp-server ← AQL connector for Moodle ├── Tool Registry (core + plugins) ├── Agent Runtime Config (core + plugin rules) ├── Optimized Data Layer (secure, efficient data handling) └── Moodle Client (REST API calls) │ ▼ Moodle Web Services API

Transport modes
  • Stdio — dist/index.js — runs as a subprocess, used by Claude Desktop and similar clients

The OSS core intentionally ships with stdio only. Any network-facing wrapper, remote supervision, or premium plugin attachment belongs in a separate commercial node agent or wrapper.

Plugin docs
  • Plugin Contract
  • Creating Plugins
  • Hello Plugin Example

License

AGPL v3 — see LICENSE.

This means you can:

  • ✅ Use the moodle-mcp-server core for free, in any environment
  • ✅ Modify the source code for your needs
  • ✅ Build and distribute derivative works

You cannot:

  • ❌ Repackage the moodle-mcp-server core as a closed-source competing commercial product
  • ❌ Offer it as a network service without sharing your modifications

Trademark Notice

Moodle is a trademark of Moodle Pty Ltd. moodle-mcp-server is an independent CSMediaPro project and is not affiliated with, endorsed by, sponsored by, or officially connected to Moodle Pty Ltd or the Moodle project. The name is used descriptively to identify compatibility with Moodle LMS.


Built by CSMediaPro

moodle-mcp-server is built and maintained by CSMediaPro, a software development company specializing in AI integration, systems engineering, and workflow automation. It is the first reference implementation of the Agentic Query Layer (AQL) pattern.

  • AQL pattern: https://csmediapro.com/notes/agentic-query-layer
  • Contact: contact@csmediapro.com
问 PopNx