Skip to main content
Glama

unitoolkit

Your agent, inside your university. Canvas, Ladok, the timetable, the library and the subscribed research databases, behind one MCP server, with APA references built from the publisher's own metadata. Read-only. Built for a nursing student at Sophiahemmet Högskola in Stockholm; the Canvas, Ladok and TimeEdit parts fit any Swedish university.

PyPI Python Tests License: MIT

unitoolkit in four queries

Four calls: what is due, full-text search inside a course, a database search with an APA reference, and the Ladok alert that only speaks when a fetch really failed. Real output from one morning, names and emails stripped.

The point is one endpoint. A student should be able to say "what do I need to do this week", "find me three peer-reviewed sources on delirium prevention, in APA", or "get me that article", and have the agent work it out, without the student learning which of six systems holds what answer.

Install

pip install unitoolkit                  # library, CLI and MCP server
uvx --from unitoolkit unitoolkit-mcp    # or run the server without installing

claude mcp add unitoolkit -- unitoolkit-mcp      # Claude Code
codex mcp add unitoolkit -- unitoolkit-mcp       # Codex

For Hermes, Cursor or any other MCP client the command is unitoolkit-mcp (stdio). The server lists eleven question-shaped tools by default; UNITOOLKIT_TOOLS=all lists all 38, and every tool stays callable by name either way.

Related MCP server: CampusIntel MCP

Ask it this

You say

The agent calls

The answer comes from

"What do I need to do?"

today

Canvas deadlines not yet submitted, Ladok registration windows open or opening, this week's timetable

"Find me sources on X, APA"

find_sources

CINAHL + PubMed + Cochrane (+ PsycInfo, Web of Science), deduplicated by DOI

"Get me that article"

db_fulltext doi=

the PDF, through the school's subscription

"What does the assignment ask?"

assignment, search

Canvas description and rubric

"Did a teacher post anything?"

announcements, discussions

announcements with body text, and unread discussion threads

"When is the seminar?"

schedule query=1SPRY2

TimeEdit, any course or student group, any period

"Is a room free tomorrow?"

free_rooms

the TimeEdit booking guide, within the booking rules

"Is the book in?" / "When are my books due?"

library query= / library

the catalogue, and the student's own account

"Something is broken"

doctor

every session and credential, each failing row with the human fix

What it covers

System

Read

Notes

Canvas

courses, assignments with rubrics, modules, pages, discussions, files, everything due, full-text search across a course and its documents

Any Canvas school (CANVAS_BASE). SHH disables the pages index; pages are read through module items.

Ladok

course and exam registration windows, with days to open and close

Studentwebb has no API for students, so this reads the same endpoints the page does, on the student's own session.

TimeEdit

any course code's or student group's schedule for any period; the student-bookable rooms and their free gaps

The public guide needs no login. The room list needs the school SSO once, then it is cached.

Library (Koha)

catalogue search, availability per copy, own loans with due dates, holds, fines

Needs a browser; where the library drops your IP, also a proxy (below).

Databases

CINAHL and PsycInfo (EBSCOhost), Cochrane, Web of Science, plus PubMed and Libris

Everything subscription sits behind the school's OCLC EZproxy: one sign-in covers all of them.

Citations

APA 7 from a DOI, a DOI from a title

APA comes from the DOI registry, not from scraped search cards.

Registry: what works where

registry/registry.json is the machine-readable answer to "can an agent read this system at this school, and what breaks?". One row per system per institution: the adapter, a status (ok, partial, fail, untested), the date it was last tested, and the gotchas that cost hours to find. A weekly worker runs each row's probes and writes the status and date back, so a green row means "tested", not "probably fine".

$ python -m unitoolkit registry text=cloudflare
$ python -m unitoolkit registry institution=shh status=ok
$ curl -s https://raw.githubusercontent.com/vhsgreed/shh-study-kit/master/registry/registry.json

Any school can be added with its own rows. scripts/registry_check.py does the testing and scripts/smoke.py holds the probes; rows without probes stay untested rather than pretending.

What it refuses

  • Nothing is written. No submissions, no registrations, no bookings, no renewals, no messages. Every call is a read.

  • No passwords. The tools never type, store, print or log one. They use a browser session a human signed in to, once, and doctor says when that session needs renewing.

  • No bulk downloading. db_fulltext stops at 20 articles an hour. Publishers detect systematic downloading and block the institution's whole proxy, which would cut off every student at the school. The cap is a licence rule, not a tuning knob.

  • No telemetry. Nothing about your data leaves the machine.

Setup (once, by the human)

  1. Canvas token: Account → Settings → New access token → ~/.secrets/CANVAS_TOKEN (0600). Tokens expire silently; doctor reads the real expiry date from Canvas and warns at 14 days.

  2. Agent browser, its own profile, never the everyday one:

    google-chrome --user-data-dir="$HOME/.cache/unitoolkit-chrome" --remote-debugging-port=9233
  3. Sign in once in that window to Canvas, Ladok, the school SSO and the library. The session cookies then carry every tool; doctor says which one has lapsed.

  4. Optional: UNITOOLKIT_GROUP=H26SK (your student group) so today can show the cohort's timetable. KOHA_PROXY=0 if your network reaches the library directly.

The library is the one system that may need more than a login: it drops some home IPs on port 443 and answers plain HTTP clients with a Cloudflare 429, so the only reader is a real browser, and where the IP is dropped, a proxy. python -m unitoolkit.chainproxy starts a local chaining proxy (upstream from CHAIN_UPSTREAM_*, password from CHAIN_UPSTREAM_PASSWORD_FILE); Chrome then runs with --proxy-server=http://127.0.0.1:8118. The proxy exit must be sticky: Koha binds a session to the client IP.

Health

  • unitoolkit doctor: every session and credential, each failing row with the human fix.

  • python scripts/smoke.py: one real query per reader, silent when all pass. Run it weekly.

Readers are scrapers, so they break when a site redesigns. A silent break is worse than a loud one, which is why the smoke test speaks only when something is wrong.

Tests

89 offline tests, no network: python -m pytest tests -q.

Extend it

One decorated function in unitoolkit/tools.py appears in the CLI, the MCP server and tools.json at once. skill/SKILL.md is written for an agent: the tool table and every gotcha found while building this, from Canvas rubric quirks to the Koha login that binds a session to your IP.

Subrepo: ladok-vakt

vendor/ladok-vakt is a git subtree of ladok-vakt: mejl när Ladok-anmälan öppnar (email alerts for registration windows). It is here because Canvas answers "what is due" and Ladok answers "what can I still register for", and a student needs both. Sync it with:

git subtree pull --prefix=vendor/ladok-vakt https://github.com/vhsgreed/ladok-vakt main --squash

ladok_windows is a thin read-only wrapper around it. Run the watcher itself (mail, cron) from the standalone repo.

Status

In daily use against live systems by one nursing student, 2026. Honest limits:

  • Sweden, not the world. Canvas is generic, Ladok is Swedish, and the school-specific hosts (library, EZproxy, TimeEdit guide ids) are constants you change for your own school.

  • Readers are scrapers. CINAHL, Cochrane, Web of Science and Koha are read through their pages, not APIs, so a redesign breaks them. Hence the smoke test.

  • APA keeps the publisher's title case; APA 7 wants sentence case for article titles. The tool flags this rather than lowercasing by rule, because acronyms and proper nouns break.

  • Not verified at another school. If it works for you elsewhere, say so.

License

MIT, for the software only. Course material, articles and library data stay under their own licences and belong to whoever owns them.


Xom is interested. Point your agent at the repo and see what happens.

Clinician references (contributed by health-kun)

refs_search site=vardhandboken query= searches Vårdhandboken by matching your words against its page index, and refs_page url= reads one page from Vårdhandboken, Läkemedelsboken, Janusinfo or Viss as text with its source URL and fetch date. Internetmedicin has no reader: its robots.txt disallows crawlers.

Available Tools

13 tools
announcementsA

Course announcements, newest first, with body text. Canvas hides these from the plain discussion list, so this is the only way to see what a teacher posted.

Inputs: days, course.

assignmentC

One Canvas assignment with description and rubric as plain text.

Inputs: course (required), assignment (required).

db_fulltextA

Full text of one article, by DOI, through the school's subscription (EZproxy). Saves the PDF under ~/.local/share/unitoolkit/fulltext and returns path, pages and the extracted text. Says why when there is no route (publisher outside the proxy: order it via fjärrlån; or an open-access copy exists). Capped at 20 downloads an hour: the licences allow reading for study, not bulk downloading.

Inputs: doi, text.

discussionsB

Discussion topics across courses with read state and reply count, so a group discussion that is waiting for an answer does not go unnoticed. Announcements are separate.

Inputs: days, course, unread_only.

doctorA

Health check of every session the toolkit depends on (Canvas token and its expiry date, agent browser, Ladok, database proxy, library, timetable link). Each row has the fix, which is always a human action. Run it when another tool fails. only='canvas,ladok' limits the checks.

Inputs: only.

find_sourcesA

THE citation tool: one query across several databases (default cinahl, pubmed, cochrane; also psycinfo, wos), deduplicated by DOI, each hit with an APA 7 reference built from the publisher's own DOI metadata. Use this for 'find me sources on X'.

Inputs: query (required), limit, databases.

free_roomsA

Which student-bookable rooms are free on a date (default today), as gaps between bookings within the booking rules (Mon-Fri 08-20, up to 3 days ahead, max 4 h). Read-only: booking itself is done by the student in TimeEdit.

Inputs: date, min_minutes.

libraryA

The school library (Koha). With query: catalogue search with availability per copy. Without: the student's own loans with due dates and days left, holds and fines.

Inputs: limit, query.

onedriveA

The student's OneDrive and files shared with them in the school's Office 365, read only, via the signed-in agent browser. action=status|ls|shared|recent|search|download. ls takes path= (own drive) or drive_id+item_id (any folder); shared takes query= (name or owner filter); search takes query=; download takes name= or drive_id+item_id, plus out= (dir, default ~/courses/onedrive; never overwrites).

Inputs: action (required), out, name, path, +3 more.

registryA

Which university systems an agent can read, per institution: the adapter, status, last verified date and the gotchas that break it. Ask before writing an adapter or debugging an SSO/cookie failure. Filters: system='ladok', institution='shh', status='ok'|'partial'|'fail'|'untested', text='cloudflare'. No filters returns every row.

Inputs: text, status, system, institution.

scheduleA

Timetable for any course code (1SPRY2), student group (H26SK) or room, for any period, from TimeEdit without a login. kind=code|group|room|subject. start/end as YYYY-MM-DD or TimeEdit relative form (0.d = today, 4.w = four weeks). Course NAMES are not indexed: search the code or the group.

Inputs: query (required), end, kind, start.

todayA

START HERE for 'what do I need to do?'. Everything due in the next N days (default 14) from every system at once: Canvas deadlines not yet submitted, Ladok registration windows open now or opening soon, this week's timetable, and (library=true) library loans due back. Each section reports its own error, so one dead session never hides the rest.

Inputs: days, library.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools map cleanly to distinct systems or resources: Canvas search, library catalogue, timetable, citations, OneDrive, diagnostics, and aggregation. The main fuzziness is around `today` versus the individual sources it aggregates, and between diagnostic tools like `registry` and `doctor`, but the descriptions make those boundaries workable.

    Naming Consistency3/5

    All names are lowercase snake_case and readable, but the set mixes nouns (`assignment`, `library`, `schedule`), a verb (`search`), a verb-noun phrase (`find_sources`), and compound labels (`db_fulltext`). There is no predictable operation naming pattern, though the names are not chaotic or vague.

    Tool Count5/5

    At 13 tools, the surface is well within a healthy range for a multi-system university toolkit. Each tool covers a distinct slice of student workflows, and the aggregator and diagnostic tools earn their place as cross-cutting helpers.

    Completeness4/5

    The toolkit has strong read coverage across Canvas, Ladok registration windows, timetable, library, OneDrive, and literature search/full text. There are minor gaps such as no course/list discovery tool and no write actions like submitting assignments, posting replies, or booking rooms, but several are explicitly out of scope and others can be worked around through `today` or `search`.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to discover and explore university research, researchers, academic programs, and institutional data from OpenAlex and the U.S. College Scorecard, returning source-linked results without fabricating facts.
      9
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Codex and Claude Code to access university course portal identity and activities, E3 courses, assignments, deadlines, grades, materials, public timetables, and part-time attendance sign-in/out. It provides platform-aware tools with confirmation safeguards for attendance writes.
      3
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI clients to access a collection of personal university services—email, cloud storage, tables, Git repositories, TeX projects, and SSH hosts—through MCP tools for searching, reading, writing, uploading, downloading, and running commands.
      MIT