canvas-student-mcp
Provides read-only access to Canvas LMS courses, assignments, grades, announcements, modules, pages, files, discussions, quizzes, to-dos, calendar, inbox, and more, with session-cookie or token authentication.
Click on "Install 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-student-mcpwhat are my upcoming assignments?"
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-student-mcp
The Canvas LMS MCP server that works even when your school disables API tokens.
Gives Claude (or any MCP client) live, read-only access to your Canvas account: courses, syllabus, assignments with submission status, grades, announcements, modules, pages, files, discussions, quizzes, to-dos, and calendar. Pair it with a Notion connector and archive an entire course with one prompt.
Why another Canvas MCP?
Several good Canvas MCP servers already exist — vishalsachdev/canvas-mcp, DMontgomery40/mcp-canvas-lms, mtgibbs/canvas-lms-mcp, and others. All of them require a personal API token.
Here's the problem: many universities disable self-service token generation for students. Open Account → Settings and there's simply no + New Access Token button. At those schools, every token-based server is a dead end.
This server solves that with session-cookie authentication: log into Canvas in your browser, copy the session cookie once, and you're connected. The Canvas web UI talks to the same /api/v1 REST API with that cookie, so no admin policy can block it without breaking Canvas itself.
What that requires under the hood (and what the token-based servers don't do):
XSSI guard stripping — cookie-authenticated Canvas responses are prefixed with
while(1);, which breaks naive JSON parsingLogin-redirect detection — expired sessions redirect to the login page instead of returning 401; the server catches redirects and non-JSON bodies and tells you exactly how to refresh, instead of failing cryptically
Credentialed file downloads — token sessions get a
verifier=param that makes file URLs self-authenticating; cookie sessions don't, so downloads must carry the session cookie (Canvas answers500otherwise). Redirects are followed manually so credentials are never forwarded to a CDNExpiry-aware errors — every failure mode explains the fix in the error message itself
Design principles that differentiate it beyond auth:
Read-only by design. Every tool is a GET. The server physically cannot submit assignments, post discussions, or modify anything — safe to hand to an autonomous agent.
Context-efficient responses. Canvas API payloads are enormous; every tool trims to the fields an LLM actually needs, converts HTML to clean text (preserving link URLs), and caps pagination with explicit truncation notices.
Small and auditable. Strict TypeScript, three runtime dependencies (the MCP SDK, zod, and
unpdffor PDF text). You can read the whole thing before trusting it with your school account.
Token auth is still supported if your school allows it — the cookie is the fallback, not the only path.
Related MCP server: canvas-parent-mcp
Tools (29)
Tool | What it does |
| Verify credentials / who am I |
| Courses with current grade (active / completed / all) |
| Course details + full syllabus as text |
| Assignments by due date w/ your submission status; bucket filters (upcoming, overdue, …) |
| Full description, rubric, your submission + score |
| All-course grade overview, or per-assignment breakdown for one course |
| Announcements across active courses, or one course / date range |
| Course content outline with items |
| Course wiki pages, full text |
| Course files + temporary download URLs |
| Discussion topics and full threads |
| Quizzes with due dates, time limits, attempts |
| Your to-do list and upcoming deadlines |
| Events or assignment deadlines in a date range |
| Read Canvas inbox threads — without marking them read |
| Grader comments and rubric assessments on your submissions |
| Grade by assignment group + what-if calculator: "what do I need on the final for an A?" |
| Planner feed with new-activity flags and submission state |
| Extract text from course files — PDF, Word, PowerPoint, Excel, HTML, plain text |
| Syllabus as text, whether it's typed into Canvas or posted as an attached PDF/Word file |
| Your group memberships |
| Module completion state and what each item still requires |
| Peer reviews assigned to you |
| One-shot markdown export of an entire course — built for Notion archiving |
| Diagnose the connection: which credential, stored where, still valid? |
Three of these are worth calling out.
canvas_read_file turns course materials into readable text, which is what makes "quiz me on this week's slides" or "what's the late-work policy" actually work. PDFs go through unpdf; Office formats are handled in-repo — .docx, .pptx, and .xlsx are ZIP containers of XML, so a small ZIP reader over Node's built-in zlib covers all three with no dependency. canvas_read_syllabus builds on it: it detects when a syllabus is only a file link and reads the attachment instead, which is the common case (2 of the 3 courses tested). canvas_grade_breakdown implements both of Canvas's grading models (weighted-by-group and total-points), cross-checks its arithmetic against the score Canvas itself reports, and tells you when drop rules or unposted assignment groups make a projection unreliable — instead of quietly returning a confident wrong number. canvas_get_conversation passes auto_mark_as_read=false, so an agent reading your inbox doesn't silently mark your messages read; that behavior is verified against a live unread thread, not just assumed.
See ROADMAP.md for what's planned next and why writes are deliberately out of scope.
Quick start
No install needed — npx fetches it on demand:
npx canvas-student-mcpOr from source:
git clone https://github.com/xmike04/canvas-student-mcp.git
cd canvas-student-mcp
npm install && npm run buildGet credentials
Option A — API token (if your school allows it): Canvas → Account → Settings → Approved Integrations → + New Access Token.
Option B — session cookie (for locked-down schools):
Log into your school's Canvas in any browser
DevTools (
Cmd/Ctrl+Shift+I) → Network tab → refreshClick any request to your Canvas domain → Request Headers → copy the full
cookie:value (or just thecanvas_session=...pair — that one cookie is sufficient)
Either credential grants read access to your Canvas account. Treat it like a password.
Store the credential (macOS: use the Keychain)
MCP client configs are plaintext JSON. On macOS you can keep the credential out of them entirely:
security add-generic-password -s canvas-student-mcp -a cookie -w 'canvas_session=PASTE_VALUE_HERE' -UUse -a token instead of -a cookie for an API token. The server checks environment variables first, then the Keychain, so this is opt-in and nothing breaks if you skip it. CANVAS_NO_KEYCHAIN=1 disables the lookup.
Register with Claude
Claude Code — with the credential in the Keychain, the config holds no secret at all:
claude mcp add canvas --scope user \
--env CANVAS_BASE_URL=https://yourschool.instructure.com \
-- npx -y canvas-student-mcpPassing the credential inline instead of using the Keychain:
claude mcp add canvas --scope user \
--env 'CANVAS_COOKIE=canvas_session=PASTE_VALUE_HERE' \
--env CANVAS_BASE_URL=https://yourschool.instructure.com \
-- npx -y canvas-student-mcpClaude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"canvas": {
"command": "node",
"args": ["/absolute/path/to/canvas-student-mcp/dist/index.js"],
"env": {
"CANVAS_COOKIE": "canvas_session=PASTE_VALUE_HERE",
"CANVAS_BASE_URL": "https://yourschool.instructure.com"
}
}
}
}Use CANVAS_API_TOKEN instead of CANVAS_COOKIE for token auth (token wins if both are set). Verify with: "check my Canvas profile."
When the cookie expires (your browser session ends), every tool tells you plainly — re-copy and update the config. With "stay signed in" checked, sessions typically last weeks.
Agent skills
Three packaged workflows ship in skills/. Copy any of them into ~/.claude/skills/ (or your project's .claude/skills/) and Claude will use them automatically when the request fits:
Skill | What it does |
| Daily briefing: what's due, new announcements, unread messages, new grades |
| Reads the actual assignments and builds a day-by-day plan for the week |
| Grade standing plus what-if answers, with the caveats carried through |
cp -R skills/canvas-morning-check ~/.claude/skills/Things to ask once connected
"What's due in the next two weeks across all my classes?"
"What's my current grade in each course, and which assignments am I missing?"
"Summarize this week's announcements from all my courses."
"Export my BIOL 1710 course and archive it into my Notion School folder." (with a Notion connector)
"Read the Week 3 page in my history course and quiz me on it."
Architecture notes
stdio transport, stateless — one process per client session, no ports, no telemetry, no storage. Data flows Canvas → this process → your MCP client, nowhere else.
Auto-pagination follows Canvas
Link: rel="next"headers, capped at 5 pages × 100 items with explicit truncation notices so agent context stays bounded.HTML → text conversion for syllabi, descriptions, announcements, and pages — structural tags become line breaks/bullets, links become
text (url).Zod input schemas on every tool; MCP annotations (
readOnlyHint) declared throughout.
Development
npm run build # strict TypeScript compile
npm test # smoke test: MCP handshake, all 30 tools register, error pathsThe smoke test runs entirely offline — CI needs no Canvas account, and it sets CANVAS_NO_KEYCHAIN=1 so a real stored credential can't leak into a test run.
Releasing
Publishing runs from CI (.github/workflows/release.yml), so no one publishes from a laptop:
npm version minor && git push --follow-tagsPushing the tag triggers a build, the full test suite, a package-contents inspection, and a guard that the tag matches package.json — then publishes with provenance, which cryptographically links the published tarball to the commit and workflow that built it. Running the workflow manually from the Actions tab does everything except publish, as a dry run.
Security model
Read-only: every Canvas call is a GET; no tool can write to Canvas. Even reading your inbox leaves messages unread.
Credentials live in your MCP client's env config or the macOS Keychain — never on disk in this repo, never transmitted anywhere but your school's Canvas domain. File downloads follow redirects manually so credentials are never forwarded to a CDN.
Rotate at will: log out of Canvas (or revoke the token) and the credential is dead everywhere.
canvas_auth_statustells you which credential is in use, where it's stored, and whether it still works.
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceA local MCP server for Canvas LMS that enables querying courses, assignments, grades, modules, and more from any MCP-compatible AI client.59MIT
- AlicenseAqualityAmaintenanceMCP server for Canvas LMS enabling parent observers and students to access courses, assignments, grades, and more. Supports multiple authentication methods including token, OAuth, and a convenient fetchproxy fallback.18662MIT
- Alicense-qualityDmaintenanceMCP server that provides tools to read UBC Canvas LMS data, including courses, assignments, announcements, submissions, and calendar, for use with Claude Desktop, Claude Code, or n8n AI agents.59MIT
- Alicense-qualityDmaintenanceMCP server for Canvas LMS with automatic OAuth authentication. Enables interaction with courses, assignments, grades, modules, discussions, quizzes, files, calendar, messaging, and more without manual API token management.330MIT
Related MCP Connectors
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/xmike04/canvas-student-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server