PGEK-moodle-mcp
Provides integration with a Moodle instance, enabling AI assistants to browse course categories and courses, search the catalog, retrieve course contents and module details (files, forums, assignments, books, links), check course access, manage sessions, and call the Moodle WebService API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PGEK-moodle-mcpПокажи мои курсы и ближайшие дедлайны по заданиям"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ПГЭК Moodle MCP
MCP-сервер для Moodle Полоцкого государственного экономического колледжа: каталог курсов, учебные материалы, задания, тесты, форумы — прямо из AI-ассистента.
Сервер:
http://82.209.208.36:8080/moodle(настраивается черезMOODLE_URL)Стек: Python 3.10+, FastMCP (
mcp>=1.0,<2), httpx, BeautifulSoupВерсия: 0.1.0 · Лицензия: MIT
Установка
py -m pip install -r requirements.txt
copy .env.example .env
# впиши MOODLE_SESSION (кука MoodleSession из браузера после входа на Moodle)
py server.pyRelated MCP server: Moodle MCP Server
Подключение к Opencode / Claude Desktop
Скопируй opencode.example.json в opencode.json (для Opencode)
и впиши абсолютный путь к server.py. Либо добавь блок в свой MCP-конфиг:
{
"mcp": {
"pgek-moodle": {
"type": "local",
"command": ["py", "C:\\path\\to\\pgek-moodle-mcp\\server.py"],
"enabled": true
}
}
}Настройки читаются из .env (загружается автоматически).
Tools (14)
Tool | Доступ | Что делает |
| — | URL, наличие токена/сессии, режим |
| public | Категории: ПОИТ, БУАиК, право, логистика, IT-Кузница... |
| public | Курсы категории, пагинация |
| public | Описание курса + преподаватели |
| public | Поиск по каталогу |
| session | Кто залогинен |
| session/token | Мои курсы |
| session | Разделы → модули всех типов ( |
| session | Деталка модуля: файлы, обсуждения форума, дедлайны задания, главы книги, внешняя цель ссылки |
| session | Любой внутренний URL: глава книги, обсуждение, |
| session | Доступ к чужому курсу: full/denied + кому написать |
| — | Получить |
| — | Установить |
| token | Прямой вызов Moodle WebService API |
Типовой флоу: moodle_course_access → moodle_course_contents → moodle_module / moodle_module_by_url.
Важно про доступ
Каталог (категории, описания, преподаватели) виден всем специальностям без логина.
Материалы Moodle отдаёт только зачисленным. У чужих курсов нет самозаписи и гостевого доступа —
moodle_course_accessчестно покажет границу.Один сервер — любые группы: студент ставит свою куку через
moodle_set_session.
Безопасность
.envсMOODLE_SESSION/MOODLE_TOKEN— только локально, в git не коммитится.Сессия протухает: обнови куку из DevTools → Application → Cookies →
MoodleSession.Не публикуй куку и токен — это твой вход в Moodle.
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect your Moodle to AI assistants: courses, content, grading and reports from the chat.
Create, edit, translate, and export SCORM eLearning modules from a connected AI assistant.
AI-powered LMS course builder: 89 tools, 17 skills, SCORM/xAPI export, agentic UI
Automate 1,000+ services from any MCP-compatible AI agent: build Applets, run actions and queries.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Moodle learning management systems through the Moodle REST API. Supports course management, user enrollment, assignments, forums, quizzes, and file operations through natural language.10 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Moodle learning management systems through the REST API. Supports course management, user enrollment, assignment handling, and forum operations through natural language.10 npmMIT
- AlicenseAqualityCmaintenanceEnables AI assistants to interact with Moodle via web services, allowing tasks like listing courses, assignments, events, and downloading files.104MIT
- FlicenseAqualityDmaintenanceEnables AI tools to access student profiles, course lists, grades, page contents, and course materials from the eKursy platform via the Model Context Protocol.6-