MCP
插件Web 服务

MCP

webservice_mcponbirdev

  • Moodle 1.9–5.1
  • 更新 2026-07-23

A Moodle web service plugin that implements the Model Context Protocol (MCP) for seamless integration with AI assistants and external systems.
A Moodle web service plugin that implements the Model Context Protocol (MCP) for seamless integration with AI assistants and external systems. This plugin exposes Moodle’s external functions as MCP tools using JSON-RPC 2.0, making them discoverable and callable by MCP-compatible clients.
Features
MCP Protocol Implementation : Full support for Model Context Protocol using JSON-RPC 2.0
Dynamic Tool Discovery : Automatically exposes Moodle external functions as MCP tools
JSON Schema Generation : Converts Moodle parameter descriptions to JSON Schema for better tool documentation
Token-based Authentication : Secure access using Moodle’s external service tokens
Service-aware : Only exposes functions available to the authenticated service
Well-tested : Comprehensive PHPUnit test coverage
Easy Integration : Built-in client class for quick integration with other systems
Configuration
1. Enable Web Services
Go to Site administration → Advanced features
Enable Enable web services
Save changes
2. Enable MCP Protocol
Go to Site administration → Plugins → Web services → Manage protocols
Enable Model Context Protocol (MCP)
3. Create an External Service
Go to Site administration → Server → Web services → External services

返回插件目录