Skip to main content
Glama
Nemoyuzx
by Nemoyuzx

WTS-bupt-unOfficial-mcp

Unofficial BUPT Mobile Academic MCP (Model Context Protocol) Service: Query today's empty classrooms, class schedules, and a combined query of both.

The service request is adapted and ported from the open-source project where_to_study.

⚠️ This project is an unofficial service for learning and communication purposes only. Do not misuse it. By using it, you agree to assume all account-related risks.

Features (MCP Tools)

Tool

Description

get_campuses

Campus information (Xitucheng 01 / Shahe 04) and main teaching buildings

get_classrooms

Query today's empty classrooms, supports filtering by campus_id / slot (periods 1-14) / building

get_schedule

Query class schedule, defaults to current week, supports week (week number) or date (week containing the date)

get_today_overview

Combined query: today's classes + number of free classrooms per period + free classrooms for the current period + free classrooms for the entire day

Related MCP server: mydy-lms

Quick Start

1. Clone and Install

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

2. Configure Environment Variables

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

3. Run Directly

node dist/index.js

4. Connect to Claude Desktop / Cursor or Other MCP Clients

Add the following configuration to your MCP client (stdio mode):

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

Usage Examples

Ask the MCP client:

  • "Check which empty classrooms are available in Shahe campus during period 3 today"

  • "What classes do I have this week?"

  • "Which classrooms are empty right now?" (combined query: get_today_overview)

Development and Testing

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

Directory Structure

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。

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It discloses the output (campus IDs and main buildings) and its purpose, but does not mention aspects like authentication needs, data freshness, error behavior, or that it is a static list. This is adequate for a simple parameterless tool but lacks depth.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-structured sentence in Chinese that is concise (~25 characters) and front-loaded with the main action. Every phrase adds value: the specific campuses, their IDs, and the use case.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description explains what the tool returns (campuses and main teaching buildings) and why (for campus_id selection). However, it does not specify the return format (e.g., list of objects) or whether buildings are included in the same response. For a simple tool without an output schema, this is mostly complete but has a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has no parameters, and schema description coverage is 100%. The description implicitly confirms no inputs are needed. Per guidelines, zero parameters receive a baseline score of 4.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool returns the two campuses (Xitucheng 01, Shahe 04) and their main teaching buildings, with the explicit purpose of selecting campus_id for classroom queries. This distinguishes it from siblings like get_classrooms, which likely returns classrooms for a given campus.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description directly states this tool is 'used for selecting campus_id when querying available classrooms,' providing clear context for when to use it. However, it does not explicitly mention when not to use it or cite alternatives among siblings, leaving some implicit guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_classrooms获取今日空教室A

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

ParametersJSON Schema
NameRequiredDescriptionDefault
slotNo节次(1-14),只看该节次空闲的教室
buildingNo教学楼名过滤,如 "教1"、"主楼"、"综合教学楼N"
campus_idNo校区 ID:01=西土城,04=沙河(默认取环境变量 BUPT_CAMPUS_ID)

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full responsibility for behavioral disclosure. It explains it returns each classroom's free slots and time, and mentions parameter defaults (e.g., campus_id from environment variable). However, it does not specify the response format (e.g., structure of the output), error handling, or data freshness. For a read-only query tool, the basics are covered but details on return structure are missing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is composed of three sentences, each serving a clear function: the first states the core purpose, the second describes the return data, and the third details the parameters. It is efficient with no filler, though the return description could be more tightly integrated with parameter details. Overall, it is well-structured and front-loaded with the main action.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has three optional parameters and no output schema, the description adequately covers input parameters and the basic return concept (free slots and time). However, it fails to specify the exact output structure (e.g., whether it returns a list of objects with classroom names and slot arrays), which is critical for an agent to process the result. Error conditions or default behavior for missing environment variables are also not addressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the input schema already provides 100% parameter descriptions, the tool description adds meaningful context beyond the schema: it explains the default behavior of campus_id (from environment variable), enumerates its specific values ('01=西土城,04=沙河'), and gives concrete examples for the building filter ('教1', '主楼'). These additions help an agent understand parameter semantics more deeply than the schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool queries today's free classrooms from BUPT's mobile educational administration. It specifies the exact resource ('今日空教室') and the action ('查询'), making it distinct from siblings like get_campuses which likely returns campus lists. The verb '查询' combined with the resource and scope ('今日') leaves no ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no explicit guidance on when to use this tool versus alternatives. While it implies the scope is today's free classrooms, it does not contrast with siblings (e.g., get_schedule for regular schedules, get_today_overview for a broader view). No 'when to use' or 'when not to use' information is given, leaving the agent to infer context solely from tool names.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_schedule获取课程表A

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

ParametersJSON Schema
NameRequiredDescriptionDefault
dateNo日期 YYYY-MM-DD,返回该日期所在周的课程表(与 week 二选一)
weekNo周次,如 3 表示第 3 周;不传则返回当前周

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses that the tool returns course name, teacher, classroom, session, and time, and explains the parameter behavior (week vs date, default current week). The verb '查询' implies a read-only operation, and no hidden side effects are suggested. However, it does not mention authorization or error conditions, but for a simple query tool, this is adequate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description consists of two concise sentences. It is front-loaded with the purpose, then explains default behavior, parameter usage, and return fields. Every sentence provides necessary information without redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (2 optional params, no output schema, no annotations), the description covers the essential aspects: purpose, parameter behavior, and return fields. It does not mention prerequisites like authentication or data freshness, but these are typical for such a tool. The listing of return fields compensates for the lack of an output schema. Overall, it is sufficiently complete for an agent to select and invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters with descriptions including mutual exclusivity and defaults. The tool description adds little beyond reaffirming the schema, providing minimal additional meaning. Baseline 3 is appropriate as the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool queries the course schedule ('查询北邮移动教务的课程表'), specifying the verb and resource. It differentiates from siblings like get_campuses and get_classrooms, which are about locations, and get_today_overview, which is likely about today's overview. The purpose is unambiguous and specific.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains default behavior (current week) and how to use week or date parameters to specify a different week. While it does not explicitly exclude cases or contrast with siblings, the context from sibling tool names makes the use case clear. It provides clear context for when to use this tool versus alternatives, though not explicitly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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

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

ParametersJSON Schema
NameRequiredDescriptionDefault
campus_idNo校区 ID:01=西土城,04=沙河(默认取环境变量 BUPT_CAMPUS_ID)

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Since no annotations are provided, the description carries full responsibility for behavioral disclosure. It transparently spells out the six specific data items returned and the optional campus_id parameter with default behavior. It does not mention error cases, rate limits, or data freshness guarantees, but for an overview tool with one optional parameter, these omissions are minor.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise, using a single sentence with a colon-separated list to enumerate the return fields, followed by three example queries. Every word contributes meaning, and the structure front-loads the core functionality before the examples. No unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the low parameter count (1, optional), full schema description coverage, and no output schema, the description adequately covers the tool's functionality. It could be more complete by specifying the date range (e.g., always today only) and the format of returned items (e.g., list vs. object), but for an overview tool, the behavioral transparency is strong.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% (one parameter fully described inline), so baseline is 3. The description adds value by explaining the default value derivation ('默认取环境变量 BUPT_CAMPUS_ID') and listing the campus names ('01=西土城,04=沙河'), which the schema alone does not provide. This goes beyond a simple repeat of the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool returns a comprehensive overview including date, week, course list, occupied class periods, free classrooms per period, current free classrooms, and all-day free classrooms. It then lists example queries it can answer, which precisely define the tool's scope and resource. This effectively distinguishes it from siblings like get_classrooms (which likely retrieves classroom information without temporal context) and get_schedule (which probably returns course schedules without classroom availability).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implicitly communicates usage by listing the exact question types it answers, such as 'what classes are today' and 'which classrooms are free now'. However, it does not explicitly state when NOT to use this tool or mention alternatives for other scenarios. Given the sibling tools, it would be helpful to clarify, for instance, 'for a full schedule without free room info, use get_schedule'.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 4 tool updatesv0.1.0
    • First observedget_campuses
    • First observedget_classrooms
    • First observedget_schedule
    • First observedget_today_overview

TDQS

A4.2/5.0
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

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Nemoyuzx/WTS-bupt-unOfficial-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server