Skip to main content
Glama
shreeyachand

USC WebReg/Course Catalog MCP

by shreeyachand

USC WebReg/Course Catalog MCP

MCP 服务器,为 AI 代理提供南加州大学(USC)公开课程目录 API(classes.usc.edu)的访问。允许你提出诸如"周二/周四中午之后开始的 GE B 选项有哪些?"之类的问题。

设置

构建一次:

npm install
npm run build

opencode

添加到 ~/.config/opencode/opencode.jsonc

{
  "mcp": {
    "usc-courses": {
      "type": "local",
      "command": ["node", "/absolute/path/to/usc-webreg-mcp/dist/index.js"],
      "enabled": true
    }
  }
}

Claude Code

在项目根目录添加 .mcp.json(或运行 claude mcp add):

{
  "mcpServers": {
    "usc-courses": {
      "command": "node",
      "args": ["/absolute/path/to/usc-webreg-mcp/dist/index.js"]
    }
  }
}

工具

工具

描述

list_terms

所有学期,含季节/年份/状态

get_term

按 termCode 获取单个学期详情(例如 20263

list_schools

某学期的学院/学校及其专业

list_programs

某学期的专业(系)及其所属学院

get_program

专业详情/备注(D-clearance 信息)

list_course_prefixes

目录中的所有学科前缀

list_sessions

注册时段和退课日期

check_course_exists

课程代码是否存在于目录中

get_syllabus_index

某学期的 SimpleSyllabus 索引 URL

get_section_fees

sisSectionId 获取课程段费用

search_courses

目录关键词搜索(代码/标题/描述)

get_course

完整课程记录,包括所有课程段、先修要求和限制

list_courses_by_program

某学院+专业的所有课程

list_ge_requirements

GE 结构(要求 + 类别前缀)

list_courses_by_ge

满足某 GE 类别的课程

get_ge_category_details

某 GE 类别的名称/详情

时间表筛选

search_courseslist_courses_by_programlist_courses_by_ge 接受可选的课程段筛选条件:days["Mon","Wed"])、startAfter/startBefore"12:00")和 openOnly

示例:周一+周三中午及之后上课的 GE B 课程:

list_courses_by_ge(termCode=20263, geRequirementPrefix=ACORELIT,
  geCategoryPrefix=HINQ, days=["Mon","Wed"], startAfter="12:00")
-
license - not tested
Not graded
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

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

  • Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.

  • Calendar API for AI agents: events, availability, Google/Microsoft setup, scheduling, and iCal.

  • SEC EDGAR for AI agents: company filings, financials and insider trades. No API keys.

View all MCP Connectors

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/shreeyachand/usc-webreg-mcp'

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