# NTNU Courses (unofficial) [Health: Active]

**Category:** 🎓 Education  
**Repository:** https://github.com/MartinSA04/ntnu-mcp  
**GitHub Stars:** 0  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ntnu-courses-unofficial

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

## Tools
Capabilities this server exposes over MCP:

- **search_courses** — 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.
- **get_course_schedule** — 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.
- **get_weekly_timetable** — 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.
- **get_grade_distribution** — 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.
- **get_course_versions** — The DBH-versioned course codes (like 'TDT4100-1') that exist for a bare NTNU course code. Useful when grade lookups come back empty.
- **get_semesters** — NTNU's terms (semesters) with ids like '26h' (autumn 2026) / '26v' (spring), teaching weeks, exam-period dates, and which term is current.
- **get_course_info** — 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.
- **get_exam_info** — 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.
- **search_study_programs** — 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.
- **get_study_plan** — 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.
- **compare_courses** — 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.
- **check_timetable_conflicts** — 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.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "ntnu-courses-unofficial": {
    "url": "https://ntnu-mcp.martinsundal.no/mcp"
  }
}
```

## Documentation

## What NTNU Courses (unofficial) MCP server does

The NTNU Courses (unofficial) MCP server provides read-only access to public course and study-program information from the Norwegian University of Science and Technology. It is intended for students and assistants that need concrete academic planning data rather than general university information.

Course catalog searches return course codes, names, campuses, and exam dates for a selected year. Course information includes credits, level, campus, prerequisites, mandatory activities, content, learning outcomes, credit reductions, planned study programs, contacts, and alert notices. Results are in English by default, with Norwegian available through the language option.

The server also covers teaching and assessment logistics. It can return dated activities such as lectures and labs, recurring weekly timetable entries, historical grade distributions, exam occasions, permitted-aids meanings, exam systems, and assigned rooms. Study-program tools connect a program search with its official plan for a selected intake year, including courses, credits, mandatory or elective status, semesters, and specialization choice points.

## How it works

NTNU Courses (unofficial) MCP server runs as a Cloudflare Worker and exposes the MCP endpoint at `https://ntnu-mcp.martinsundal.no/mcp`. A client sends tool requests over the remote MCP connection, and the Worker calls the typed `ntnu-api` TypeScript client used for NTNU data access. The repository shapes those results for language-model use, including English names with Norwegian fallback, Oslo-local timestamps, and guidance when a query has no results.

The available operations include `search_courses`, `get_course_schedule`, `get_weekly_timetable`, `get_grade_distribution`, `get_course_versions`, `get_semesters`, `get_course_info`, `get_exam_info`, `search_study_programs`, `get_study_plan`, `compare_courses`, and `check_timetable_conflicts`. Exam information supports up to 10 courses in one request. Course comparisons include teaching hours and recent grade distributions, while conflict checks cover weekly schedule clashes and exam-date collisions.

Upstream responses use two cache layers: isolate memory and a shared Workers KV namespace. Catalog searches, schedules, and timetables are cached for one hour; grade statistics and semester data are cached for 24 hours. If KV is unavailable, the server falls back to memory-only caching.

## Setup and configuration

No client-side installation or authentication is required. Add the MCP URL to a compatible client's custom connector or remote MCP configuration. The service exposes public, read-only data, so it does not require credentials.

For local development, the repository requires Node 22. Install dependencies with `npm install`; available tasks include development with Wrangler, Vitest tests, TypeScript checking, Biome linting, formatting, and a combined check command. Local tests use captured fixtures rather than live NTNU services.

## Limitations and notes

NTNU Courses (unofficial) is a community project and is not affiliated with NTNU. Its data depends on upstream NTNU sources and the separate `ntnu-api` client; upstream endpoint or parsing changes are handled there rather than in this repository.

The tools are read-only: they do not register students, modify courses, submit study plans, or change university records. Timetable and exam results are informational and can depend on the selected year, semester, course version, or program intake. When grade lookups are empty, `get_course_versions` can help identify DBH-versioned codes such as `TDT4100-1` before retrying a lookup.

_Full upstream README: https://allmcps.com/mcp/ntnu-courses-unofficial/readme_

