NCCU Course MCP
This server lets you query NCCU (National Chengchi University) course listings programmatically via MCP tools.
list_departments: Look up NCCU department/offering-unit codes by name (e.g. '財務', '法律'), returning code, name, level, and course count.
search_courses: Fetch live course lists for a specific department and semester, with optional keyword filtering by course name/teacher/notes; returns course_id, name, teacher, time, credits, classroom, language, notes, and URLs.
get_syllabus: Retrieve a course's full syllabus text (description, objectives, weekly schedule, grading) from a syllabus_url.
search_all (per README): School-wide flexible keyword search across course names, teachers, notes, and course ids, filterable by weekday, language, requirement kind, core-GE, or exact teacher.
check_schedule (per README): Check a list of course ids for schedule conflicts and get a weekly grid, with TA session times folded in.
get_course_rating (optional, per README): Fetch a teacher's evaluation scores and written comments for the last six semesters, requiring your own NCCU login.
All tools are anonymous except the ratings tool; course data is fetched live from NCCU's public API, with no local course database.
Click on "Deploy 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., "@NCCU Course MCPList courses in 財務管理學系 for semester 1151"
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.
NCCU Course MCP
An MCP server for querying NCCU (National Chengchi University) course listings (qrysub.nccu.edu.tw) programmatically, so an AI agent or a student can search courses in plain language instead of fighting the web UI.
Not sure where to start? Paste this to your AI coding agent (Claude Code, Codex, etc.):
Install this MCP server https://github.com/yyu0310/nccu-course-mcp
It can run every step below on its own, except one password step later in this page that only you should type. Works with Claude Code and the Claude Desktop app (both run on your own machine). The claude.ai web app and mobile app can't run local MCP servers like this one, so they're not an option here.
Course data is fetched live from the public course API on every query. There is
no local course database. The only shipped data file is dept_codes.json, a snapshot
mapping department codes to names (regenerate any time with build_dept_codes.py).
Tools
You don't need to remember any tool name or parameter, just tell your AI agent what you want (e.g. "find me courses offered by the Finance department" or "does this course clash with my Wednesday afternoon class"), and it picks the right tool on its own. This table is for anyone curious what happens under the hood.
What it does | Details | When you'd reach for it | Tool name |
School-wide flexible search | Keyword search across course names, teachers, notes, and course ids, narrowable by weekday, language, requirement kind, core-GE, or exact teacher | You don't know which department offers a course |
|
Schedule conflict check | Give a list of course ids, get back conflicts plus a weekly grid. TA session times are folded in automatically | Checking whether your picked courses collide |
|
Department code lookup | Lists every offering-unit code (departments, school-wide subjects, general ed, PE, credit programs), filterable by name | You don't know a department's code or exact name |
|
Courses by department | Course list for one offering unit in one semester | You already know which department to search |
|
Full syllabus | Description, objectives, learning outcomes, weekly schedule | Deciding whether to take a course |
|
Teaching ratings (optional) | A teacher's evaluation scores and written comments for the last six semesters (NCCU policy caps this window) | Checking a teacher's evaluation history, needs your own NCCU login, password privacy explained below |
|
Every other tool is anonymous and needs no login, the ratings tool is the one exception.
Every course comes with structured fields: slots (parsed period list, so models
never hand-parse strings like 三CD78) and note_facts (facts mined from the
free-text notes: TA session time, exam dates, department priority, add-restriction,
English-taught). Query recipes and domain knowledge live in QUERY_GUIDE.md.
Related MCP server: scottylabs-mcp
Install
AI agent doing this install? Run the command in this section yourself, no need to ask the human for anything yet. Stop before the "Optional" section below and read its instructions first, that section has one step you must never run on the human's behalf.
Recommended: no clone, no venv (needs uv)
Runs straight from GitHub for Claude Code.
Step 0: make sure uvx exists. Run uvx --version. If the command is not
found, install uv once, then load it into the current shell (the installer puts
it in ~/.local/bin, which is not on PATH yet):
curl -LsSf https://astral.sh/uv/install.sh | sh
source "$HOME/.local/bin/env"On Windows (PowerShell), install uv with the command below, then open a new
PowerShell window so uvx is on PATH:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Step 1: register the server.
claude mcp add nccu-course -- uvx --from git+https://github.com/yyu0310/nccu-course-mcp nccu-course-mcpThe first claude mcp list health check downloads and builds the package, so
it can take 10 to 60 seconds. If it shows "Failed to connect" and your editor
or GUI app launched Claude Code without the new PATH, re-register with the full
path: claude mcp add nccu-course -- ~/.local/bin/uvx --from git+https://github.com/yyu0310/nccu-course-mcp nccu-course-mcp.
No-uv fallback: pip only
Works with any Python 3.10+ (uses pipx to keep it isolated):
pipx install git+https://github.com/yyu0310/nccu-course-mcp
claude mcp add nccu-course -- nccu-course-mcpOr add to any MCP client's config (e.g. Claude Desktop claude_desktop_config.json):
{
"mcpServers": {
"nccu-course": {
"command": "uvx",
"args": ["--from", "git+https://github.com/yyu0310/nccu-course-mcp", "nccu-course-mcp"]
}
}
}From source
git clone https://github.com/yyu0310/nccu-course-mcp && cd nccu-course-mcp
python -m venv .venv && ./.venv/bin/pip install -e .
./.venv/bin/python src/nccu_course_mcp/test_server.py # live self-test
claude mcp add nccu-course -- ./.venv/bin/nccu-course-mcpOptional: course ratings (get_course_rating)
Every other tool is anonymous and needs nothing set up. get_course_rating is
the one exception: NCCU only shows a teacher's rating history to logged-in
students, so this tool needs your own NCCU login. Skip this whole section if
you don't need it, everything else works unaffected.
Step 1 (you do this yourself, not your AI agent)
Save your NCCU portal password to your computer's credential store, once. If an AI agent is helping you install this, do not let it run this command or type your password for you. Open your own terminal and run it yourself:
uv run --with keyring python -c "import keyring; keyring.set_password('nccu-ldap', '<your student id>', input())"(uv run --with keyring fetches keyring for this one command, so nothing
needs installing first. It needs the uv from the Install section.)
It will ask for your password and hide what you type. This uses keyring,
which is verified on macOS (Keychain) and Windows 11 (Credential Manager).
Linux (Secret Service) should work the same way in theory, but I haven't
tested it. Your password never touches disk in plaintext and
is never logged, by this tool or by whatever agent is helping you set it up.
Step 2 (your AI agent can do this for you)
Tell it your student ID (not a secret, just needed to know whose tracking
list to use) and have it set NCCU_STUDENT_ID wherever the server runs, for
example in the MCP client config:
{
"mcpServers": {
"nccu-course": {
"command": "uvx",
"args": ["--from", "git+https://github.com/yyu0310/nccu-course-mcp", "nccu-course-mcp"],
"env": { "NCCU_STUDENT_ID": "<your student id>" }
}
}
}Notes
The upstream server uses legacy TLS renegotiation. The client enables
OP_LEGACY_SERVER_CONNECTto connect.Broad queries are capped at 500 rows upstream, so queries are always scoped per department.
Uses only NCCU's public course catalog and requires no login, except for the optional
get_course_ratingtool described above.
Further reading
New to Claude Code itself, not just this tool? claude-code-security-starter is a starter pack of CLAUDE.md rules and hooks that block credential leaks before they happen, a good first project to install.
Available Tools
3 toolsget_syllabusA
讀取一門課的教學大綱全文(純文字)。
syllabus_url 用 search_courses 回傳的 syllabus_url 欄位。 內容含課程簡介、課程目標與學習成效、每週進度、評分方式等,可據以判斷課程性質。
| Name | Required | Description | Default |
|---|---|---|---|
| syllabus_url | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description must cover behavioral traits. It mentions plain text output and content categories but does not disclose other aspects like authentication, rate limits, or destructive potential. Adequate but not exhaustive.
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?
Three sentences efficiently convey purpose, input source, and content. No redundant information; each sentence earns its place.
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?
For a simple tool with one parameter and an output schema present, the description fully addresses what the tool does, how to use it, and what it returns. Complete for the given context.
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?
Input schema has 0% parameter description coverage, so description adds crucial meaning by specifying that syllabus_url comes from search_courses. This compensates well for the schema's lack of detail.
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?
Description clearly states the tool reads the full syllabus text of a course, listing typical contents. It distinguishes itself from siblings (list_departments, search_courses) by focusing on retrieval of detailed syllabus data.
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?
Explicitly instructs that syllabus_url should come from search_courses, providing clear sourcing direction. Lacks explicit when-not-to-use or alternative tools, but the guidance is strong given the sibling context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_departmentsA
列出政大系所代碼表(snapshot)。傳 query 以官方系名子字串篩(如『財務』『法律』;用全名非簡稱)。
回傳每筆: code(三碼)、name(中文系名)、level(大學部/研究所/學程)、course_count(snapshot 當時開課數)。 code 首碼=學院、中間碼=學制(0大學部/5碩士)、可直接餵給 search_courses。
| Name | Required | Description | Default |
|---|---|---|---|
| query | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description carries burden. Mentions 'snapshot' implying read-only read, but does not explicitly state that it is non-destructive or what the snapshot entails. Could be more transparent about behavior.
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?
Description is compact, front-loaded with purpose, then parameter, then return fields. Slightly dense due to code encoding details, but still concise overall.
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 one parameter and an output schema, description covers the core: purpose, parameter usage, return fields. Could elaborate on 'snapshot' meaning or limitations, but adequate for the tool's simplicity.
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 coverage is 0%, but description fully explains the query parameter: default empty, filters by official department name substring, and gives examples ('財務', '法律'). Adds meaning beyond 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?
Clearly states the tool lists department codes (snapshot) and distinguishes from siblings like search_courses and get_syllabus by specifying the resource (department codes) and the operation (list).
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?
Provides guidance on using the query parameter for filtering by official department name substring, with examples. Also hints that the code can be fed to search_courses. Lacks explicit when-not-to-use scenarios.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_coursesA
查某系所某學期的開課清單(即時查政大 API)。
參數: semester: 學期碼,格式『學年+學期』,如 1151 = 115學年第1學期、1142 = 114學年第2學期。 dept: 系所中文名或三碼代碼,如『財務管理學系』或『357』。用 list_departments 查代碼。 keyword: 選填。以關鍵字篩課名/教師/備註(如『交易』『個案』)。
回傳: {semester, dept_code, dept_name, count, courses:[...]}。 每門課含 course_id/name/teacher/time/credits/kind/target/classroom/language/note/ remain_url(即時餘額需另開)/syllabus_url。
| Name | Required | Description | Default |
|---|---|---|---|
| dept | Yes | ||
| keyword | No | ||
| semester | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Discloses that the tool performs a real-time query against a specific API, describes the return structure, and notes that remain_url requires a separate action. No annotations are provided, so the description carries the burden, and it does so adequately without contradictions.
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?
Well-structured with a header, parameter list, and return format. Uses bullet points for readability. Slightly verbose but every sentence adds value.
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?
Covers all important aspects: parameters, return structure, and related tool. Lacks edge-case handling (e.g., error scenarios) but is sufficient for effective use.
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?
Despite 0% schema description coverage, the description compensates by detailing each parameter with format and examples (e.g., semester format '1151', dept examples '財務管理學系' or '357', keyword optional). Adds meaning beyond 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 verb (查/查詢), resource (開課清單/courses), and scope (by department and semester). It explicitly references the API source and distinguishes from sibling tools like list_departments for department code lookup.
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?
Provides explicit guidance on how to use parameters: semester format, dept as name or code, and keyword as optional. Directs the user to list_departments for code lookup. Does not specify when to avoid using this tool, but the context is clear.
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.
3 tool updates
v0.1.0- First observed
get_syllabus - First observed
list_departments - First observed
search_courses
TDQS
Scored across 3 tools
Each tool has a distinct purpose: listing departments, searching courses, and retrieving syllabus. No two tools overlap in functionality.
All tool names follow a consistent verb_noun pattern in snake_case (list_departments, search_courses, get_syllabus), making them predictable.
Three tools is slightly minimal but appropriate for a focused read-only server. The tools cover the essential query flow without unnecessary extras.
The tool surface covers the core workflow (list departments, search courses, get syllabus). Minor gaps like direct course detail retrieval are addressed by search_courses returning rich data.
Maintenance
Related MCP Connectors
Unofficial NTNU course data: search, timetables, grades, course info, and exam logistics.
Search Australian CRICOS courses, education providers and ANZSCO skilled occupations using One U Education (万友教育)'s public catalogue, including tuition, intakes, English requirements, campuses and study pathways. Provides six read-only tools with source links; no API key is required, and tuition fees are indicative and shown in AUD.
Search university course materials, your flashcards, quizzes, streak and quota. All tools read-only.
Read-only access to Epivo's live course catalogue for AI agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceMCP server for querying a university course catalog. Enables searching courses, checking prerequisites, and looking up instructors via natural language.-
- AlicenseAqualityCmaintenanceEnables searching and retrieving course details, schedules, prerequisites, and instructor information from the CMU course catalog via the ScottyLabs API.92MIT
- FlicenseAqualityDmaintenanceEnables searching Brown University courses, getting detailed course info, and checking schedule conflicts via natural language, using the university's public course catalog API.5-
- FlicenseNot gradedqualityDmaintenanceProvides intelligent access to a university course catalog with full-text search, prerequisite tracking, instructor lookups, and course comparison prompts.-