Smartschool MCP Server

v0.3.0
io.github.MauroDruwel/smartschool-mcp Checked 3 days ago Published 2 months ago

Access Smartschool courses, grades, assignments, and messages through the Model Context Protocol

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_courses

Retrieve all available courses with their teachers. Returns: List of courses with name and teacher information.

get_results

Retrieve student results/grades with detailed information. Args: limit: Maximum number of results to return (default: 15) offset: Number of results to skip from the beginning (default: 0) course_filter: Filter results by course name (partial match, case-insensitive) include_details: Whether to fetch detailed info (teacher, average, median) - saves API calls if False Returns: Dictionary with results list and pagination info. Examples: - get_results() -> First 15 results with details - get_results(course_filt…

ParameterTypeDescription
course_filter
include_detailsboolean
limitinteger
offsetinteger

get_future_tasks

Retrieve upcoming assignments and tasks. Returns: Dictionary with future tasks organized by date and course.

get_messages

Retrieve messages from the specified mailbox with filtering options. Args: limit: Maximum number of messages to return (default: 15) offset: Number of messages to skip from the beginning (default: 0) box_type: Type of mailbox - "INBOX", "SENT", "DRAFT", "SCHEDULED", "TRASH" (default: "INBOX") search_query: Search in subject and body content (case-insensitive) sender_filter: Filter messages by sender name (partial match, case-insensitive) include_body: Whether to include full message body (default: Fal…

ParameterTypeDescription
box_typestring
include_bodyboolean
limitinteger
offsetinteger
search_query
sender_filter

get_schedule

Retrieve the lesson schedule for a given day. Args: date_offset: Days from today (0=today, 1=tomorrow, -1=yesterday, default: 0) Returns: Dictionary with the lessons scheduled for the given date.

ParameterTypeDescription
date_offsetinteger

get_periods

Retrieve academic periods/terms for the current school year. Returns: List of academic periods with name, dates, and active status.

get_reports

Retrieve available academic report cards. Returns: List of report cards with name, date, class, and school year label.

get_planned_elements

Retrieve planned assignments and to-dos from the Smartschool planner. Args: days_ahead: Number of days ahead to fetch (default: 34) Returns: Dictionary with planned elements including dates, courses, and assignment types.

ParameterTypeDescription
days_aheadinteger

get_attachments

List all attachments for a specific message. Args: message_id: The ID of the message to get attachments for (from get_messages results). Returns: Dictionary with attachment list including file names, sizes, and IDs for downloading. Examples: - get_attachments(249184) -> List attachments for message 249184

ParameterTypeDescription
message_id *integer

download_attachment

Download a specific attachment from a message. Files are saved to *save_path* when provided, otherwise to ~/Downloads/smartschool/. The directory is created automatically. Existing files are never overwritten — a counter suffix is appended instead (e.g. ``report (1).pdf``). Args: message_id: The ID of the message containing the attachment. file_id: The file ID of the attachment to download (from get_attachments). save_path: Optional directory to save the file into. Returns: Dictionary with the saved file path, filename, mime ty…

ParameterTypeDescription
file_id *integer
message_id *integer
save_path

get_homepage_blocks

Retrieve the "in de kijker" blocks pinned to the Smartschool homepage. Schools use these blocks for recurring content that is never sent as a message and never lands in a document module — a monthly lunch menu ("Maandmenu"), a monthly calendar ("Maandkalender"), announcements. The content is frequently an embedded image rather than text, so ``images`` is usually where the information actually lives. Args: include_html: Also return each block's raw inner HTML (default: False). Returns: Dictionary with the list of blocks. Each block has a tit…

ParameterTypeDescription
include_htmlboolean

download_homepage_image

Download an image embedded in a homepage block. Use the URLs returned in ``get_homepage_blocks()["blocks"][*]["images"]``. Only assets on the configured Smartschool host are accepted. Args: image_url: Image URL from get_homepage_blocks. save_path: Optional directory to save into (default: ~/Downloads/smartschool/). Returns: Dictionary with the saved file path and bytes written.

ParameterTypeDescription
image_url *string
save_path