Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MOODLE_MCP_HOMENoData folder, stored under hosted/. Defaults to ~/.config/moodle-mcp.
MOODLE_MCP_HOSTNoListen address for hosted HTTP mode. Defaults to 127.0.0.1.
MOODLE_MCP_PORTNoListen port for hosted HTTP mode. Defaults to 3000.
MOODLE_MCP_MASTER_KEYNoRequired for hosted HTTP mode. 32 random bytes in base64. The server refuses to start without it.
MOODLE_MCP_PUBLIC_URLNoRequired for hosted HTTP mode. Public origin with no path, using HTTPS. Requests with any other Host are refused.
MOODLE_MCP_TRUST_PROXYNoNumber of proxies in front of the server, so rate limits see real client addresses. Without it, all users share one limit; set too high, clients can spoof their address.
MOODLE_MCP_ALLOWED_SITESNoComma-separated Moodle hostnames. Recommended for a single school.
MOODLE_MCP_ALLOW_PRIVATE_SITESNoSet to 1 to turn off the private address check. For tests only.
MOODLE_MCP_PREVIOUS_MASTER_KEYNoOld master key during key rotation.
MOODLE_MCP_ALLOWED_REDIRECT_HOSTSNoComma-separated HTTPS hostnames of client apps allowed to register. Recommended to reduce consent phishing.
MOODLE_MCP_DISABLE_PASSWORD_LOGINNoSet to 1 to accept security keys only, so passwords never reach the server.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources