Skip to main content
Glama
WTS-bupt-unOfficial-mcp
by Nemoyuzx

WTS-bupt-unOfficial-mcp

비공식 북우전(BUPT) 모바일 교무 MCP(Model Context Protocol) 서비스: 오늘의 빈 강의실, 시간표, 그리고 두 가지의 결합 조회를 지원합니다.

서비스 요청은 오픈소스 프로젝트 where_to_study를 참고하여 이식되었습니다.

⚠️ 본 프로젝트는 비공식 서비스이며, 학습 및 교류 목적으로만 제공되며 남용하지 마십시오. 사용 시 계정 위험을 감수하는 데 동의하는 것으로 간주됩니다.

기능 (MCP Tools)

Tool

설명

get_campuses

캠퍼스 정보 (시투청 01 / 사허 04) 및 주요 교사 건물

get_classrooms

오늘의 빈 강의실 조회, campus_id / slot(1-14교시) / building 필터 지원

get_schedule

시간표 조회, 기본 현재 주, week(주차) 또는 date(날짜 소속 주) 지원

get_today_overview

결합 조회: 오늘 수업 + 각 교시별 빈 강의실 수 + 현재 교시 빈 강의실 + 하루 종일 빈 강의실

Related MCP server: mydy-lms

빠른 시작

1. 클론 및 설치

git clone https://github.com/Nemoyuzx/WTS-bupt-unOfficial-mcp.git
cd WTS-bupt-unOfficial-mcp
npm install
npm run build

2. 환경 변수 설정

export BUPT_USER_NO=你的学号
export BUPT_PWD=你的移动教务密码
export BUPT_CAMPUS_ID=01        # 可选,默认 01=西土城;04=沙河
export BUPT_TERM_START_DATE=    # 可选,学期开学日 YYYY-MM-DD(无法从接口推断时兜底)

3. 직접 실행

node dist/index.js

4. Claude Desktop / Cursor 등 MCP 클라이언트 연동

MCP 클라이언트 설정에 추가 (stdio 방식):

{
  "mcpServers": {
    "wts-bupt": {
      "command": "node",
      "args": ["/绝对路径/WTS-bupt-unOfficial-mcp/dist/index.js"],
      "env": {
        "BUPT_USER_NO": "你的学号",
        "BUPT_PWD": "你的密码",
        "BUPT_CAMPUS_ID": "01"
      }
    }
  }
}

사용 예시

MCP 클라이언트에 질문:

  • 「오늘 사허 캠퍼스 3교시 빈 강의실 알려줘」

  • 「이번 주 내 수업 뭐야?」

  • 「지금 빈 강의실 어디야?」(결합 조회: get_today_overview)

개발 및 테스트

npm test        # 使用 where_to_study 的原始响应样例做解析器单测
npm run build   # 编译到 dist/

디렉토리 구조

src/
├── index.ts                 # MCP 服务入口(4 个工具)
├── api.ts                   # 移动教务 HTTP 客户端(登录/课表/空教室)
├── date.ts                  # 北京时区日期/周次/节次工具
├── parsers/
│   ├── classrooms.ts        # 空教室响应解析(移植 SJDClassroomParser)
│   └── schedule.ts          # 课表响应解析(移植 SJDScheduleParser + ScheduleLogic)
└── types.ts                 # 数据模型(Course / Classroom / 节次时刻表)
test/
└── run-tests.ts             # 单元测试(含参考项目原始响应样例)

License

MIT

Available Tools

4 tools
get_campuses获取北邮校区信息A

返回北邮移动教务支持的两个校区(西土城 01 / 沙河 04)及其主要教学楼,用于空教室查询时选择 campus_id。

Inputs: no named parameters.

get_classrooms获取今日空教室A

查询北邮移动教务的今日空教室。返回每个教室今日空闲的节次(1-14节)与时间。可选参数:campus_id(默认取环境变量 BUPT_CAMPUS_ID,01=西土城,04=沙河)、slot(1-14,只看该节次空闲的教室)、building(按教学楼名过滤,如"教1"、"主楼"、"综合教学楼N")。

Inputs: slot, building, campus_id.

get_schedule获取课程表A

查询北邮移动教务的课程表。默认返回当前周的课程;可通过 week 指定周次,或通过 date(YYYY-MM-DD)指定日期所在的周。返回课程名称、教师、教室、节次与时间。

Inputs: date, week.

get_today_overview今日空教室与课表联合查询A

一次查询返回:今日日期/星期/当前周次、今日课程列表、课程占用节次、每个节次的空闲教室数量、当前节次空闲教室、全天空闲教室。用于回答"今天有哪些课""现在哪些教室空着""第 X 节有哪些空教室"等问题。

Inputs: campus_id.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clear, distinct purpose: campuses list, classroom availability, schedule, and a combined daily overview. There is no overlap; get_classrooms and get_today_overview serve different query granularities.

    Naming Consistency5/5

    All tools follow a consistent 'get_' prefix with lowercase underscore-separated names. The verb_noun pattern is uniform, even the compound name 'get_today_overview' fits the pattern without mixing conventions.

    Tool Count5/5

    With 4 tools, the server is tightly scoped to the domain of querying campus, classroom, and schedule information. Each tool earns its place, and the count is neither too few nor excessive for a focused utility.

    Completeness4/5

    The tool set covers the core queries for a university timetable system: campuses, empty classrooms (with filters), schedule, and a combined overview. Minor gaps like querying classroom details or multi-day views exist, but the surface is practical and unlikely to cause agent failures.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers