lms-polinema-mcp
This server lets AI agents read and monitor your LMS Polinema courses, assignments, materials, and deadlines.
List enrolled courses for the current semester
List all active assignments, optionally filtered by course
Get detailed assignment info: instructions, attachments, submission status, due date, and time remaining
List course materials like slides, documents, and folders
Check deadline summaries across all courses
Works with MCP-compatible clients (Claude Code, Cursor, Antigravity) using automated SIAKAD→SLC→Moodle authentication
Provides tools for interacting with the LMS Polinema Moodle instance, enabling agents to list courses, view assignments and materials, and check deadlines.
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., "@lms-polinema-mcp what assignments are due this week?"
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.
lms-polinema-mcp
An MCP server for LMS Polinema. Gives AI agents access to your courses, assignments, deadlines, and materials.
Works with Claude Code, Cursor, Antigravity, or any MCP-compatible client.
How it works
Polinema does not allow direct Moodle logins with student credentials. Authentication flows through an institutional single sign-on chain: SIAKAD (academic portal) → SLC (SPADA gateway) → LMSSLC (Moodle).
On first run, auth.py authenticates via SIAKAD (NIM and password) using HTTP requests (httpx), exchanges tokens through SLC, and captures the authenticated MoodleSession. Session cookies are saved to ~/.lms_polinema/. When a session expires, the server re-authenticates automatically in the background without requiring browser binaries.
Related MCP server: MoodlIA MCP Server
Tools
Tool | Parameters | Returns |
| - | Enrolled courses for the current semester |
|
| Assignments, optionally filtered by course |
|
| Instructions, attachments, submission status |
|
| Material links and metadata (slides, jobsheets, folders) |
| - | Deadline summary across all courses |
Installation
Requires Python 3.11+ and uv.
git clone https://github.com/hafidzrafi/lms-polinema-mcp.git
cd lms-polinema-mcp
uv syncRun once to set up credentials:
uv run auth.pyCredentials are stored as plaintext JSON at ~/.lms_polinema/credentials.json (0600 permissions).
Configuration
Add to your MCP client config:
{
"mcpServers": {
"lms-polinema": {
"command": "uv",
"args": ["run", "--directory", "/path/to/lms-polinema-mcp", "lms-polinema-mcp"]
}
}
}Or use the virtualenv directly:
macOS / Linux: .venv/bin/python -m lms_polinema_mcp.server
Windows: .venv\Scripts\python.exe -m lms_polinema_mcp.server
Settings can be overridden via environment variables or a .env file:
Variable | Default | Description |
|
| Request timeout (seconds) |
|
| Course list cache lifetime |
|
| Session validation cache lifetime |
|
| SIAKAD portal URL |
|
| Moodle URL |
See .env.example for the full list.
Known limitations
All data is retrieved by scraping HTML. The Moodle Web Services API is disabled on this instance.
All operations are currently read-only; assignment submission is not supported.
lms_list_materialsreturns resource links and metadata, not downloaded file contents.Courses without an active Moodle link configured by the lecturer will return
moodle_id: null.Sessions expire after ~30 min idle. Re-auth happens automatically in the background.
SSL verification is disabled for
lmsslc.polinema.ac.idandslc.polinema.ac.iddue to a missing intermediate CA.
Disclaimer
This project is an independent open-source utility for academic productivity and is not officially affiliated with or endorsed by State Polytechnic of Malang (Polinema).
License
MIT License - Hafidz Rafi' Rabbani
Available Tools
5 toolslms_check_deadlinesA
Return deadline summary for all active assignments across all enrolled courses.
Inputs: no named parameters. Returns: result
lms_get_assignment_detailB
Return complete assignment details including instructions, attachments, and submission status.
Inputs: assignment_id (required). Returns: Detailed assignment record including submission status and instructions.
lms_list_assignmentsA
Return all active assignments, optionally filtered by specific course_id.
Inputs: course_id. Returns: result
lms_list_coursesA
Return all enrolled academic courses for the current semester from SPADA portal.
Inputs: no named parameters. Returns: result
lms_list_materialsA
Return all educational material items (slides, documents, folders) for a specific course.
Inputs: course_id (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool maps to a distinct resource or action: courses, assignments, assignment details, materials, and deadlines. There is no overlap in purpose, and the descriptions clearly differentiate them.
All tools follow a consistent verb_noun pattern with the 'lms' prefix recommended for MCP servers caterpillar walking. The only minor deviation is 'lms_check_deadlines' which uses a verb that is semantically different from 'list' or 'get', but it still matches the pattern.
With 5 tools, the server is well-scoped for an LMS portal integration. Each tool provides essential functionality without redundancy, covering the primary needs of listing and retrieving data.
The tools cover read-only operations for courses, assignments, materials, and deadlines. Missing are mutating operations like creating or submitting assignments, and there is no tool for listing modules or grades, which are common in LMS platforms. However, the core browsing workflow is supported.
Maintenance
Related MCP Connectors
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Your AI agent builds interactive block-based courses over MCP; take them at learnwithagents.app.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
AI agent registry — search, discover, register, and connect agents via MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to access Canvas LMS academic data such as courses, assignments, grades, and events via MCP tools.-
- AlicenseNot gradedqualityBmaintenanceEnables LLM agents and automation tools to interact with Moodle through a permission-checked MCP endpoint, covering courses, activities, question banks, enrolments, and administrative operations via 240 external functions.4GPL 3.0
- AlicenseNot gradedqualityDmaintenanceMCP server that lets AI agents securely access E-Disciplinas courses, materials, and files via Moodle Web Services API.4 npmMIT
- AlicenseAqualityCmaintenanceEnables MCP-capable AI clients to query course announcements, deadlines, grades, and assignments and to preview or incrementally sync course materials to local storage.10MIT