Skip to main content
Glama

Canvas Companion

Canvas Companion is a read-only MCP server. It lets your AI assistant (Claude, ChatGPT, Cursor, VS Code and others) read your own Canvas account: courses, deadlines, assignments, announcements, files, syllabus, grades and discussions. It works at any school that uses Canvas, with no admin involvement and no institutional developer key. It never asks for or stores your password.

  • Read-only, enforced in code. Every request it sends to Canvas is a GET. Anything else is refused before it leaves your computer, and tests prove it.

  • Local first. It runs on your computer, and your sign-in stays in your system keychain. A hosted relay is optional.

  • No AI inside. The server never calls an AI service and holds no AI keys. It hands Canvas data to the AI app you already use, and that app does the thinking.

npx canvas-companion panel      # control panel in your browser: connect Canvas, add it to your AI apps
npx canvas-companion setup      # or the same steps in the terminal

Claude Desktop: download canvas-companion-mac.mcpb or canvas-companion-windows.mcpb, double-click it and click Install. Then say "Set up Canvas Companion" in a chat: Claude asks for your school and opens its normal sign-in window. See Claude Desktop extension.

Let your AI set it up: npx canvas-companion ai-setup (or the control panel's Copy prompt button) gives you a prompt for any AI chat. The assistant walks you through adding Canvas Companion, then finishes with its setup tool. You never paste a password or token into the chat.

Then ask your assistant: "What's due this week?", "Anything new in Chem?", "What do I need on the final?", or "Read the Lecture 12 slides and quiz me."


Sign in

setup asks for your school's name (or your Canvas address), then how to connect:

Option

What it can read

How long it lasts

1. Personal access token (recommended)

Everything your account can see, via the Canvas API

Until you delete it, or the expiry you chose

2. Browser sign-in

Same as above

Until your school ends the session (kept alive every 20 min)

3. Calendar feed

Deadlines and calendar events only

Until you reset the feed in Canvas

1. Personal access token. In Canvas, go to Account → Settings → Approved Integrations → + New Access Token. Name it "Canvas Companion" (the expiry is optional), then paste it into setup. Setup opens that page for you. If there is no "New Access Token" button, your school has turned tokens off: use option 2.

2. Browser sign-in. Setup opens your installed Chrome or Edge on your school's real login page. You sign in as you always do (SSO, MFA), and the window closes by itself.

  • What is kept: only Canvas's own session cookie. Nothing from your school's sign-in page is read or kept.

  • Keep-alive: while your AI app is open, a light check every 20 minutes keeps you signed in.

  • When the school ends the session: you get a notification and a new sign-in window. To sign in again by hand, run npx canvas-companion login.

The window uses its own browser profile, so school "remember me" works next time; login --fresh uses a throwaway profile instead.

Important: a saved browser session or access token can do anything you can do in Canvas. Canvas Companion only ever reads, and the sign-in is stored in your system keychain, but protect your computer accordingly.

3. Calendar feed. In Canvas, open Calendar and click Calendar Feed (bottom right). Copy the link and paste it into setup. Treat this link like a password.

Check your setup any time with npx canvas-companion status (shows the school, your name, sign-in type, time zone and how long the sign-in should last) or npx canvas-companion doctor.

Related MCP server: Canvas MCP

Control panel

npx canvas-companion panel

Opens a page on your own computer (http://127.0.0.1:<port>) with everything in one place:

  • Home: status, the three steps, and Let your AI set it up (a prompt to copy into any AI chat).

  • Setup guide: every step from nothing to "What's due this week?": making a Canvas token, browser sign-in, the calendar feed, then the exact steps for Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Gemini CLI, LM Studio, Codex CLI and the web/phone apps, with a Connect button for each and a troubleshooting list. It shows which steps you've already done.

  • Canvas sign-in: find your school, then connect with a token, browser sign-in, or calendar feed. Sign out, or remove everything.

  • Connect AI apps: one click per detected app, the Claude Desktop extension download, and config for anything else.

  • Saved notes: view and delete.

  • Remote access: upload to a hosted relay, get sign-in codes, delete from the relay.

  • Settings and Privacy.

How the panel is protected:

  • It is reachable only from this computer.

  • It opens with a one-time link and refuses other sites' requests.

  • It stops by itself after 30 minutes idle, or with the Stop button.

  • --no-browser prints the link instead of opening it.

Claude Desktop extension

A one-file install for Claude Desktop (macOS and Windows).

  1. Get the .mcpb file: download it from the control panel's Connect AI apps page, or build it with npm run build:extension (-- --target all builds mac + windows into dist-extension/).

  2. Double-click it. Claude Desktop shows an install dialog.

  3. Every setting is optional. Leave them empty and say "Set up Canvas Companion" in a chat: Claude does the rest with the setup tool. Or enter your Canvas address, plus a personal access token if you have one. Claude Desktop keeps the token in your system keychain.

  4. With no token, the extension uses the sign-in this computer already has for that school (from the control panel or setup). If there is none, the first time you ask about Canvas a sign-in window opens. Sign in as usual and ask again.

The extension runs on Claude Desktop's built-in Node, so you don't need Node installed. Saved notes use the same ~/.canvas-companion folder as the command-line version. The bundle isn't code-signed yet, so Claude Desktop marks it as unverified.

Connect your AI apps

npx canvas-companion connect          # finds your apps and adds Canvas Companion (asks first)
npx canvas-companion connect --print  # config to paste into anything else

App

How

Claude Desktop

automatic (claude_desktop_config.json)

Claude Code

automatic (claude mcp add --scope user)

Cursor

automatic (~/.cursor/mcp.json)

VS Code / Insiders

automatic (user mcp.json, servers)

Windsurf

automatic (~/.codeium/windsurf/mcp_config.json)

Gemini CLI

automatic (~/.gemini/settings.json)

LM Studio

automatic (~/.lmstudio/mcp.json)

Codex CLI

automatic (~/.codex/config.toml)

Zed and other stdio apps

connect --print, then paste

ChatGPT, claude.ai on the web, phones

need a URL: see Remote connector

How connect handles your config files:

  • It only adds or updates its own entry; other servers and settings are kept.

  • The original file is backed up once as <file>.bak-canvas-companion.

  • A file with comments in it is left alone, and the snippet is printed for you to paste.

  • Fully quit and reopen the app afterwards.

  • The config points at the exact Node on your computer, because desktop apps don't see your shell's PATH. Run connect again after moving or upgrading Node.

  • connect --remove takes Canvas Companion out again.

Local HTTP, for apps on this computer that need a URL:

npx canvas-companion serve --http --port 8765 --show-token
# http://127.0.0.1:8765/mcp   header: Authorization: Bearer <token>

What it can do

Tool

For

check_auth

Is it signed in, as whom, until when

get_my_courses

Courses with ids, terms, teachers and scores; warns about lecture and recitation shells; your saved notes

get_deadlines

Everything due, soonest first, with status and your own override dates. Includes dueSoon (with the exact calls that read the instructions and sheet), saved exams, and work mentioned only in announcements

get_assignments

Instructions, rubric, your submission, comments, linked files. New Quizzes and external tools are flagged, with where the prompt likely is

get_announcements

Recent announcements with attachments, links and dates found in the text

get_calendar

Classes, exams, review sessions and due entries; repeated descriptions are printed once

get_course_content

Modules, text headers, locks and unlock dates, what changed since you last looked

find_content

Find a file, page or assignment by title across courses

read_content

Text of PDFs, Word, PowerPoint (with speaker notes), Excel, pages and text files, in budgeted chunks

get_file_page

Look at pages as images: slides, equations, scans, handwriting

get_syllabus

The syllabus wherever it lives (tab, module file, front page, Google Doc)

read_link

A public outside page or doc, safely (https only, no private networks, no sign-in sent)

get_roster

Instructors and TAs (with email when shown); classmates by name only

get_grades

Official score, weighted groups, drop rules, per-assignment scores and comments, points left

get_discussions

Prompts and the newest posts, with older posts on request

get_course_brief

One read of a course: announcements, instructions, prompts, modules, syllabus, key files, and every date found

get_whats_new

New announcements, files, pages, grades and due-date changes since you last asked

remember / get_memory

Exams, facts and documents saved for later chats

setup

Local only. Lets the AI do the setup: finds your school, opens your school's sign-in window or a private page for a token, confirms, and can add Canvas Companion to your other AI apps. It has no field for a password or token. Never on the hosted relay

Times are always in your time zone, and every result names that zone. Dates found in instructors' prose are marked unverified and kept apart from official due dates. Text written in Canvas is treated as data. Anything that reads like instructions to an AI is flagged so your assistant doesn't follow it.

Remote connector (optional)

To use Canvas Companion from ChatGPT, claude.ai on the web, or your phone, you need a hosted relay. Someone runs it (you, your student group, a service you trust; see RUNBOOK.md), and you opt in:

npx canvas-companion relay upload --url https://relay.example.edu   # shows what is stored and why; type "yes"
  1. In your AI app, add a custom connector with the URL https://relay.example.edu/mcp.

  2. When the app opens the relay's sign-in page, run npx canvas-companion relay code and type the code. No password is involved.

  3. Approve the app.

On the relay:

  • Your sign-in is encrypted, your data is kept apart from every other student's, and each app gets its own revocable access.

  • npx canvas-companion relay open opens your dashboard: connected apps, an activity log (tool and course, never content), Download my data, and Disconnect and delete everything.

  • relay delete does the same deletion from the command line.

Commands

panel      control panel in your browser     setup     connect Canvas (terminal)
ai-setup   prompt for your AI chat to walk you through setup
status     what's connected, how long it lasts
login      browser sign-in again             doctor    check this computer's setup
connect    add to your AI apps               serve     run the MCP server (apps do this)
logout     remove sign-in + notes            purge     remove everything stored locally
relay      upload | code | open | status | delete     (optional hosted relay)

logout can't delete a token inside Canvas, because Canvas Companion never sends anything but reads. It prints the link so you can delete the token yourself.

What is stored, and where

What

Local

Hosted relay (only if you opt in)

Canvas sign-in

System keychain (Linux without a keychain: an encrypted file; doctor warns)

Encrypted (AES-256-GCM, with a key held outside the database)

School address, name, time zone

~/.canvas-companion/config.json (only you can read it)

Your account row

Saved notes and "last checked" markers

~/.canvas-companion/data.db

Your rows, isolated by row-level security

Activity log

none

Tool + course + time, never content

Logs

your AI app's MCP log, with no credentials or course text

same rule

There is no telemetry.

Safety notes

  • THREAT_MODEL.md: session theft, cross-tenant leakage, prompt injection, malicious files, expiry edge cases.

  • COMPLIANCE.md: open legal questions (FERPA, GDPR, minors, school policies). Canvas Companion has no compliance certification.

  • Canvas Companion is not affiliated with Instructure or your school. Check your school's acceptable-use policy, especially before using a hosted relay.

Development

npm install
npm test                               # 276 tests: msw mock of Canvas, PGlite for the relay
npm run build:extension                # Claude Desktop extension (.mcpb) into dist-extension/
npm run test:extension                 # runs the packed .mcpb the way Claude Desktop does (add -- --session for browser sign-in)
npm run smoke                          # builds, then drives the real CLI + MCP over stdio and HTTP
npm run load-test                      # relay under concurrent students (per-school limit check)
node scripts/live-signin-check.mjs     # opens real Chrome against the mock school sign-in
npm run mock                           # mock Canvas on http://127.0.0.1:4010

CANVAS_COMPANION_NOW pins the clock (testing only). Design decisions are in DECISIONS.md.

Available Tools

20 tools
check_authCheck Canvas sign-inA
Read-onlyIdempotent

Shows whether Canvas Companion is signed in to the student's Canvas: school, student name, sign-in type, time zone, and how long the sign-in is expected to last. Call when another tool reports a sign-in problem.

Inputs: no named parameters.

find_contentFind course contentA
Read-onlyIdempotent

Searches titles of module items, pages, files and assignments across the student's current courses (or one course) and returns matches with the ids and the exact call to read each. Use it to find a sheet, reading, slide deck, or the real prompt of an assignment.

Inputs: query (required), courseId.

get_announcementsAnnouncementsB
Read-onlyIdempotent

Course announcements, newest first: title, date, author, body (preview, or full with fullBody/newsId), attachments and links with the calls that read them, and dates mentioned in the text (unverified). Logistics such as office hours, room changes and Zoom links often exist only here.

Inputs: count, newsId, offset, courseId, +2 more.

get_assignmentsAssignmentsA
Read-onlyIdempotent

Assignment details: instructions, points, due/unlock/lock dates (with the student's own override), submission types, the student's submission, score, comments, rubric, and the files/pages/links it points to (with the calls that read them). With itemId: one assignment in full. Without: a compact list for a course (or all current courses). New Quizzes and external-tool assignments are reported as "details not exposed" with where the real prompt likely lives.

Inputs: itemId, offset, courseId, includePast, +1 more.

get_calendarCalendarB
Read-onlyIdempotent

Calendar events (class meetings, exams, review sessions, office hours, the student's own events) and assignment due entries in a date window, in the student's time zone, with location and meeting links. Descriptions repeated across recurring events are printed once and referenced with descriptionSameAs. Includes savedExams.

Inputs: courseId, daysBack, daysAhead.

get_course_briefCourse briefA
Read-onlyIdempotent

One budgeted read of a course: recent announcements, upcoming assignment instructions, open discussion prompts, module headings and text headers, the syllabus, and up to 3 key files (schedule, overview), plus mentions: every date found in that free text, flagged ambiguous-order, range, changed, year-inferred or relative. Each cut section names the exact call (doc + offset) to read the rest.

Inputs: courseId (required), doc, offset.

get_course_contentCourse modulesA
Read-onlyIdempotent

A course's modules and their items (files, pages, outside links, assignments, quizzes, discussions, and text headers) in order, with lock/unlock dates, prerequisites, completion requirements, last-updated dates, what changed since the student last looked, and the call that reads each item. Text headers (SubHeaders) often carry syllabus links, recording links and instructions.

Inputs: courseId (required), maxDepth, moduleTitle.

get_deadlinesDeadlinesA
Read-onlyIdempotent

Everything due soon across the student's courses (or one course): assignments, quizzes, graded discussions, page to-dos and planner notes, merged and sorted soonest first, with status (submitted, missing, graded...), per-student override dates, a one-line summary, dueSoon (unsubmitted within 48h, with the calls that fetch its instructions and sheets), savedExams, and textMentions (work set only in announcements, unverified). Use for "what should I do tonight", "am I behind", "what's coming up".

Inputs: courseId, daysBack, daysAhead, includeSubmissionStatus.

get_discussionsDiscussionsA
Read-onlyIdempotent

Course discussions. Without topicId: every topic with due date, points, reply counts, unread counts and whether you must post first. With topicId: the prompt in full and the newest posts (maxPosts, default 10) with authors and replies, plus a cursor call for older posts.

Inputs: courseId (required), before, offset, postId, +2 more.

get_file_pageLook at file pagesA
Read-onlyIdempotent

Renders pages of a course file as images (up to 4 per call) so you can see slides, equations, tables, diagrams, handwriting and scans. PDFs always; PowerPoint/Word when LibreOffice is installed (otherwise the pictures on those slides); image files as themselves. Includes a link to the file in Canvas.

Inputs: fileId (required), courseId (required), pages.

get_gradesGradesA
Read-onlyIdempotent

Grades for one course or all current courses: Canvas's current score and letter grade (official), assignment groups with weights and drop rules, each group's percentage, per-assignment scores, statuses (missing, late, excused, not released) and instructor comments, and remaining points per group for "what do I need" planning. States when the instructor hides the course total.

Inputs: courseId.

get_memoryThe student's saved notesA
Read-onlyIdempotent

Everything saved with remember, with ids: exams (with dates), facts, and documents (preview; pass id for the full text, budgeted with offset). Filter by courseId or kind.

Inputs: id, kind, offset, courseId.

get_my_coursesMy Canvas coursesA
Read-onlyIdempotent

Lists the student's Canvas courses with courseId (every other tool needs it), term, teachers, current score, and the student's saved notes (exams, facts, documents) per course. Warns when one course has several shells (lecture/recitation). scope: current (default), past, or all.

Inputs: scope.

get_rosterCourse peopleA
Read-onlyIdempotent

Instructors and TAs of a course with their email when Canvas shows it, and (on request) classmates by name only. Use search to find someone by name.

Inputs: courseId (required), search, includeStudents.

get_syllabusSyllabusA
Read-onlyIdempotent

The course syllabus as text, wherever it lives: the Syllabus tab, a syllabus file in Modules, the front page, or an outside link (Google Doc, professor's site), followed automatically. Reports restricted when only school accounts can open the link. Saved syllabus documents come first.

Inputs: courseId (required).

get_whats_newWhat's newA
Read-onlyIdempotent

What changed in the student's courses since they last asked (a per-course last-checked cursor), or in the last sinceDays: new announcements, added or changed files and pages, newly released grades, edited due dates and new assignments. Use for "anything new?".

Inputs: courseId, sinceDays.

read_contentRead a file or pageA
Read-onlyIdempotent

Reads the text of a course file (PDF, Word, PowerPoint with speaker notes, Excel, HTML, plain text), a Canvas page, or a module item. Long text is budgeted: the result gives totalChars and the exact call to continue (nextOffset). If the text is empty, thin or garbled, call get_file_page for the same file to look at the pages. Video and audio are not read; the link is returned.

Inputs: courseId (required), fileId, offset, pageUrl, +2 more.

rememberSave to the student's notesA
Read-onlyIdempotent

Saves exams, facts and whole documents to the student's notes so later chats know them. Upserts by course + title (exams, documents) or course + topic (facts). Each entry needs a source (e.g. "student", "announcement", "syllabus", "email") and optionally a reference (announcement id, file name). Save only what was stated, never a guess. Correct an entry with corrections (by id); delete with forget (ids). Saved exams appear in get_deadlines and get_calendar.

Inputs: exams, facts, forget, courseId, +2 more.

setupSet up Canvas CompanionA

Sets up Canvas Companion on this computer. Use it when the student asks to set it up, to sign in again or to change school, or when another tool says it is not set up. Steps: (1) Call with no arguments to see what is already set up and what to do next. (2) Ask the student for their school's name, or the address they open Canvas at, and call with school. If several schools match, ask which one is theirs. (3) Ask how they want to connect, then call with school (the exact address from step 2) and method: "browser" (easiest; opens their school's normal sign-in window, and SSO and two-factor work); "token" (opens a private page on this computer where they paste a Canvas access token); "feed" (calendar feed: deadlines and events only). (4) When they say they are done, call with no arguments again to confirm, then answer their question. Never ask the student to type a password, token or feed link into the chat. Those go only into the windows this tool opens. Pass apps to also add Canvas Companion to other AI apps on this computer. Pass replace: true only when the student asked to switch to a different school or account.

Inputs: apps, method, school, replace.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools map to clearly distinct resources or actions, and the descriptions give strong routing guidance. Some overlap remains: get_course_brief aggregates parts of announcements, assignments, discussions, content, and syllabus, while get_deadlines and get_calendar both surface dated items.

    Naming Consistency4/5

    Names are consistently snake_case and mostly follow a predictable verb_noun pattern such as get_grades, read_content, and find_content. A few tools like remember and setup intentionally deviate, but the convention is still easy to follow.

    Tool Count4/5

    Twenty tools is on the high side for a single student Canvas assistant, but each tool covers a distinct part of the read/planning workflow: retrieval, search, content reading/rendering, memory, and setup. It is slightly heavy rather than clearly bloated.

    Completeness4/5

    The read and planning surface is comprehensive: courses, grades, deadlines, assignments, announcements, modules, content reading/rendering, syllabus, discussions, roster, change tracking, memory, and setup are all covered. The main gaps are write actions such as submitting assignments or posting discussion replies/messages, which may be intentionally out of scope.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables MCP-compatible assistants to read Canvas course information—including courses, assignments, syllabi, modules, pages, and announcements—through a local read-only server.
      10
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets AI assistants read a student's Canvas LMS/Moodle courses, deadlines, announcements, grades and course files using their normal browser login instead of an access token. It is read-only and keeps all session data and downloads on the user's own machine.
      35 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      A read-only Model Context Protocol server that lets AI assistants ask plain-language questions about a student's Canvas LMS data — courses, deadlines, assignments, quizzes, grade breakdowns, files, announcements, discussions, and inbox messages. Every tool issues GET requests only, so nothing can be submitted, posted, deleted, or marked as read.
      115
      MIT