Skip to main content
Glama

学校 MCP

铁匠徽章

用于学术工具的模型上下文协议 (MCP) 服务器,与 Canvas 和 Gradescope 平台集成。

特征

  • 作业截止日期:从 Canvas 和 Gradescope 获取并显示即将到来的截止日期

  • 日历集成:使用 AppleScript 向 macOS 日历或提醒事项添加截止日期

  • 文件管理:从 Canvas 下载课程资料

Related MCP server: moodle-mcp

快速入门

安装

通过 Smithery 安装

要通过Smithery自动安装 School MCP for Claude Desktop:

npx -y @smithery/cli install @54yyyu/school-mcp --client claude
  1. 克隆存储库:

git clone https://github.com/yourusername/school-mcp.git
cd school-mcp
  1. 安装软件包:

pip install -e .
  1. 通过以下方式设置环境变量:

    • 使用附带的安装助手(推荐)

    • 手动创建.env文件

使用安装助手

运行安装助手来自动配置 Claude Desktop:

python setup_helper.py

安装助手将:

  • 查找您的 Claude Desktop 配置文件

  • 如果需要,创建一个.env文件

  • 使用正确的路径配置 MCP 服务器

  • 将您的环境变量添加到 Claude Desktop 配置中

手动设置

如果您希望手动设置:

  1. 复制环境模板:

cp .env.template .env
# Edit .env with your credentials
  1. 按照 Claude Desktop集成指南配置 Claude Desktop 。

运行服务器

直接运行:

python -m school_mcp

或者使用便捷脚本:

./run_server.py

工具

  • get_deadlines :从 Canvas 和 Gradescope 获取即将到来的作业截止日期

  • add_to_reminders :将任务添加到 macOS 提醒事项

  • list_courses :列出所有可用的 Canvas 课程

  • download_course_files :从 Canvas 课程下载文件

  • set_download_path :配置下载文件的保存位置

  • get_download_path_info :检查当前下载位置

配置

服务器尝试按以下顺序查找配置:

  1. 环境变量

  2. 当前目录中的.env文件

  3. 主目录中现有的config.json文件

执照

麻省理工学院

Available Tools

10 tools
add_to_remindersB

Add upcoming deadlines to macOS Reminders.

Args: days_ahead: Number of days to look ahead for assignments (default: 14) account: School account to use (defaults to the active account)

Inputs: account, days_ahead. Returns: result

download_course_filesA

Download files from a Canvas course (all of them, or a selection).

Args: course_id: Canvas course ID download_path: Root to download into for this call (default: the saved download path; never changes it) file_ids: Only these file ids (from list_course_files) since: Only files created/updated since YYYY-MM-DD or N days ago ("7d") flat: Put files directly in the root instead of // folders account: School account to use (defaults to the active account)

Inputs: course_id (required), flat, since, account, +2 more. Returns: result

get_course_pageA

Read a Canvas Page, such as a lecture page with its readings. Without page, list the course's pages (module pages first; many courses hide the Pages list from students).

Args: course: Course id, code (e.g. "7.36") or name fragment page: Piece of the page title (e.g. "L15") or its url slug account: School account to use (defaults to the active account)

Returns the page text plus its file links, each with section (the label it sits under on the page, e.g. "Main Papers" or "Additional reading") and hidden (true when the link has no visible text).

Inputs: course (required), page, account. Returns: result

get_deadlinesC

Get upcoming deadlines from Canvas and Gradescope.

Args: days_ahead: Number of days to look ahead for assignments (default: 14) account: School account to use (defaults to the active account)

Inputs: account, days_ahead. Returns: result

get_download_path_infoA

Get the current default download path for Canvas files.

Inputs: no named parameters. Returns: result

list_course_filesA

List every file download_course_files would fetch for a course, without downloading: modules, assignments (attachments + description links), Files tab, Pages, announcements, deduped by file id.

Args: course: Course id, code (e.g. "20.201") or name fragment since: Only files created/updated since this date (YYYY-MM-DD) or N days ago ("7d") compare_dir: Local folder to check against; each file gets local.status have / changed / missing (matched by name+size, then content hash; any layout) account: School account to use (defaults to the active account)

Inputs: course (required), since, account, compare_dir. Returns: result

list_coursesC

List available courses from Canvas.

Args: account: School account to use (defaults to the active account)

Inputs: account. Returns: result

list_school_accountsA

List the configured school accounts (e.g. columbia, mit) and show which one is active.

Inputs: no named parameters. Returns: result

set_download_pathC

Set the default download path for Canvas files.

Args: path: Path to save downloaded files to

Inputs: path (required). Returns: result

switch_school_accountB

Switch the active school account. Persists across restarts.

Args: account: Account name, e.g. "columbia" or "mit"

Inputs: account (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool targets a distinct resource+action: account listing/switching, deadline aggregation, reminders export, course listing, file preview vs. download, page reading, and download-path get/set. The only potentially overlapping pair (list_course_files vs. download_course_files) is explicitly framed as dry-run preview versus actual fetch, and get/set_download_path are a clean complementary pair.

    Naming Consistency5/5

    All ten names follow a strict verb_noun snake_case pattern (list_, switch_, get_, add_, download_, set_) with no camelCase or bare-noun outliers. Pluralization and object naming (course_files, school_account, download_path) are used consistently across related tools.

    Tool Count5/5

    Ten tools is well within the sweet spot and every one earns its place: account management (2), deadlines/reminders (2), courses and files (3), pages (1), path config (2). Nothing looks like filler, and no obvious operation is split into redundant variants.

    Completeness4/5

    The surface covers the core student workflow end-to-end: pick an account, list courses, preview and download files, read pages, pull deadlines, and push them to Reminders. Minor gaps remain — no way to add/remove a school account, no per-assignment detail or grades view, and no way to clear/reset the download path — but agents can work around these.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      A Model Context Protocol (MCP) server that connects AI coding agents to your Moodle LMS. Fetch assignments, grades, deadlines, and sync everything to Obsidian automatically.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables natural-language queries across multiple schools' Canvas and Blackboard accounts for courses, notifications, assignments, grades, feedback, and schedules, with read-only access and local todo/calendar export.
      10
      MIT