NTNU Courses (unofficial)

Unofficial NTNU course data: search, timetables, grades, course info, and exam logistics.

我該用這個嗎

品質與安全性

A
說明品質
93%
結構描述完整度
71%
命名品質
98%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

發現項目(2)

  • LOWTool 'get_course_versions' description lacks action verb在 get_course_versions 中
  • LOWTool 'get_semesters' description lacks action verb在 get_semesters 中

根據工具定義與協定合規性的自動化分析。

上下文成本

~1,725Token(工具定義)
~681 B典型回應大小
中等的注意力影響(128k 上下文的 1.35%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "ntnu-mcp": {
      "url": "https://ntnu-mcp.martinsundal.no/mcp"
    }
  }
}

遠端端點

https://ntnu-mcp.martinsundal.no/mcpstreamable-http

它能做什麼

工具清單

工具(12)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢search_courses(year, query, page)

Search NTNU's course catalog for a given year (server-side free-text search over course names and codes; Norwegian terms often match best, e.g. 'maskinlæring' rather than 'machine learning'). Call this first when you don't know the exact course code. Returns course codes, Norwegian names, campus, and exam dates.

輸入結構描述

{
  "type": "object",
  "properties": {
    "year": {
      "type": "integer"
    },
    "query": {
      "type": [
        "string",
        "null"
      ]
    },
    "page": {
      "type": "integer"
    }
  },
  "required": [
    "year"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_course_schedule(course_code, year)

Every dated teaching activity (lectures, labs) for a course in a year, with Oslo-local times and rooms. Long output for large courses — prefer get_weekly_timetable for a compact recurring-week overview.

輸入結構描述

{
  "type": "object",
  "properties": {
    "course_code": {
      "type": "string"
    },
    "year": {
      "type": "integer"
    }
  },
  "required": [
    "course_code",
    "year"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_weekly_timetable(course_code, year)

The recurring weekly timetable grid for a course in a year: weekday, times, ISO-week ranges, rooms, and a classified 'kind' per slot (lecture / exercise / lab / seminar / unknown). The compact way to answer 'when are the lectures for X' — filter on kind == 'lecture', since NTNU's own activity titles are free-form Norwegian text.

輸入結構描述

{
  "type": "object",
  "properties": {
    "course_code": {
      "type": "string"
    },
    "year": {
      "type": "integer"
    }
  },
  "required": [
    "course_code",
    "year"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_grade_distribution(course_code, years)

Historical grade distribution for an NTNU course (per year and semester, with counts and percentages; grades A-F, or pass/fail codes). Accepts bare codes like 'TDT4100'. Omit years to get all recorded years. Small counts may be privacy-masked. Data comes from Norway's official DBH statistics.

輸入結構描述

{
  "type": "object",
  "properties": {
    "course_code": {
      "type": "string"
    },
    "years": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "course_code"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_course_versions(course_code)

The DBH-versioned course codes (like 'TDT4100-1') that exist for a bare NTNU course code. Useful when grade lookups come back empty.

輸入結構描述

{
  "type": "object",
  "properties": {
    "course_code": {
      "type": "string"
    }
  },
  "required": [
    "course_code"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_semesters

NTNU's terms (semesters) with ids like '26h' (autumn 2026) / '26v' (spring), teaching weeks, exam-period dates, and which term is current.

輸入結構描述

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_course_info(course_code, year, language)

Everything about an NTNU course except exam logistics: credits, level, campus, language of instruction, prerequisites, mandatory activities, course content / learning outcomes, credit reductions ('studiepoengreduksjon'), which study programs the teaching is planned for, contacts, and any alert notices (e.g. 'no longer taught'). English text by default; pass language 'nb' for Norwegian. Omit year for the current study year. For exam dates, times, aid codes, and rooms use get_exam_info.

輸入結構描述

{
  "type": "object",
  "properties": {
    "course_code": {
      "type": "string"
    },
    "year": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "language": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "nb",
            "en"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "course_code"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_exam_info(course_codes, year, language)

Exam logistics for one or more NTNU courses in a single call: every exam occasion (ordinary / re-sit) with date, start time, duration, permitted-aids code ('hjelpemiddelkode') with its meaning, exam system, and assigned rooms. The way to answer 'when and where are my exams and what can I bring' for a whole semester at once. Rooms are only published days before the exam; unpublished fields are null. Omit year for the current study year.

輸入結構描述

{
  "type": "object",
  "properties": {
    "course_codes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1
    },
    "year": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "language": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "nb",
            "en"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "course_codes"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢search_study_programs(query, level, city)

Search NTNU's study-program catalog (~400 programs) by free text (name, code, keywords), study level (e.g. 'bachelor', 'master', 'ph.d'), and/or city (Trondheim, Gjøvik, Ålesund). Returns program codes like 'MTDT' — the input for get_study_plan. Call this first when you only know a program's name.

輸入結構描述

{
  "type": "object",
  "properties": {
    "query": {
      "type": [
        "string",
        "null"
      ]
    },
    "level": {
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_study_plan(program_code, cohort_year)

The official study plan for an NTNU program and cohort intake year: which courses (codes, credits, mandatory/elective) belong to each semester, and the specialization choice points with their course groups. The bridge from 'I study X' to concrete course codes — feed them to get_weekly_timetable, check_timetable_conflicts, or get_exam_info. cohort_year is the year the student STARTED (defaults to the current cohort); students in their Nth year started N-1 years ago.

輸入結構描述

{
  "type": "object",
  "properties": {
    "program_code": {
      "type": "string"
    },
    "cohort_year": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "program_code"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
⚪compare_courses(course_codes, year)

Side-by-side comparison of NTNU courses for a given year — campus, exam dates, weekly teaching hours, and latest grade distribution — to help choose between courses. Accepts bare course codes.

輸入結構描述

{
  "type": "object",
  "properties": {
    "course_codes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1
    },
    "year": {
      "type": "integer"
    }
  },
  "required": [
    "course_codes",
    "year"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡check_timetable_conflicts(course_codes, year)

Checks a set of NTNU courses for the same year for clashing lecture/lab times and colliding exam dates — a clash check to run before registering for courses. Accepts bare course codes. Each side of a conflict carries its activity 'kind': a lecture-vs-lecture clash is unavoidable, while one involving an exercise or lab often has alternative groups. Exam dates come from the catalog, which does not mark deferred (utsatt/kont) sittings.

輸入結構描述

{
  "type": "object",
  "properties": {
    "course_codes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 2
    },
    "year": {
      "type": "integer"
    }
  },
  "required": [
    "course_codes",
    "year"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本12 個工具
已驗證未記錄版本12 個工具
已驗證未記錄版本12 個工具