Canvas Companion
Provides read-only access to a user's Canvas account, including courses, deadlines, assignments, announcements, files, syllabus, grades, and discussions via the Canvas API.
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., "@Canvas Companion What's 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.
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 terminalClaude 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 panelOpens 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-browserprints the link instead of opening it.
Claude Desktop extension
A one-file install for Claude Desktop (macOS and Windows).
Get the
.mcpbfile: download it from the control panel's Connect AI apps page, or build it withnpm run build:extension(-- --target allbuilds mac + windows intodist-extension/).Double-click it. Claude Desktop shows an install dialog.
Every setting is optional. Leave them empty and say "Set up Canvas Companion" in a chat: Claude does the rest with the
setuptool. Or enter your Canvas address, plus a personal access token if you have one. Claude Desktop keeps the token in your system keychain.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 elseApp | How |
Claude Desktop | automatic ( |
Claude Code | automatic ( |
Cursor | automatic ( |
VS Code / Insiders | automatic (user |
Windsurf | automatic ( |
Gemini CLI | automatic ( |
LM Studio | automatic ( |
Codex CLI | automatic ( |
Zed and other stdio apps |
|
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
connectagain after moving or upgrading Node.connect --removetakes 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 |
| Is it signed in, as whom, until when |
| Courses with ids, terms, teachers and scores; warns about lecture and recitation shells; your saved notes |
| Everything due, soonest first, with status and your own override dates. Includes |
| Instructions, rubric, your submission, comments, linked files. New Quizzes and external tools are flagged, with where the prompt likely is |
| Recent announcements with attachments, links and dates found in the text |
| Classes, exams, review sessions and due entries; repeated descriptions are printed once |
| Modules, text headers, locks and unlock dates, what changed since you last looked |
| Find a file, page or assignment by title across courses |
| Text of PDFs, Word, PowerPoint (with speaker notes), Excel, pages and text files, in budgeted chunks |
| Look at pages as images: slides, equations, scans, handwriting |
| The syllabus wherever it lives (tab, module file, front page, Google Doc) |
| A public outside page or doc, safely (https only, no private networks, no sign-in sent) |
| Instructors and TAs (with email when shown); classmates by name only |
| Official score, weighted groups, drop rules, per-assignment scores and comments, points left |
| Prompts and the newest posts, with older posts on request |
| One read of a course: announcements, instructions, prompts, modules, syllabus, key files, and every date found |
| New announcements, files, pages, grades and due-date changes since you last asked |
| Exams, facts and documents saved for later chats |
| 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"In your AI app, add a custom connector with the URL
https://relay.example.edu/mcp.When the app opens the relay's sign-in page, run
npx canvas-companion relay codeand type the code. No password is involved.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 openopens your dashboard: connected apps, an activity log (tool and course, never content), Download my data, and Disconnect and delete everything.relay deletedoes 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; | Encrypted (AES-256-GCM, with a key held outside the database) |
School address, name, time zone |
| Your account row |
Saved notes and "last checked" markers |
| 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:4010CANVAS_COMPANION_NOW pins the clock (testing only). Design decisions are in DECISIONS.md.
Available Tools
20 toolscheck_authCheck Canvas sign-inARead-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 contentARead-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_announcementsAnnouncementsBRead-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_assignmentsAssignmentsARead-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_calendarCalendarBRead-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 briefARead-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 modulesARead-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_deadlinesDeadlinesARead-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_discussionsDiscussionsARead-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 pagesARead-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_gradesGradesARead-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 notesARead-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 coursesARead-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 peopleARead-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_syllabusSyllabusARead-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 newARead-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 pageARead-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.
read_linkRead an outside linkARead-onlyIdempotent
Reads a public web page or document a course links to (professor's site, Google Doc/Slides/Sheet shared publicly, PDF on the web). https only; private-network addresses are refused; no sign-in is ever sent. outcome is read, restricted (only school accounts can open it), unsupported (video, binary), unavailable (gone or down) or refused (unsafe address). Canvas links are read through the student's Canvas sign-in instead.
Inputs: url (required), offset, maxChars.
rememberSave to the student's notesARead-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
Scored across 20 tools
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.
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.
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.
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
Related MCP Connectors
Read-only MCP for AI usage profiles, leaderboards, stats, and docs; no writes or private data.
- ORANO MCP ServerDeprecatedio.github.infotik
Read-only MCP server exposing a user ORANO library to their own AI agent.
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
The HubSpot MCP Server acts as a bridge that enables AI assistants and Large Language Models to securely interact with HubSpot CRM data through natural conversation, without requiring users to understand complex API structures. It provides read-only access to standard CRM objects (contacts, companies, deals, tickets, products, invoices, and more) and their associations, secured via OAuth 2.0, allowing AI agents to perform tasks like summarizing deals, fetching company updates, and looking up record changes.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to access Canvas LMS academic data such as courses, assignments, grades, and events via MCP tools.-
- AlicenseAqualityCmaintenanceEnables MCP-compatible assistants to read Canvas course information—including courses, assignments, syllabi, modules, pages, and announcements—through a local read-only server.10MIT
- AlicenseNot gradedqualityCmaintenanceLets 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 npm2MIT
- AlicenseNot gradedqualityBmaintenanceA 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.115MIT