canvas-readonly-mcp
It is a read-only Canvas LMS MCP server for students/TAs/teachers to inspect courses, changes, files, assignments, grades, and discussions without modifying Canvas.
Verify your Canvas identity and list courses with your role.
Track what changed via daily snapshots: new/edited/removed items, moved deadlines, grade changes, and changed PDF pages; run or check snapshots.
Full-text search across pages, assignments, announcements, discussions, quizzes, modules, syllabus, and linked PDF/slide/document text.
Browse course content: modules, pages, syllabus, announcements, discussions, quizzes, calendar events, and planner items.
Read linked files and extract text from PDFs, PPTX, DOCX, text/code files, and ZIP listings, with page/slide ranges.
View assignments, rubrics, submissions, grades, teacher comments, and rubric scores; see needs-grading counts for TAs/teachers.
Use Canvas's activity stream, or the raw GET escape hatch for any /api/v1 read-only endpoint.
It only sends GET requests: no submissions, posts, grading, edits, or marking discussions as read.
Provides read-only access to Canvas LMS courses, including assignments and due dates, announcements, pages, modules, files and extracted file text, grades, calendar events, syllabus, and snapshots with daily change logs.
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-readonly-mcp What changed in my courses since yesterday, and what's due next 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-readonly-mcp
Ask Claude what changed in your courses, and search every lecture slide. A read-only MCP server for Canvas LMS, built as a study assistant rather than a full Canvas API.
Knows what changed: daily snapshots of your courses, so "what's new since yesterday?" is one call: new announcements, moved deadlines, new grades, edited pages, even which slides in a lecture PDF changed.
Searches inside your files: full-text search over pages, assignments, announcements and the text of every linked PDF, slide deck and document, with the page or slide number. It finds files linked from pages and modules even when the Files tab is hidden.
Read-only by design: it only ever sends
GETrequests to Canvas. It can't submit, post, grade or change anything, and it doesn't even mark discussions as read.Your token stays with you: one-click Claude Desktop extension (token in your system keychain), local stdio, or your own server for claude.ai. Nothing goes through a third party.
Works with any Canvas instance. Made for students; TAs and teachers can use it too (for reading, e.g. "needs grading" counts).
Not affiliated with or endorsed by Instructure. "Canvas" is a trademark of Instructure, Inc.
What you can ask
"What changed in my courses since yesterday?"
"What's due in the next two weeks, and what have I not submitted?"
"Summarize the lab 2 instructions" (the server finds the PDF linked from the course and returns its text)
"Which slides in lecture 5 changed since last week?"
"Where did we cover dynamic programming?" (searches pages, announcements and the text of every linked PDF and slide deck)
"How will lab 3 be graded, and what did I lose points on in lab 2?"
Related MCP server: Canvas MCP Server
Tools
Tool | What it's for |
| What changed since a time (default 26h): new/changed pages, assignments (due dates, grades), announcements, discussions, quizzes, events, files (which PDF pages changed). The daily-check tool. |
| Full-text search across your courses: pages, assignments, announcements, discussions, the syllabus, and the text of linked PDFs, slides and documents (with the page/slide number). From stored snapshots, so it's instant. |
| Stored state of a course (optionally only some kinds, e.g. assignments). No Canvas calls. |
| Snapshot health: courses and your role, last run, counts, errors, next run. |
| Take a snapshot now and return what changed. |
| The Canvas user the token belongs to; checks that the connection works. |
| Your courses, ids and your role in each. |
| Canvas's own activity stream since a time, including inbox messages. Live, but doesn't see edits, removals or file changes like |
| Everything dated in a window, with submission status. |
| Assignments, due dates, descriptions, rubrics; as a student also your submission, teacher comments and rubric scores. "Needs grading" counts for TAs/teachers. |
| Classic quizzes and New Quizzes: time limit, attempts, lock window, instructions, your latest attempt. |
| Announcements across courses. |
| Discussion topics, and a whole thread with replies (without marking anything read). |
| The syllabus page. |
| Module structure with items. |
| Course pages as text, with their file links. |
| Every file linked from the course (front page, pages, modules, assignments, announcements). Works even when the files tab is hidden. |
| The full Files area, including unlinked files (mostly for TAs/teachers); falls back to linked files when your role can't list it. |
| Text of a PDF (per page), PPTX (per slide + notes), DOCX (per section), text/code file, or ZIP listing. Takes a file id or any Canvas file URL; supports page ranges. |
| Calendar events. |
| Your own scores, grades and comments (as a student). |
| Escape hatch: any |
Quick start
1. Get a Canvas access token
In Canvas: Account → Settings → + New access token. Give it a purpose ("Claude") and preferably an expiry date.
You also need your Canvas address, e.g. https://canvas.yourschool.edu or https://yourschool.instructure.com.
Some institutions disable personal access tokens for students, or only allow short-lived ones. This server needs one: it doesn't support Canvas OAuth, because that requires your school's admins to register each app.
Button missing: ask your school's Canvas or IT support whether personal access tokens can be enabled for you. Mention that it's for a tool that only reads (it never sends anything but
GETrequests). Some schools say yes, many say no.Token expires quickly: tools start failing with "the Canvas API token is invalid or expired". Create a new token and update it: in Claude Desktop under Settings → Extensions → Canvas LMS (read-only), or
CANVAS_TOKENin your config or.env.Check your school's rules on connecting course data to AI tools before you start.
2a. Claude Desktop: one-click extension (easiest)
Download
canvas-readonly-mcp-<version>.mcpbfrom the latest release.Open it (double-click, or drag it into Claude Desktop → Settings → Extensions) and click Install.
Enter your Canvas address and access token. The token is stored in your system keychain.
Nothing else to install: Claude Desktop runs the extension with its built-in Node.js.
2b. Local: Claude Code and other stdio clients
Requires Node.js 22.13 or newer.
Claude Code:
claude mcp add canvas \
-e CANVAS_BASE_URL=https://canvas.yourschool.edu \
-e CANVAS_TOKEN=your-token \
-- npx -y canvas-readonly-mcpClaude Desktop without the extension: add this to claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"canvas": {
"command": "npx",
"args": ["-y", "canvas-readonly-mcp"],
"env": {
"CANVAS_BASE_URL": "https://canvas.yourschool.edu",
"CANVAS_TOKEN": "your-token"
}
}
}
}In stdio mode, snapshots refresh shortly after the client starts the server, and in the background whenever they're older than SNAPSHOT_MAX_AGE_H (default 20h). Data is stored in your user data directory (~/Library/Application Support/canvas-readonly-mcp on macOS, ~/.local/share/canvas-readonly-mcp on Linux, %APPDATA%\canvas-readonly-mcp on Windows).
2c. Server: claude.ai custom connectors (HTTP)
claude.ai connects from the internet, so this needs a server with HTTPS.
mkdir canvas-mcp && cd canvas-mcp
curl -O https://raw.githubusercontent.com/rbrtlol/canvas-readonly-mcp/main/docker-compose.yml
curl -o .env https://raw.githubusercontent.com/rbrtlol/canvas-readonly-mcp/main/.env.example
# Fill in CANVAS_BASE_URL and CANVAS_TOKEN, then:
sed -i "s/^MCP_SECRET=.*/MCP_SECRET=$(openssl rand -hex 32)/" .env
chmod 600 .env
docker compose up -d
curl -s localhost:8787/healthz # {"ok":true}Put a reverse proxy with TLS in front of it: deploy/Caddyfile.example (automatic certificates) or deploy/nginx.conf.example. In claude.ai, add a custom connector with the URL
https://canvas-mcp.example.com/mcp/<MCP_SECRET>and leave the OAuth fields empty. Clients that support headers can use https://…/mcp with Authorization: Bearer <MCP_SECRET> instead.
Without Docker: npx canvas-readonly-mcp --http --env-file .env.
Configuration
All settings are environment variables (or a file passed with --env-file).
Variable | Default | Meaning |
| required | Your Canvas address. |
| required | Personal access token. |
| required for | At least 32 characters; part of the connector URL. |
| Other hostnames of the same Canvas, comma-separated (e.g. | |
| your Canvas profile's | Time zone for displayed times (IANA name, e.g. |
|
| Set |
|
| HTTP listen address ( |
| OS user data dir | Where the database and cache live. |
|
| Turn the snapshot/change-log feature off entirely. |
| Only these course ids (overrides | |
|
| Which courses to snapshot: |
| Course ids to skip. | |
|
| Daily snapshot time in |
|
| Refresh at startup / on demand when older than this. |
|
| Which files' text to hash for change detection: |
|
| How long change events are kept. |
|
| Crawl limits per course. |
|
| Download limits. |
|
| Text extraction limits. |
|
| Extracted-text cache size; least recently used entries are evicted. |
How it works
Finding files. Many Canvas setups hide the files and pages lists from students. The server therefore uses those lists when your role may see them, and otherwise follows links from the front page, modules, syllabus, assignments and announcements. canvas_get_page shows file links inline as (file:<id>). Leftover $CANVAS_OBJECT_REFERENCE$ links from course copies are resolved where possible and otherwise marked as broken.
Reading files. canvas_read_file downloads the file (the token is only sent to Canvas itself, never to the storage host it redirects to) and extracts text in a separate worker thread with memory and time limits. Results are cached by file id and updated_at. Scanned PDFs without a text layer are reported as such (no OCR). Legacy .doc/.ppt aren't supported.
Snapshots and the change log. Once a day (and when stale), the server stores the state of each course on your Canvas dashboard in SQLite (star a course under Courses → All courses to add it, or set SNAPSHOT_COURSES): pages, modules, assignments (with your submission status and grade), announcements and discussions (with a teacher/TA flag), quizzes, calendar events, the syllabus, and file metadata with a per-page content hash for PDFs. Each item is normalized (HTML to text, volatile fields dropped) and hashed. Differences become change events with old → new values, short text diffs, and changed PDF page numbers. The first run is a silent baseline. Announcements with no posted_at (copied from an earlier course round) are flagged "unpublished/old". Items are only marked removed when every source that could link to them was read successfully, so a temporary error never produces false "removed" events.
Roles. Your role in each course comes from your enrollment. As a student, your submissions, grades and missing/late flags are tracked. As a TA or teacher, your own submissions are skipped, only staff discussion topics are tracked, and assignments show how many submissions need grading. Observer accounts work for course content, but the observed student's submissions aren't tracked.
Rate limits. The server watches Canvas's X-Rate-Limit-Remaining, backs off on 403 "Rate Limit Exceeded", 429 and 5xx responses, and limits how many requests run at once.
Security and privacy
Treat the token like a password: it can read everything you can see in Canvas. The server never sends it anywhere except your Canvas.
In HTTP mode the connector URL contains the secret: anyone with it can read your Canvas data (read-only). Wrong secrets get a plain 404. Rotate by changing
MCP_SECRET.Course content (pages, announcements, file text) is written by other people and goes to the model as tool output. See SECURITY.md about prompt injection.
Data stays on your machine/server: a SQLite database and an extracted-text cache. Delete
DATA_DIR(or the Docker volumes) to remove it.No telemetry and no hosted service: see PRIVACY.md for what is read, stored and sent where.
Development
npm install
npm test # unit + integration tests against a mock Canvas
npm run typecheck
npm run build
CANVAS_BASE_URL=… CANVAS_TOKEN=… node dist/cli.js # stdio
node dist/cli.js --http --env-file .env # HTTP
npm run bundle # build + pack the Claude Desktop extension (.mcpb)The extension manifest is mcpb/manifest.json; its version is taken from package.json when packing. Update its tools list when adding or renaming a tool.
See CONTRIBUTING.md.
License
Available Tools
26 toolscanvas_api_getRaw Canvas GETARead-only
Escape hatch: GET any Canvas REST endpoint under /api/v1 (read-only). Example path: /api/v1/courses/123/discussion_topics
Inputs: path (required), params.
canvas_changes_sinceChanges sinceARead-only
What changed in your courses since a time, from stored snapshots (taken daily, and refreshed in the background when stale): added/changed/removed pages, assignments (due dates, grades), announcements, discussions, quizzes, events, files (with which PDF pages changed), with old→new field values and short text diffs. Grouped by course, newest first. Times are UTC. Default since: 26 hours ago. Start here for "what's new / what changed" questions. Unlike canvas_whats_new (Canvas's own activity feed), it also catches edits, removals, moved deadlines and changed files.
Inputs: kinds, since, course_id.
canvas_course_snapshotCourse snapshotARead-only
Everything stored about one course in a single compact call, from the latest snapshot (no Canvas calls): for an overview or questions spanning many items, e.g. all deadlines and grades at once. Use kinds (page, module, assignment, announcement, discussion, quiz, event, syllabus, file) to keep it small, e.g. ["assignment"]. For live data or full detail (rubrics, submission comments, whole page text) use the matching canvas_list_*/canvas_get_* tool.
Inputs: course_id (required), kinds, text_chars.
canvas_get_assignmentGet assignmentBRead-only
Full details of one assignment: the description as text, the rubric (criteria, rating levels, points) if it has one, and, as a student, your submission with score, teacher comments and your rubric assessment per criterion.
Inputs: course_id (required), assignment_id (required).
canvas_get_discussionGet discussionARead-only
Read a discussion topic (or announcement) with all replies as a thread: author, time and text of each entry. Doesn't mark anything as read. Ids come from canvas_list_discussions or canvas_list_announcements.
Inputs: topic_id (required), course_id (required), entry_chars.
canvas_get_gradesGrades & submissionsBRead-only
Your own submissions in a course (as a student) with scores, grades, late/missing flags and teacher comments.
Inputs: course_id (required).
canvas_get_pageGet pageARead-only
Read a course page as text. Use page_url slug from canvas_list_pages/list_modules, or 'front_page'. File links are shown inline as (file:) and listed in file_links — pass the id to canvas_read_file.
Inputs: page_url (required), course_id (required).
canvas_get_quizGet quizARead-only
One classic quiz: instructions as text, time limit, attempts, lock window, settings, and your latest attempt (score, kept score, attempts left). For New Quizzes use canvas_get_assignment with the assignment id.
Inputs: quiz_id (required), course_id (required).
canvas_get_syllabusGet syllabusBRead-only
Course syllabus / course overview text, if the course uses Canvas's syllabus page.
Inputs: course_id (required).
canvas_list_announcementsList announcementsARead-only
Course announcements, newest first. Defaults to all active courses, last 14 days.
Inputs: since, course_ids.
canvas_list_assignmentsList assignmentsARead-only
Live list of one course's assignments, ordered by due date: id, name, due/unlock/lock dates, points, submission types, and your submission status (submitted, grade, late, missing) as a student, or needs_grading counts as a TA/teacher. Use bucket to filter, e.g. "upcoming", "overdue" or "unsubmitted". For deadlines across all courses use canvas_list_planner_items; for one assignment's description, rubric and feedback use canvas_get_assignment.
Inputs: course_id (required), bucket.
canvas_list_calendar_eventsCalendar eventsBRead-only
Canvas calendar events (lectures, seminars, exams if teachers added them) in a date range.
Inputs: end_date, course_ids, start_date.
canvas_list_coursesList coursesARead-only
List your Canvas courses (active by default) with your role in each. Returns course ids needed by other tools.
Inputs: include_completed.
canvas_list_discussionsList discussionsARead-only
Discussion topics in a course, most recently active first, with reply and unread counts. Pass an id to canvas_get_discussion.
Inputs: course_id (required).
canvas_list_filesList filesARead-only
The course's Files area, newest first, with optional name search: every uploaded file, including ones nothing links to. Usually only TAs/teachers may see it; for students it falls back to the files linked from the course. To find course material (slides, lab instructions) as a student, use canvas_list_linked_files instead, which also says where each file is linked from.
Inputs: course_id (required), search.
canvas_list_linked_filesList linked filesARead-only
Find the course's files (slides, lab instructions, exercise sheets) by scanning the front page, pages reachable from it and from modules, the syllabus, assignment descriptions, announcements and module items. Works even when the Files tab is hidden, so it's the default way to find course material; canvas_list_files is for the full Files area (mostly TAs/teachers). Returns file_id, display_name, size, linked_from — pass file_id to canvas_read_file.
Inputs: course_id (required), max_pages.
canvas_list_modulesList modulesBRead-only
Course modules with their items (pages, files, assignments, links) — often the week-by-week structure of a course.
Inputs: course_id (required).
canvas_list_pagesList pagesBRead-only
Wiki pages in a course (title + url slug for canvas_get_page).
Inputs: course_id (required), search.
canvas_list_planner_itemsPlanner / to-doARead-only
Everything with a date in a window across courses: assignments, quizzes, discussions, calendar events, with submission status. Default: today through 14 days ahead.
Inputs: end_date, course_id, start_date.
canvas_list_quizzesList quizzesARead-only
Quizzes in a course: classic quizzes with time limit, attempts, question count and lock window, plus New Quizzes (which Canvas exposes as assignments, with due dates and your submission status).
Inputs: course_id (required).
canvas_read_fileRead file contentsARead-only
Download a course file server-side and return its text: PDF (per page), PPTX (per slide, with speaker notes), DOCX (per section), plain text/code, ZIP (listing). Give file_id, or url = any Canvas file link (e.g. https://canvas.school.edu/courses/1/files/2?verifier=…&wrap=1). Long documents: use pages (e.g. "1-5", "3,8-10") — the output says when it was truncated and which range to request next.
Inputs: course_id (required), url, pages, file_id, +1 more.
canvas_run_snapshotRun snapshot nowARead-only
Take a snapshot now (read-only GETs to Canvas) for one or all active courses and return the change events it produced. Waits up to wait_s seconds; if it takes longer it continues in the background — check canvas_snapshot_status / canvas_changes_since later.
Inputs: wait_s, course_id.
canvas_searchSearch course contentARead-only
Full-text search across your snapshot courses (no Canvas calls): pages, assignments, announcements, discussions, quizzes, events, modules, the syllabus, file names, and the text of linked files (PDF pages, slides, document sections). Words match as prefixes and all must appear ("dyn prog" finds "dynamic programming"); put a "phrase in quotes". If nothing matches every word, results matching any word are returned. File hits give the page/slide to pass to canvas_read_file.
Inputs: query (required), kinds, limit, course_id.
canvas_snapshot_statusSnapshot statusARead-only
Health of the snapshot job: courses and your role in each, last run per course, duration, item counts, errors (e.g. 403s), next run, DB size.
Inputs: no named parameters.
canvas_whats_newWhat's newARead-only
Canvas's own activity stream, live: announcements, assignment and discussion activity, grades and inbox messages across active courses since a timestamp. Prefer canvas_changes_since for what changed in courses (it also sees edits, removals and file changes); use this for inbox messages, or for courses the snapshots don't cover.
Inputs: since.
canvas_whoamiWho am IARead-only
Return the Canvas profile the token belongs to. Use to verify the connection works.
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 26 tools
Descriptions do heavy lifting to separate the overlapping retrieval paths: list_files vs list_linked_files, changes_since vs whats_new vs course_snapshot, and the live list_*/get_* tools vs snapshot tools are all explicitly contrasted. Remaining friction is inherent to that snapshot-vs-live duality and to New Quizzes being read via get_assignment rather than get_quiz, which an agent can still stumble on.
Every name is snake_case with a uniform canvas_ prefix, so the set reads as one family. Most are verb_noun (list_pages, get_page, read_file), but a handful break the pattern into noun-first or bare forms (whoami, whats_new, changes_since, course_snapshot, snapshot_status), which is a minor deviation rather than a real inconsistency.
At 26 tools this sits just past the heavy threshold, and Canvas is broad enough that most tools map to a real resource. However, several are redundant paths to the same data (two file listers, two 'what's new' tools, a bulk snapshot tool plus the individual listers), so the surface could be trimmed without losing capability.
For a read-only server the coverage is strong across the student workflow: courses, modules, pages, files with text extraction, assignments, quizzes, discussions, announcements, calendar, grades, planner and full-text search. Gaps exist around people/roster, groups, and reading inbox messages (only partly reachable via whats_new), but canvas_api_get is a documented escape hatch for those cases.
Maintenance
Related MCP Connectors
Manage your Canvas coursework with quick access to courses, assignments, and grades. Track upcomin…
Public read-only MCP access to digital learning concepts, semantic relationships, and citations.
Study from your own classes: synced Canvas coursework, notes, flashcards and study progress.
Hosted MCP for LearnOS: search courses, lesson citations, flashcards and notes from any MCP client.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables MCP-compatible clients to read courses, assignments, announcements, files, and grades from a Canvas LMS instance.10-
- AlicenseNot gradedqualityAmaintenanceEnables interaction with Canvas LMS through its API for managing courses, assignments, submissions, enrollments, grades, discussions, files, and account administration via MCP clients.21 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables students, instructors, and account administrators to interact with Canvas LMS through its API to manage courses, assignments, enrollments, grades, users, reports, modules, discussions, and related content via natural-language MCP clients.21 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables interaction with Canvas LMS through its API, supporting course, assignment, enrollment, grade, discussion, file, and account administration workflows for students, instructors, and administrators via MCP clients.21 npmMIT