WTS-bupt-unOfficial-mcp
This server is a non-official MCP service for BUPT mobile academic affairs that lets you query campuses, empty classrooms, course schedules, and combined daily overviews.
get_campuses: Retrieve BUPT campus info (西土城 01 / 沙河 04) and main teaching buildings.
get_classrooms: Query today's empty classrooms, optionally filtered by campus, class slot (1–14), or building name.
get_schedule: Get the course schedule for the current week, a specific week number, or the week containing a given date.
get_today_overview: Get a combined view of today's courses, occupied slots, free classroom counts per slot, currently free classrooms, and all-day free classrooms.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@WTS-bupt-unOfficial-mcpWhat empty classrooms are there in the Shahe campus for the 5th period today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 |
| Campus information (Xitucheng 01 / Shahe 04) and main teaching buildings |
| Query today's empty classrooms, supports filtering by |
| Query class schedule, defaults to current week, supports |
| 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 build2. 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.js4. 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
Available Tools
4 toolsget_campuses获取北邮校区信息A
返回北邮移动教务支持的两个校区(西土城 01 / 沙河 04)及其主要教学楼,用于空教室查询时选择 campus_id。
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
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.
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.
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.
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.
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.
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")。
| Name | Required | Description | Default |
|---|---|---|---|
| slot | No | 节次(1-14),只看该节次空闲的教室 | |
| building | No | 教学楼名过滤,如 "教1"、"主楼"、"综合教学楼N" | |
| campus_id | No | 校区 ID:01=西土城,04=沙河(默认取环境变量 BUPT_CAMPUS_ID) |
TDQS
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.
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.
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.
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.
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.
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)指定日期所在的周。返回课程名称、教师、教室、节次与时间。
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | 日期 YYYY-MM-DD,返回该日期所在周的课程表(与 week 二选一) | |
| week | No | 周次,如 3 表示第 3 周;不传则返回当前周 |
TDQS
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.
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.
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.
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.
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.
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 节有哪些空教室"等问题。
| Name | Required | Description | Default |
|---|---|---|---|
| campus_id | No | 校区 ID:01=西土城,04=沙河(默认取环境变量 BUPT_CAMPUS_ID) |
TDQS
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.
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.
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.
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.
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.
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.
4 tool updates
v0.1.0- First observed
get_campuses - First observed
get_classrooms - First observed
get_schedule - First observed
get_today_overview
TDQS
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.
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.
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.
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
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
MCP server providing attendance data queries via the CloudTime API.
MCP server for China Railway 12306 ticket availability: schedules and seats by Chinese station name.
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Remote MCP for TehProf Booking: browse resources & availability, create & cancel reservations.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server for the Bakaláři v3 API that provides access to the popular Czech school management system. It enables users to retrieve schedules, permanent timetables, absence records, and grades through a standardized interface.3MIT
- FlicenseNot gradedqualityCmaintenanceAn MCP server for interacting with the MyDy (Moodle-based) LMS, enabling attendance viewing, course browsing, assignment and grade checking, announcement reading, and material downloading.7-
- FlicenseNot gradedqualityBmaintenanceMCP server that aggregates department notices and provides structured answers to queries about courses, schedules, and academic dates via tool calling.-
- FlicenseNot gradedqualityBmaintenance武汉大学校园服务 MCP 服务器,提供图书馆座位、课表、成绩、考试、天气等工具,通过 SSE 协议供 Claude Code 远程调用。-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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