Canvas Assignment Assistant
Provides tools for interacting with Canvas LMS courses and assignments, enabling retrieval of course lists, searching assignments by query and date range, and fetching detailed assignment information in multiple formats.
Provides tools for interacting with Canvas LMS courses and assignments, enabling retrieval of course lists, searching assignments by query and date range, and fetching detailed assignment information in multiple formats.
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 Assignment Assistant show me assignments 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 Assignment Assistant MCP Server
Originally by mbcrosiersamuel.
Overview
This Model Context Protocol (MCP) server lets you interact with Canvas/Instructure courses and assignments, without leaving your LLM (e.g. Claude Desktop).
It allows you to retrieve, search, and summarize course and assignment information programmatically, for example to check due dates for upcoming assignments:

Features
Tools
List Courses
Retrieve a list of courses
Filter by course state (active, completed, or all)
Search Assignments
Search across courses for assignments
Filter by:
Search query
Due date range
Specific course
Include/exclude completed courses
Get Assignment Details
Fetch detailed information about a specific assignment
Multiple output formats (full HTML, plain text, markdown)
Resources
Assignment Content: Retrieve full assignment details using a standardized URI format
Prerequisites
Node.js
Canvas LMS account
Canvas API Token
Canvas Domain
Environment Setup
Set the following environment variables:
CANVAS_API_TOKEN: Your Canvas API access token (see instructions below)CANVAS_DOMAIN: Your Canvas institution's domain (e.g.,canvas.youruniversity.edu)
How to Get Your Canvas API Token
Log into Canvas
Go to Account > Settings
Scroll to the "Approved Integrations" section
Click "New Access Token"
Copy the generated token
For more details, see these instructions from Canvas.
Security Note
Keep your CANVAS_API_TOKEN confidential. Do not commit it to version control.
Installation
Clone the repository and install dependencies
Clone the repository
git clone https://github.com/mbcrosier/canvas-mcp.git
cd canvas-mcpInstall dependencies. If this throws an error, make sure you have node installed.
npm installConnect to the MCP server
Copy the below json with the appropriate {{PATH}} values:
{ "mcpServers": { "canvas": { "command": "node", "args": ["/absolute/path/to/canvas-mcp/src/index.ts"], // cd into the src repo, run `pwd` and enter the output here "env": { "CANVAS_API_TOKEN": "your_api_token_here", "CANVAS_DOMAIN": "myschool.instructure.com" } } } }For Claude, save this as
claude_desktop_config.jsonin your Claude Desktop configuration directory at:~/Library/Application Support/Claude/claude_desktop_config.jsonFor Cursor, save this as
mcp.jsonin your Cursor configuration directory at:~/.cursor/mcp.jsonRestart Claude Desktop / Cursor
Open Claude Desktop and you should now see Canvas as an available integration.
Or restart Cursor.
MCP Tools
list_courses: Shows all active courses by default. Use flags to show completed or all coursessearch_assignments: Searches assignment titles and descriptionsget_assignment: Retrieves full assignment details
Troubleshooting
Common Issues
Token Invalid:
Regenerate your Canvas API token
Ensure token has appropriate permissions
Domain Incorrect:
Double-check your Canvas institution domain
Verify there are no typos
Disclaimer
This is an unofficial Canvas MCP, and is not affiliated with Canvas or Instructure. I'm also not a professional software engineer, and this project was vibe-coded using Claude, so please use it at your own risk :)
Thanks!
Thanks to Luke Harries for inspiration and for part of the text of this Readme.
Thanks to the Anthropic team for great instructions on how to use LLMs to create MCPs!
Available Tools
4 toolscanvas_list_active_coursesA
Lists only your active/current courses using the dashboard API. Much faster than list_courses.
Inputs: no named parameters.
get_assignmentA
Retrieves detailed information about a specific assignment, including its description, submission requirements, and embedded links.
Inputs: courseId (required), assignmentId (required), formatType.
list_coursesB
Lists all courses you are enrolled in, with options to filter by active, completed, or all courses.
Inputs: state.
search_assignmentsC
Searches for assignments across all courses based on title, description, due dates, and course filters.
Inputs: query, dueBefore, dueAfter, includeCompleted, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: canvas_list_active_courses and list_courses both list courses but differ in scope (active-only vs. all with filters), get_assignment retrieves specific assignment details, and search_assignments searches across assignments. No overlap or ambiguity exists between these functions.
The naming is mostly consistent with a verb_noun pattern (list_courses, get_assignment, search_assignments), but canvas_list_active_courses deviates by including a domain prefix and using snake_case inconsistently. This minor inconsistency slightly reduces predictability.
With 4 tools, the server is well-scoped for its purpose of assisting with Canvas assignments. Each tool earns its place by covering core operations: listing courses, retrieving assignments, and searching assignments, without being overly sparse or bloated.
The toolset covers key read operations for courses and assignments, but there are notable gaps in write operations (e.g., creating or submitting assignments) and lifecycle management (e.g., updating or deleting assignments). Agents can work around this for query tasks but may fail for broader assignment workflows.
Related MCP Connectors
Manage your Canvas coursework with quick access to courses, assignments, and grades. Track upcomin…
Read-only access to Epivo's live course catalogue for AI agents.
Create, search, edit, and export designs and assets from Canva.
Connect AI assistants to Edusign attendance, courses, learners, documents, and API docs via OAuth.