Canvas API MCP

io.github.JohannsenLumPublished by GitHub account JohannsenLumv1.1.0Updated Nov 3, 2026

MCP server exposing the Canvas LMS REST API (1,116 endpoints) for AI assistants

Overview

AI-generated overview

Connects an AI assistant to a Canvas LMS account so it can read courses, deadlines, grades, files and discussions, and submit work or post replies.

What you can do
  • Check identity, courses, calendar feed and what is due, soonest first
  • Read grades, assignments, rubrics, submissions and feedback
  • Browse course modules, syllabus, announcements, wiki pages and discussions
  • List course files and extract text from PDF, DOCX, PPTX and plain text
  • Submit assignments and post discussion replies
  • Search the Canvas API catalog and call any endpoint the instance exposes
When to use it
Useful for students who want an assistant to answer questions about their own Canvas account — deadlines, grades, course content and feedback — without copying anything across, and who occasionally need to submit work or reply to a discussion from the chat.
Requirements
Runs locally as a Python package via uvx, so Python 3.11+ is needed. Requires CANVAS_BASE_URL for the institution's Canvas instance and a Canvas personal access token in CANVAS_TOKEN; the institution must allow students to create tokens. Optional CANVAS_MAX_PAGES caps pagination. Network access to the Canvas instance is required.
Before you install
CANVAS_TOKEN is password-equivalent: it can read grades and submit work as the user, so it should be given an expiry and never committed. Three tools write to Canvas: submit_assignment, post_discussion_reply, and canvas_request with a non-GET method. Submitting AI-generated work can breach academic integrity rules. Tokens expire, and an expired one makes every tool fail with 401. Course materials fetched should not be redistributed.

Installation

In SourceWeft

  1. Open Canvas API MCP in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

canvas-api-mcp

Never miss an assignment deadline again.

Ask your AI what's due and it reads the answer straight from Canvas:
real deadlines, real submission status, no copying anything across.

An MCP server for Canvas LMS. 16 curated tools for everyday student work, plus a gateway that reaches every endpoint your Canvas instance exposes.

[Terminal. Question one: 'what mods am I taking this sem?' Answered instantly by the curated my_courses tool (CS3230, CS2040S, MA2001, GEA1000). Question two: 'what groups am I in?' No curated tool covers it, so search_canvas_api finds GET /v1/users/self/groups among 1,116 Canvas endpoints and canvas_request executes it. 18 tools · 1,116 endpoints reachable · 149 tests · MIT.]

📖 Documentation: mcp.johannsenlum.com/canvas-lms · install guide · tool reference · skills · compliance

[PyPI] [Python 3.11+] [License: MIT] [MCP Registry] [GitHub stars]

Personal-use software. Canvas's API Policy requires OAuth for applications used by multiple people, and Canvas OAuth cannot be implemented safely by locally installed software (no PKCE, and client_secret cannot be shipped in a package). Use this with your own token on your own account. See Compliance.

What you can ask it

Real prompts, and which tool answers them.

You: What's due this week? Claude: (calls whats_due): You have 3 things due: Problem Set 4 (Thu, CS3230), a discussion reply (Fri, IS4302), and the Milestone 2 report (Sun, EE2211).

You: How am I doing in my databases course, and what's on the syllabus for week 6? Claude: (calls my_grades, then get_syllabus, then course_content for the week 6 module): You're at 87% overall. Week 6 covers normalization and has a reading plus a lab file due Friday.

You: Summarize the PDF lecture notes for lecture 8 and pull up my submission for the essay so I can see the feedback. Claude: (calls list_files + read_file for the PDF, then my_submission for the essay): ...

You: Reply to the "Project teams" discussion and say I'm free after 3pm for the group meeting. Claude: (calls post_discussion_reply ✏️): Posted to the thread.

You: Has Canvas ever given me quiz statistics broken down by question, across the whole semester? Claude: (calls search_canvas_api to find the right endpoint, then canvas_request to call it): ...

The last example is the point of the gateway tools: if an endpoint exists on your Canvas instance, search_canvas_api can find it and canvas_request can call it, even though only 16 tools are hand-curated.

Install

Prerequisites

  • Python 3.11+

  • A Canvas personal access token. Your institution must allow students to create them: check Canvas → Account → Settings → Approved Integrations for a "+ New access token" button. Full walkthrough with screenshots: mcp.johannsenlum.com/canvas-lms/install.

    Note that the token expires. Since Instructure's October 2025 security update, accounts holding only student roles must set an expiry no more than 120 days out, and institutions often cap it lower (NUS allows 90). Write the date down: an expired token makes every tool return 401 at once, which looks like a broken install rather than a credential that simply ran out.

Running the server

canvas-api-mcp is published on PyPI. Run it with:

bash
uvx canvas-api-mcp

Install from source (contributors / unreleased main). Not part of the normal install path above, only needed if you want the latest unreleased code instead of the published PyPI release:

bash
uvx --from git+https://github.com/JohannsenLum/canvas-api-mcp canvas-api-mcp

Or run from a local clone:

bash
git clone https://github.com/JohannsenLum/canvas-api-mcpcd canvas-api-mcpuv sync

Quick install (one-click)

One-click deeplinks exist for Cursor, VS Code, and LM Studio only. No other client has a documented install-link format. These prefill the config below but still need CANVAS_BASE_URL and CANVAS_TOKEN filled in afterward.

[Add to Cursor] [Add to VS Code] [Add to LM Studio]

All clients (manual config)

Your token stays on your machine, in your own config file. It is never transmitted anywhere except directly to your Canvas instance.

ClientDeeplink?
Claude Codeno
Claude Desktopno
Cursoryes, above
VS Codeyes, above
LM Studioyes, above
Zedno
Windsurfno (Windsurf only resolves servers in its own registry)

Claude Code: ~/.claude.json
jsonc
{  "mcpServers": {    "canvas": {      "command": "uvx",      "args": ["canvas-api-mcp"],      "env": {        "CANVAS_BASE_URL": "https://canvas.yourschool.edu",        "CANVAS_TOKEN": "your-token-here"      }    }  }}

Claude Desktop: claude_desktop_config.json

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

No one-click install exists for Claude Desktop (it installs .mcpb bundles, not deeplinks). Copy this JSON in via Settings → Developer → Edit Config:

jsonc
{  "mcpServers": {    "canvas": {      "command": "uvx",      "args": ["canvas-api-mcp"],      "env": {        "CANVAS_BASE_URL": "https://canvas.yourschool.edu",        "CANVAS_TOKEN": "your-token-here"      }    }  }}

Cursor: ~/.cursor/mcp.json

Fallback for the button above, or if you'd rather paste it directly:

jsonc
{  "mcpServers": {    "canvas": {      "command": "uvx",      "args": ["canvas-api-mcp"],      "env": {        "CANVAS_BASE_URL": "https://canvas.yourschool.edu",        "CANVAS_TOKEN": "your-token-here"      }    }  }}

VS Code: .vscode/mcp.json

Fallback for the button above, or if you'd rather paste it directly. Note VS Code uses a servers key, not mcpServers:

jsonc
{  "servers": {    "canvas": {      "type": "stdio",      "command": "uvx",      "args": ["canvas-api-mcp"],      "env": {        "CANVAS_BASE_URL": "https://canvas.yourschool.edu",        "CANVAS_TOKEN": "your-token-here"      }    }  }}

LM Studio: mcp.json (Program → Install → Edit mcp.json)

Fallback for the button above, or if you'd rather paste it directly:

jsonc
{  "mcpServers": {    "canvas": {      "command": "uvx",      "args": ["canvas-api-mcp"],      "env": {        "CANVAS_BASE_URL": "https://canvas.yourschool.edu",        "CANVAS_TOKEN": "your-token-here"      }    }  }}

Zed: settings.json

No deeplink exists for Zed. Add this under context_servers in your Zed settings:

jsonc
{  "context_servers": {    "canvas": {      "source": "custom",      "command": "uvx",      "args": ["canvas-api-mcp"],      "env": {        "CANVAS_BASE_URL": "https://canvas.yourschool.edu",        "CANVAS_TOKEN": "your-token-here"      }    }  }}

Windsurf: ~/.codeium/windsurf/mcp_config.json

No deeplink exists for Windsurf. It only resolves servers from its own registry, so this has to be pasted in manually via Windsurf Settings → MCP Servers → Edit raw config:

jsonc
{  "mcpServers": {    "canvas": {      "command": "uvx",      "args": ["canvas-api-mcp"],      "env": {        "CANVAS_BASE_URL": "https://canvas.yourschool.edu",        "CANVAS_TOKEN": "your-token-here"      }    }  }}

Tools

ToolWhat it does
whoamiIdentity and your role in each course
get_calendar_feed_urlYour private calendar .ics link (only when you ask for it)
my_coursesActive courses with code, term, role
whats_dueEverything due, soonest first
my_gradesCurrent score per course
list_assignmentsA course's assignments and submission state
get_assignmentOne assignment in full, with rubric
my_submissionYour submission, score, and feedback
submit_assignment ✏️Submit work
course_announcementsRecent announcements
course_contentModules and their contents
list_filesFiles in a course
read_fileExtract text from PDF/DOCX/PPTX/text
get_pageA Canvas wiki page by slug
get_syllabusA course's syllabus
read_discussionTopics, or one topic's replies
post_discussion_reply ✏️Post to a discussion
search_canvas_apiFind any endpoint by keyword (gateway)
canvas_request ✏️Execute any endpoint (gateway)

✏️ writes to Canvas. That's 3 write tools total: submit_assignment, post_discussion_reply, and canvas_request when called with a non-GET method (GET calls through canvas_request are read-only).

search_canvas_api + canvas_request reach all ~1,116 endpoints your instance exposes. What they may do is decided by Canvas from your token's permissions: a teacher token unlocks educator endpoints with no change to this server.

Prompts

week_ahead, study_pack, grade_check.

Resources

canvas://me, canvas://courses, canvas://api/catalog.

Skills

If your client supports the skills convention:

bash
npx skills add JohannsenLum/canvas-api-mcp

Other institutions

Works with any Canvas instance: set CANVAS_BASE_URL. The catalog of ~1,116 endpoints ships inside the package at canvas_api_mcp/data/catalog.json. To match your deployment's exact feature set, regenerate it:

bash
python scripts/build_catalog.py https://canvas.yourschool.edu -o data/catalog.json

Compliance

  • Academic integrity. submit_assignment can submit anything, including AI-generated work. Submitting work that is not your own breaches the academic integrity rules of essentially every institution, and Canvas's API Policy explicitly prohibits use that violates them. That is on you.
  • Rate limiting. The client throttles against Canvas's published quota. Do not remove it: overloading the API is prohibited.
  • Course material. read_file fetches materials for your own study. Do not redistribute them.
  • Your token is password-equivalent. It can read your grades and submit work as you. Set an expiry. Never commit it.
  • Personal-use scope. Phase 1 targets a single student using their own token. There are no curated educator tools; Canvas's OAuth flow has no PKCE, so this locally-installed server cannot implement the multi-user OAuth that Canvas's API Policy requires for anything broader. Do not repackage this as a multi-tenant service.

Development

bash
uv syncuv run pytest -v
# Live tests against your real account (read-only)CANVAS_LIVE_TESTS=1 uv run pytest tests/test_live.py -v

Environment variables: CANVAS_BASE_URL, CANVAS_TOKEN, optional CANVAS_MAX_PAGES (default 10) and CANVAS_TIMEOUT (seconds, default 30). See env.template.

Contributing

Issues and pull requests are welcome: see CONTRIBUTING.md for setup, the architectural rules worth knowing before you change anything, and the bar for adding a new curated tool.

Found a security problem? Do not open a public issue. See SECURITY.md for private reporting, particularly important here, since this project handles password-equivalent Canvas tokens.

Changes are recorded in CHANGELOG.md.

Licence

MIT © 2026 Johannsen Lum.

Use it, change it, redistribute it, build something commercial on it: the only condition is that you keep the copyright notice and licence text. It comes with no warranty of any kind.

Contributions are accepted under the same licence.

Source: README.md at commit bd7ec03

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.1.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts