Back to Home
suvires icon

moodle-mcp-server

by suvires

Overview

The server acts as a multi-tenant Model Context Protocol (MCP) gateway, exposing Moodle API functionalities as tools for integration with AI agents or other services.

Installation

Run Command
npx tsx src/index.ts

Environment Variables

  • PORT
  • TENANT1_APIKEY
  • TENANT1_MOODLEURL
  • TENANT1_MOODLETOKEN
  • TENANT2_APIKEY
  • TENANT2_MOODLEURL
  • TENANT2_MOODLETOKEN

Security Notes

The server has critical security vulnerabilities. Moodle API tokens are included directly as query parameters (`wstoken`) in the URL for all Moodle API calls, which means they are highly susceptible to leakage through server logs, proxy logs, and network interception, even over HTTPS. Additionally, default API keys ('key_demo_1', 'key_demo_2') are hardcoded, potentially leading to predictable authentication in misconfigured environments. API keys are also passed in the URL path, which is not ideal for sensitive information.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2026-01-19

Tags

MCPMoodleAPI GatewayTypeScriptTooling