School Database MCP Server

School Database MCP Server

school-db-mcp-server•byeoinmooremath

An MCP server for managing a mock school database, with tools for behavior tracking, classification, alerts, and database querying.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Provides tools to inspect the database schema, execute safe SQL queries, and view sample records from any table.
  • •Supports recording behavior incidents, listing unclassified notes, and updating classifications after LLM analysis.
  • •Includes an alert system that checks students for concerning behavior patterns and can send email alerts.
  • •Uses SQLite for storage and restricts queries to SELECT, INSERT, and UPDATE with parameter binding for safety.

BEST FOR

  • •Managing and querying a mock school database through MCP tools.
  • •Tracking student behavior incidents through a pending-classification and alert workflow.
  • •Demonstrating MCP server development for educational purposes.

ABOUT SCHOOL-DB-MCP-SERVER

School Database MCP Server is cataloged as an MCP server attributed to eoinmooremath. An MCP server for managing a mock school database, with tools for behavior tracking, classification, alerts, and database querying. It is categorized under databases storage. 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: Not specified. 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 School Database 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

What storage does the server use?

It uses SQLite for data storage and creates the database file on first run.

What kind of SQL queries are allowed?

Only SELECT, INSERT, and UPDATE queries are allowed, using parameter binding to prevent SQL injection.

What can email alerts integrate with?

The server is designed to work with a Gmail MCP Server for sending behavior alert emails.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 9ec68d2e6c38 · 采集于 2026-11-13 11:14:14 UTC

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

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

School Database MCP Server

A Model Context Protocol (MCP) server for managing a mock school database with automated behavior tracking and alert system.

Overview

This project implements a school management system backend that provides tools for:

  • Managing student and teacher data
  • Recording and classifying student behavior incidents
  • Automated behavior alert system with email notifications
  • Database querying and schema inspection

The server uses SQLite for data storage and integrates with external services (like Gmail) for notifications.

Features

Core Database Management

  • Schema Inspection: Get complete database structure with table relationships
  • Safe Query Execution: Execute SELECT, INSERT, and UPDATE queries with parameter binding
  • Sample Data: View sample records from any table

Behavior Management Workflow

  1. Add Behavior Notes: Record student behavior incidents with pending classification
  2. LLM Classification: Automatically classify behaviors as positive, negative, or neutral
  3. Alert System: Monitor students for concerning behavior patterns
  4. Email Notifications: Automatically send alerts to relevant parties

Available Tools

  • get_database_schema - Inspect database structure and relationships
  • execute_query - Run SQL queries safely
  • add_behavior_note_pending_classification - Record new behavior incidents
  • update_behavior_classification - Classify behavior after LLM analysis
  • get_pending_classifications - List unclassified behavior notes
  • check_student_alerts_enhanced - Check if students need behavior alerts
  • send_behavior_alert_email_immediately - Send automated email alerts

Database Schema

The system includes tables for:

  • Students: Student information and contact details
  • Teachers: Teacher information
  • Behavior Notes: Incident records with classification and alerts
  • Classes: Course and enrollment information
  • Grades: Academic performance tracking

Installation

Prerequisites

  • Python 3.12+
  • SQLite3

Setup

  1. Clone the repository
  2. Install dependencies:
    pip install mcp>=1.9.2
    
  3. Run the server:
    python school_db_mcp.py
    

Usage

Starting the Server

python school_db_mcp.py

The server runs as an MCP server using stdio for communication.

Example Workflow

  1. Inspect the database structure:

    {
      "tool": "get_database_schema",
      "arguments": {"include_sample_data": true}
    }
    
  2. Add a behavior incident:

    {
      "tool": "add_behavior_note_pending_classification",
      "arguments": {
        "student_name": "John Doe",
        "teacher_id": 1,
        "description": "Student was disruptive during class",
        "location": "Classroom 101"
      }
    }
    
  3. Classify the behavior:

    {
      "tool": "update_behavior_classification",
      "arguments": {
        "note_id": 1,
        "behavior_type": "negative",
        "reasoning": "Disruptive behavior affects learning environment"
      }
    }
    
  4. Check for alerts:

    {
      "tool": "check_student_alerts_enhanced",
      "arguments": {
        "student_id": 123,
        "days_back": 7
      }
    }
    

Security Features

  • Query Sanitization: Only SELECT, INSERT, and UPDATE queries allowed
  • Parameter Binding: Prevents SQL injection attacks
  • Input Validation: Validates all tool inputs before processing

Integration

This server is designed to work with:

  • Gmail MCP Server: For sending behavior alert emails
  • LLM Systems: For automated behavior classification
  • School Management Systems: As a backend data service

Development

Project Structure

school-db-server/
├── school_db_mcp.py    # Main server implementation
├── pyproject.toml      # Project configuration
├── README.md          # This file
└── school_data        # SQLite database file (created on first run)

Key Classes

  • SchoolDatabaseMCP: Main server class handling MCP protocol
  • Database operations use SQLite with row factory for dict-like access
  • Async/await pattern for all tool operations

Notes

  • This is a demonstration/toy project showcasing MCP server development
  • Uses mock data for educational purposes
  • Designed to integrate with other MCP servers in a larger system
  • Includes comprehensive error handling and logging

License

This project is for educational and demonstration purposes.

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 School Database 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/school-db-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

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

下载与拉取统计

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

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

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage