icampus-mcp
Provides read-only access to your SKKU iCampus data, plus a rate-limited refresh action.
Check sync status, dataset freshness, last-run results, and login problems.
List current courses with IDs, codes, names, instructors, and visible grades.
List tasks/deadlines with filters for course, kind, due window, past window, done items, and limit.
List recent announcements and read one announcement's full text.
List lectures/materials with completion and attendance, filterable by course, week, kind, incomplete, upcoming, and overdue.
Get course totals and per-assignment grades as Canvas shows them.
Ask the collector to sync from iCampus now, then check
sync_statusafterward.All tools are read-only except
refresh, which is idempotent and non-destructive.
Reads your own SKKU iCampus data through Canvas's API, providing access to courses, tasks, assignments, announcements, lectures, attendance, and grades.
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., "@icampus-mcp What assignments are due this week?"
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.
skku-icampus
Keeps a copy of your own SKKU iCampus data and serves it to other programs over a REST API, and to AI assistants over MCP. That covers tasks and deadlines, assignment submission status, announcements, lectures and attendance, grades, the files attached to announcements and assignments, lecture videos, and timestamped, searchable transcripts of those videos.
icampus (FastAPI :9013) logs in by itself, syncs 4×/day, stores everything in SQLite;
transcribes lectures in the background; admin UI at /admin
icampus-mcp (:8724/mcp) MCP tools; only talks to the API, never sees your password or any keyUnofficial, not affiliated with Sungkyunkwan University. It only reads your own account; follow your university's rules when you use it.
How it works
Login. A headless Chromium signs in through the normal SSO page, but only when the saved session has expired. Everything after that is plain GET requests: Canvas
/api/v1and the LearningX JSON API that My Page, 강의콘텐츠 and 출결현황 use themselves (notes).Read-only. The browser works from an allowlist of pages and never loads item pages, because opening a lecture item in iCampus marks it complete. It never submits anything, starts quizzes or marks anything read.
Attachments, on request only. A sync records which files an announcement or assignment has (names, sizes, IDs), never the files. A file is downloaded only when someone asks for it, with the saved login, and only if a synced announcement or assignment points at it; lecture items are never opened. iCampus records a download as you opening the file, and if a linked file also sits in a course module, as viewing it there. Copies are kept in
var/filesand reused until a sync sees a new version (for 12 hours when iCampus gives none). A child process with a memory cap and a time limit reads the text out of them.Lecture videos, on request only. A video hosted on SKKU's content server (
lcms.skku.edu) is downloaded when someone exports it, without your login: the content server serves it to any request that comes from iCampus, so nothing ties the download to your account, and no viewer, progress or attendance is involved. Videos stay invar/videos(up toICAMPUS_VIDEO_CACHE_GB, 30 by default; the least recently used go first) and are reused until a sync sees a new version. YouTube and Zoom lectures aren't covered. Lecture videos are copyrighted: keep them for your own study.Transcripts, on request or by the batch. A job downloads the video (as above), cuts out the sound with ffmpeg and sends it to a speech-to-text provider: ElevenLabs Scribe, or any server with OpenAI's
/audio/transcriptionsroute (OpenAI, Groq, a self-hosted Whisper). Several providers can be registered; a request names one or lets the routing rules pick, with fallback when one fails. Each has a monthly cap, and a job that would pass it waits for the next period. The queue lives in SQLite and survives restarts. Transcripts are kept as JSON undervar/transcriptsand indexed for search (Korean included). They are lecture content like the videos: private, for your own study. See docs/transcripts.md and docs/stt-providers.md.Slides. While a lecture's video is on the server for transcription, ffmpeg also saves a picture of each slide (the key frames where the picture changes, near-identical ones folded together) with the time it was on screen. Each slide can then be read together with what was said during it.
One cache, with caps. Videos, extracted audio, attachments and transcripts are indexed together. Each kind has a cap and so does the total; past a cap the least recently used go first, but never something you pinned, something a queued job still needs, or a transcript.
Careful with logins. At most 3 password logins a day. A rejected password, a locked account or a password-expiry notice stops automatic logins until you retry with an admin token (
POST /api/v1/sync?retry_login=true).Schedule. Syncs run at 07:30, 12:30, 18:00 and 22:30 KST (±10 min), plus on request. They show up as normal account activity in Canvas.
Failures. If part of a sync fails, the old data for that part is kept and its
synced_atstays at the last good sync.staleturns true once that is older than 12 hours (ICAMPUS_STALE_HOURS); from then on/api/v1/status(and the Uptime Kuma push) reports unhealthy and names the datasets left behind, and a task status resting on that data says it is outdated./api/v1/statusshows per-run errors. An item that drops off the iCampus to-do list is not marked "done".
Related MCP server: Quirkus
Run it locally
uv sync
uv run playwright install chromium
cp .env.example .env && chmod 600 .env # your 킹고ID + tokens (openssl rand -hex 24)
uv run icampus sync --headed # one sync, watching the browser
uv run icampus serve # API on 127.0.0.1:9013 (+ the schedule)
uv run pytestSwagger UI: http://127.0.0.1:9013/docs. icampus probe is a one-off read-only check of what the
iCampus pages load. It writes its report to var/probe/, which is gitignored and holds personal data.
icampus video-check and icampus material-check are one-off read-only checks too: they print the shape of
the lecture video and lecture material items (no titles, no IDs) and, with --head N, what SKKU's content server
says about N of them. material-check never requests a file: whether lecture materials may be fetched at all is
an open question that its report is meant to answer.
REST API
Send Authorization: Bearer <token> on every call. Tokens come from ICAMPUS_API_TOKENS
(label:token,...). List responses look like {synced_at, stale, count, items}; when a list is cut
short they add total and truncated. course accepts an ID, a course code or part of a name.
Endpoint | Notes |
| no auth |
| last runs, freshness per dataset, login state, next run |
| Returns 202 started, 409 running, 429 cooldown or 423 blocked. |
| codes, instructors, current grade |
| merged to-do list: |
|
|
|
|
| an announcement or assignment attachment and its text: |
| the file itself |
|
|
| lecture videos kept on the server, and how full the cache is |
| download a lecture video to the server unless it's cached (202 while it downloads, 200 when ready) |
|
|
| the video file; supports Range, so players can seek. |
| per course and in total: videos, hours, exportable hours and GB, transcribed hours, cost of the rest per provider |
| the speech-to-text providers: description, cost per hour, word timestamps, languages, health, cap left |
| transcribe a lecture: |
|
|
|
|
|
|
| the slide frames of a lecture: |
| slide by slide: each frame with what was said while it was on screen. |
|
|
|
|
| everything on disk: |
| runtime settings (admin token): values, where each comes from, limits |
| manage providers (admin token): |
|
|
| everything as one JSON document |
Any token may read, queue transcriptions and cancel jobs: queueing can cost money, but only inside each
provider's cap. Changing settings or providers, testing a provider and deleting from the cache (including
DELETE /api/v1/videos/{item_id}) need a token whose label is in ICAMPUS_ADMIN_LABELS. No route returns an
API key.
A few fields to read carefully:
statussums up a task or lecture item:todo,done,missed(deadline and any late period passed),upcoming(not open yet) orunknown(iCampus can't tell, e.g. handed in on paper or through an external tool). Canvas decides for what you hand in, LearningX for what you watch or read.status_reasonsays which, andstatus_checked_atwhen that source last confirmed it.in_remaining_listis what My Page shows. It does not mean you haven't submitted.completedandsubmissionare only filled in when iCampus reported them.nullmeans unknown.attendanceis one ofattendance(present),late,absentornone(not decided yet).Attachment text comes out of PDF, Word, PowerPoint, Excel, HWPX, notebooks and text files.
extractsays when there is none: a picture, a scanned PDF, or the binary HWP format.
MCP
Tools: sync_status, list_courses, list_tasks, list_announcements, read_announcement,
read_assignment, read_attachment, list_lectures, export_video, get_grades, refresh. All are read-only
except refresh, which asks for a sync; read_attachment, whose first read of a file downloads it from iCampus
(so clients may ask before running it) and which returns text, or the picture itself for images; and
export_video, which saves a lecture video (exportable in list_lectures) to the server. Call it again to follow
the download; when it is ready it returns a link, <ICAMPUS_MCP_PUBLIC_URL>/videos/<item_id>. The MCP server streams
the file from the API behind the same auth as /mcp, so over Cloudflare Access the link opens in a signed-in
browser. Without ICAMPUS_MCP_PUBLIC_URL the link is the API address (bearer token needed).
Transcript tools:
Tool | What it does |
| the registered models with description, cost per hour, word timestamps, languages, health and cap left |
| queue one lecture; call again to follow it. Not read-only: it downloads and may cost money. Leave |
| many lectures. Returns the plan (count, hours, cost per model, cap left) unless |
| one lecture's state, or the queue |
| the text with |
| a lecture slide by slide: each slide's picture (as an image) with what was said while it was on screen, a few slides per call |
| where something was said: title, course, time, the sentence, a link to that moment |
| totals per course, so "how many hours of lectures are there" doesn't need the whole list |
The links into a video work while the video is on the server; export_video brings it back. The server's
instructions tell the assistant that transcripts are machine-made, private and for your own study.
# over HTTP (icampus-mcp --http), with a token from ICAMPUS_MCP_TOKENS
claude mcp add --transport http icampus http://<server>:8724/mcp --header "Authorization: Bearer <token>"
# or locally over stdio against the API
claude mcp add icampus --env ICAMPUS_MCP_API_URL=http://<server>:9013 \
--env ICAMPUS_MCP_API_TOKEN=<api token> -- uv run --directory "$PWD" icampus-mcpOver HTTP, a request gets in with either a bearer token from ICAMPUS_MCP_TOKENS or a Cloudflare
Access JWT. Without either one configured, the server won't start.
The Access route is how claude.ai and the mobile apps reach it:
Put a public hostname behind an Access app with Managed OAuth, and proxy it to
:8724.Set these variables:
ICAMPUS_MCP_ACCESS_TEAM, for examplemyteam.cloudflareaccess.com;ICAMPUS_MCP_ACCESS_AUD, the app's AUD tag or tags, comma-separated;ICAMPUS_MCP_ACCESS_EMAILS, the emails allowed in;ICAMPUS_MCP_ALLOWED_HOSTS, which must include the public hostname.
Admin UI
http://<api address>:9013/admin shows what the server has and lets you change how it runs: an overview (sync
status, storage against caps, the queue, speech-to-text use this month), every runtime setting, the STT models
(add, edit, test, routing), the job queue (retry, cancel, queue a course after a dry run), and one table of
everything on disk (open, pin, delete, re-download, transcribe). A lecture's page plays the video beside its
transcript; clicking a line seeks to it.
Sign in by pasting an admin-labelled API token once. You get a session cookie that is signed, expires after
ICAMPUS_ADMIN_SESSION_HOURS(12), and is HttpOnly, SameSite=Strict and Secure. Every form carries a CSRF token. Signing out ends the session on the server.HTTPS. The cookie is only sent over HTTPS. On a tailnet,
tailscale serve --bg --https=443 9013on the host gives the API (and the UI) an HTTPS address with a real certificate, reachable from your tailnet only. To use plain HTTP on a tailnet address instead, setICAMPUS_ADMIN_COOKIE_SECURE=false.It is reachable wherever the API is, so keep the API on a private address, as before.
ICAMPUS_ADMIN_UI=falseturns the UI off.From outside the tailnet it is not exposed, on purpose. If you want that later, the route would be the one videos already take: the MCP host, which sits behind Cloudflare Access, proxying
/adminto the API the way it proxies/videos. That would need the proxy to pass cookies and form posts through and the UI to accept the public origin; it is described in docs/transcripts.md and not built.Looking at any page reads the database and the disk only. Nothing in the UI sends a request to iCampus; the buttons that download a video or transcribe a lecture reach SKKU's content server without your login, like an export.
The look: paper-coloured pages, white cards, one black card per page for the numbers that matter, a single blue for marks, red only for what needs you, and pixel numerals for counts. Light and dark follow the system; the control at the foot of the sidebar picks one. Every colour, shadow, radius and font is a CSS custom property in the first section of
src/icampus/admin/static/theme.css, each colour written once aslight-dark(light, dark): change the values there and the whole UI follows. The fonts (Geist, Geist Mono and Galmuri11, all SIL OFL, licences beside them), the icons and htmx are served from the package, so the UI makes no outside requests. It needs a browser from 2024 or later (light-dark()).
Settings
Everything under Settings in the admin UI can also be set as ICAMPUS_<NAME> in the environment (a value saved
in the UI wins, and the page shows which is in force) or through PUT /api/v1/settings. The groups:
Group | Settings |
Storage |
|
Sync |
|
Transcription jobs |
|
Speech-to-text |
|
Budget |
|
Tokens, the SKKU login, login limits, the listen address and the admin cookie settings stay in the environment and are only shown, never changed, from the UI.
Deploy with Docker
cp .env.example .env && chmod 600 .env # fill it in
docker compose up -d --build # ports on 127.0.0.1 onlyTo expose the ports on a server, copy compose.homelab.example.yaml to compose.homelab.yaml
(gitignored), put in your addresses, and add COMPOSE_FILE=compose.yaml:compose.homelab.yaml to
.env. Keep the API off the public internet, and put only the MCP port behind Cloudflare Access.
The MCP container never gets your SSO password, a speech-to-text key or the data volume.
Upgrading an existing install needs nothing by hand: the database migrates in place, videos and attachments
already on disk are indexed instead of downloaded again, and if the stored lecture rows come from an older
version one sync runs at start (through the usual cooldown and login guard). The image now includes ffmpeg.
For transcripts, put ELEVENLABS_API_KEY=... in .env (or register another provider), then open /admin/stt
and press Test.
License
MIT — see LICENSE.
Repo
Path | What |
| the program ( |
|
|
| the admin UI: |
| how iCampus behaves: login flow, endpoints, side effects |
| the design of the transcript pipeline, cache and admin UI, the schema versions, and what the brief got wrong |
| provider configs: ElevenLabs, OpenAI, Groq, a self-hosted Whisper server |
| offline tests with made-up data and fake servers; one runs a local Chromium against a fake login page, a few run ffmpeg on generated audio (skipped without it) |
var/ (the database, saved session, downloaded attachments and videos, audio, transcripts, stored provider keys,
probe output), .env and private/ hold personal data and are gitignored.
Available Tools
8 toolsget_gradesBRead-only
Course totals and per-assignment scores as Canvas shows them to you (hidden grades stay hidden).
Inputs: course.
list_announcementsARead-only
Recent course announcements (title, date, author, read state, a short preview), newest first.
Use read_announcement with an id for the full text.
Inputs: course, since_days, unread_only.
list_coursesARead-only
This term's courses: id, code (e.g. CSE1001), name, instructors and the current grade if visible.
Inputs: no named parameters.
list_lecturesARead-only
Lecture videos/materials with completion and attendance as iCampus shows them, soonest deadline first. By default: items already open, not completed, whose deadline (incl. late period) has not passed.
Args:
course: course ID, code or part of the name.
week: week number (1 = 1주차).
kind: e.g. video or material.
incomplete_only: only items reported as not completed (unknown completion is left out).
include_upcoming: also items that have not opened yet.
include_overdue: also items whose deadline has passed (missed, possibly still viewable).
include_attendance: add each course's official per-lesson attendance summary.
limit: maximum items returned.
Inputs: kind, week, limit, course, +4 more.
list_tasksARead-only
Things to do across courses, soonest first: the iCampus remaining list merged with Canvas assignment/quiz submission status and lecture completion. Items with no due date come last.
Args:
course: course ID, code (CSE1001) or part of the name. Omit for all courses.
kind: only this kind of item.
due_within_days: items due in the next N days (items without a due date are always included).
past_days: also include items whose due date passed in the last N days (overdue/late window).
include_done: also include submitted/completed items.
limit: maximum items returned; `total` shows how many matched when truncated.
Inputs: kind, limit, course, past_days, +2 more.
read_announcementARead-only
Full text of one announcement (by the numeric id from list_announcements).
Inputs: announcement_id (required).
refreshAIdempotent
Ask the collector to sync from iCampus now. Returns immediately; a sync takes about a minute. Limited to once every few minutes. Check sync_status afterwards.
Inputs: no named parameters.
sync_statusARead-only
When the data was last refreshed (per dataset), whether the last runs worked, and any login problem. Call this first if answers look stale or empty.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools clearly target distinct resources: announcements, courses, tasks, lectures, grades, and sync status. The only mild overlap is list_tasks including lecture completion while list_lectures also reports completion, but their primary purposes are still distinguishable. refresh and sync_status are complementary rather than competing.
The dominant list_* prefix creates a mostly readable pattern, and read_announcement and get_grades fit loosely within it. However, refresh and sync_status break the verb_noun style, and pluralization is inconsistent with list_announcements vs. read_announcement. The naming is understandable but not fully predictable.
Eight tools is well within the ideal range for a campus portal integration. Each tool covers a distinct area—announcements, courses, tasks, lectures, grades, and sync—without redundancy or bloat.
The read-only scope is well covered: announcements have list/detail, the major coursework views have dedicated list endpoints, grades are exposed, and sync status is handled. Minor gaps exist such as no per-course detail or task/lecture detail endpoints, but common workflows around due work, lectures, and grades are fully supported.
Maintenance
Related MCP Connectors
Read-only MCP tools for AI agent discovery, structured resources, and NIULAI information.
Your company's AI assistants, agents, workflows and knowledge bases from Orckai, as MCP tools.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Read-only search of 2,189 AI agent tools (MCP servers, x402 APIs) with daily automated trust scores.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to access Canvas LMS academic data such as courses, assignments, grades, and events via MCP tools.-
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to read courses, upcoming deadlines, assignment details, grades, announcements, modules, files, inbox, and timetable from U of T Quercus and ACORN through read-only tools.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to browse your own university courses by downloading files, slides, announcements, deadlines, grades and lecture transcripts to your machine, then answering questions and searching across them through MCP tools. It logs in with your own account and refreshes only what changed.MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to read a student's own university academic data — class timetables, exam schedules, grades, available terms, and empty classrooms — from Qiangzhi (jsxsd) or Zhengfang V9 systems via a session imported from the browser. All access is strictly read-only, never performing course selection, withdrawal, or evaluations.61MIT