Smartschool MCP Server

Smartschool MCP Server

smartschool-mcp•byabriantolabs

An MCP server that gives AI assistants secure access to Smartschool APIs by auto-discovering methods and exposing them as MCP tools with multi-level safety guardrails.

License: MIT License•Runtime: Awaiting documentation review•Category: communication social

WHAT IT DOES

  • •Automatically detects all Smartschool API methods and exposes them as MCP tools, adapting when the Smartschool SDK updates.
  • •Classifies operations into SAFE, MODERATE, DESTRUCTIVE, and CRITICAL safety levels with restrictions on high-impact actions.
  • •Requires explicit confirmation parameter before executing destructive or critical operations when confirmation is enabled.
  • •Provides domain knowledge about Smartschool conventions such as username patterns, absence codes, user roles, and co-accounts.

BEST FOR

  • •Looking up student details and attendance records from an AI assistant.
  • •Managing users and classes with guarded destructive operations.
  • •Sending messages to users or parents through Smartschool.

ABOUT SMARTSCHOOL-MCP

Smartschool MCP Server is cataloged as an MCP server attributed to abriantolabs. An MCP server that gives AI assistants secure access to Smartschool APIs by auto-discovering methods and exposing them as MCP tools with multi-level safety guardrails. It is categorized under communication social. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Smartschool MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server prevent risky operations?

Risky operations are blocked unless destructive operations are enabled and the call includes the confirmDestructiveAction flag.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 7d90f28bb30c · 采集于 2026-11-13 10:53:53 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Smartschool MCP Server 🏫

A dynamic Model Context Protocol (MCP) server that provides AI assistants with secure access to Smartschool APIs. This server automatically discovers all available Smartschool methods and exposes them as MCP tools with comprehensive safety guardrails.

✨ Features

  • 🔄 Dynamic Auto-Discovery: Automatically detects all Smartschool API methods
  • 🛡️ Enterprise Safety: Multi-level protection against destructive operations
  • 🧠 AI-Optimized: Rich context and domain knowledge for better AI understanding
  • 🚀 Future-Proof: Adapts automatically when Smartschool SDK updates
  • 📚 Domain Expert: Built-in knowledge of Belgian school systems and conventions
  • ⚡ Zero Maintenance: No manual tool definitions required

🚀 Quick Start

Prerequisites

  • Node.js 18+ or compatible JavaScript runtime
  • Access to a Smartschool instance
  • Valid Smartschool API credentials

Installation

# Clone the repository
git clone https://github.com/AbriantoLabs/smartschool-mcp.git
cd smartschool-mcp

# Install dependencies
npm install

# Build the project
npm run build

Configuration

Set up your environment variables:

# Required: Smartschool API Configuration
export SMARTSCHOOL_API_ENDPOINT="https://your-school.smartschool.be/Webservices/V3"
export SMARTSCHOOL_ACCESS_CODE="your-access-code"

# Optional: Safety Configuration
export ALLOW_DESTRUCTIVE=false          # Enable destructive operations
export REQUIRE_CONFIRMATION=true        # Require confirmation for risky operations

Running the Server manually

# Direct execution
node build/mod.js

# Or via npm script
npm start

🔧 Usage with AI Assistants

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "smartschool": {
      "command": "npx",
      "args": ["-y", "@abrianto/smartschool-mcp"],
      "env": {
        "SMARTSCHOOL_API_ENDPOINT": "https://your-school.smartschool.be/Webservices/V3",
        "SMARTSCHOOL_ACCESS_CODE": "your-access-code",
        "ALLOW_DESTRUCTIVE": "false",
        "REQUIRE_CONFIRMATION": "true"
      }
    }
  }
}

or manually:

{
  "mcpServers": {
    "smartschool": {
      "command": "node",
      "args": ["/path/to/smartschool-mcp-server/build/mod.js"],
      "env": {
        "SMARTSCHOOL_API_ENDPOINT": "https://your-school.smartschool.be/Webservices/V3",
        "SMARTSCHOOL_ACCESS_CODE": "your-access-code",
        "ALLOW_DESTRUCTIVE": "false",
        "REQUIRE_CONFIRMATION": "true"
      }
    }
  }
}

Other MCP-Compatible AI Systems

The server communicates via stdio and follows the MCP specification. Configure your AI system to:

  1. Launch the server as a subprocess
  2. Connect via stdin/stdout
  3. Set the required environment variables

🛡️ Safety System

The server implements a comprehensive 4-level safety classification:

Safety Levels

LevelDescriptionExamplesBehavior
🟢 SAFERead-only operationsgetUserDetails, getAbsentsNo restrictions
🟡 MODERATEReversible changessendMsg, savePasswordAlways allowed
🔥 DESTRUCTIVEHigh-impact changessaveUser, saveClassRequires ALLOW_DESTRUCTIVE=true
💀 CRITICALPermanent deletionsdelUser, delClassRequires ALLOW_DESTRUCTIVE=true

Confirmation System

Destructive and critical operations require explicit confirmation:

// This will be blocked without confirmation
{
  "username": "john.doe",
  "name": "John",
  "surname": "Doe",
  "basisrol": "leerling"
}

// This will execute (with confirmDestructiveAction)
{
  "username": "john.doe", 
  "name": "John",
  "surname": "Doe",
  "basisrol": "leerling",
  "confirmDestructiveAction": true  // ← Required!
}

Environment Controls

# Production (safe defaults)
export ALLOW_DESTRUCTIVE=false      # Blocks destructive operations
export REQUIRE_CONFIRMATION=true    # Requires explicit confirmation

# Development (more permissive)
export ALLOW_DESTRUCTIVE=true       # Allows all operations
export REQUIRE_CONFIRMATION=false   # No confirmation required (not recommended)

🧠 AI Context & Domain Knowledge

The server provides rich context to help AI understand Smartschool conventions:

Username Conventions

  • Pattern: firstname.lastname (e.g., "John Doe" → "john.doe")
  • Auto-conversion: Names automatically converted to usernames
  • Smart suggestions: Helpful tips when name-like input detected

Absence Codes

Comprehensive explanation of Belgian school absence codes:

CodeMeaningDescription
|PresentStudent was in attendance
LLateStudent arrived late
ZSickAbsent due to illness
DDoctorMedical appointment
BKnownPre-notified absence
RUnforeseenEmergency/family reasons
-UnknownUnexplained absence

[See full list in code for all 20+ codes]

User Roles

  • leerling: Student
  • leerkracht: Teacher
  • directie: Management/Administration
  • andere: Other staff

Co-Account System

  • 0: Main account (student/teacher)
  • 1: First co-account (typically first parent)
  • 2: Second co-account (typically second parent)
  • 3-6: Additional co-accounts

📚 Available Operations

The server automatically exposes all Smartschool API methods. Here are some key categories:

👥 User Management

  • getUserDetails - Get comprehensive user information
  • saveUser - Create or update users (Destructive)
  • delUser - Delete users permanently (Critical)
  • setAccountStatus - Activate/deactivate accounts
  • savePassword - Set/change passwords

🏛️ Classes & Groups

  • getClassTeachers - List class-teacher assignments
  • saveClass - Create/modify classes (Destructive)
  • saveUserToClass - Assign students to classes
  • delClass - Delete classes permanently (Critical)

📬 Communication

  • sendMsg - Send messages to users/parents
  • saveSignature - Set email signatures

📊 Attendance & Reporting

  • getAbsents - Get student absence records
  • getAbsentsByDate - Daily attendance reports
  • getStudentCareer - Academic history

⚙️ Administration

  • startSkoreSync - System synchronization (Critical)
  • addHelpdeskTicket - Create support tickets
  • getAllAccountsExtended - Bulk user data export

🔍 Example Interactions

Safe Operations (No confirmation needed)

# Get student details by name (auto-converts to username)
{
  "tool": "smartschool-getUserDetails",
  "params": {
    "userIdentifier": "John Doe"  # Becomes "john.doe"
  }
}

# Check attendance for a date  
{
  "tool": "smartschool-getAbsentsByDate", 
  "params": {
    "date": "2024-12-15"
  }
}

Destructive Operations (Confirmation required)

# Create a new student (requires confirmation)
{
  "tool": "smartschool-saveUser",
  "params": {
    "username": "jane.smith",
    "name": "Jane", 
    "surname": "Smith",
    "basisrol": "leerling",
    "email": "jane.smith@student.school.be",
    "confirmDestructiveAction": true  # Required!
  }
}

Critical Operations (Extreme caution)

# Delete a user (requires ALLOW_DESTRUCTIVE=true + confirmation)
{
  "tool": "smartschool-delUser",
  "params": {
    "userIdentifier": "former.student", 
    "confirmDestructiveAction": true  # Required!
  }
}

🚨 Error Handling

The server provides comprehensive error handling:

Safety Blocks

🚫 Operation blocked: saveUser requires confirmation.

🔥 HIGH RISK: This operation will create, modify, or remove important data. 
Changes may be difficult to reverse.

To proceed, add: confirmDestructiveAction: true

Configuration Errors

⚠️ Skipping delUser: 🚫 CRITICAL operations are disabled. 
Set ALLOW_DESTRUCTIVE=true to enable.

API Errors

Error in getUserDetails: Invalid username or user not found

🔧 Development

Project Structure

smartschool-mcp-server/
├── src/
│   └── mod.ts              # Main server implementation
├── build/                  # Compiled JavaScript
├── package.json           # Dependencies and scripts
├── tsconfig.json          # TypeScript configuration
└── README.md              # This file

Building

# Development build
npm run build

# Watch mode (for development)
npm run dev

# Type checking
npm run type-check

Adding Custom Context

To enhance AI understanding for specific methods, edit the METHOD_CONTEXT object:

const METHOD_CONTEXT = {
  yourMethodName: {
    description: "Human-friendly description",
    useCase: "When to use this method", 
    category: "Logical grouping",
    examples: ["Example use case 1", "Example 2"],
    smartschoolContext: "Smartschool-specific details"
  }
};

Safety Classification

To modify safety levels, update the METHOD_SAFETY object:

const METHOD_SAFETY = {
  yourMethodName: SAFETY_LEVELS.DESTRUCTIVE,  // or SAFE, MODERATE, CRITICAL
};

📋 Requirements

System Requirements

  • Node.js 18.0.0 or higher
  • 256MB+ available memory
  • Network access to Smartschool API endpoint

Smartschool Requirements

  • Active Smartschool instance
  • API access enabled
  • Valid access code with appropriate permissions

Permissions

The MCP server requires Smartschool API access with permissions for:

  • User management (for user operations)
  • Group/class management (for organizational operations)
  • Messaging (for communication features)
  • Reporting (for attendance/academic data)

Consult your Smartschool administrator for proper API access configuration.

🔒 Security Considerations

Production Deployment

  1. Environment Variables: Never commit credentials to version control
  2. Access Control: Restrict ALLOW_DESTRUCTIVE in production
  3. Monitoring: Log all destructive operations
  4. Backup: Ensure database backups before bulk operations
  5. Testing: Thoroughly test in development environment first

API Security

  • API access codes should be rotated regularly
  • Monitor API usage for unusual patterns
  • Implement rate limiting if needed
  • Use HTTPS endpoints only

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • Follow TypeScript best practices
  • Add appropriate safety classifications for new methods
  • Update documentation for significant changes
  • Test with multiple Smartschool configurations

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙋‍♂️ Support

Getting Help

  1. Documentation: Check this README and inline code comments
  2. Issues: Open a GitHub issue for bugs or feature requests
  3. Discussions: Use GitHub Discussions for questions
  4. Smartschool Support: Contact your Smartschool administrator for API access issues

Common Issues

Server won't start

  • Check environment variables are set correctly
  • Verify Node.js version compatibility
  • Ensure Smartschool API endpoint is accessible

Operations being blocked

  • Check ALLOW_DESTRUCTIVE setting
  • Verify confirmDestructiveAction parameter for destructive operations
  • Review safety level classifications

AI not understanding context

  • Check method descriptions in METHOD_CONTEXT
  • Verify domain knowledge sections are accurate
  • Consider adding method-specific examples

🙏 Acknowledgments

Abrianto & Smartschool-Kit

This MCP server is built on top of the excellent @abrianto/smartschool-kit library, created by Abrianto.

Abrianto is a technology company focused on creating developer-friendly tools and APIs for educational systems. Their work bridges the gap between complex school management platforms and modern development practices.

About Smartschool-Kit

The @abrianto/smartschool-kit library provides:

  • 🚀 Runtime Agnostic: Works in Deno, Browser, and Node.js environments
  • 💪 Full TypeScript Support: Comprehensive type definitions for all endpoints
  • 🔧 CLI Interface: Command-line tools for quick operations
  • 🎯 Complete API Coverage: Supports all Smartschool API endpoints
  • 📘 Excellent Documentation: Detailed examples and method descriptions
# Install the underlying library
npm install @abrianto/smartschool-kit

# Or from JSR
jsr add @abrianto/smartschool-client

Made with ❤️ for the education community by Abrianto

This MCP server bridges the gap between AI assistants and school management systems, enabling natural language interaction with complex educational data while maintaining the highest safety standards.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Smartschool MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/smartschool-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related communication social MCP Servers

Alternative and complementary servers in the same category

View all in communication social →

An AI receptionist platform with an MCP server for accessing business calls, contacts and appointments from AI assistants.

52
Communication

Pidgeon provides an MCP server and an email inbox API that gives AI agents their own addresses for sending, awaiting, and replying to email.

Repository stats unavailable
Communication