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 Assistantshow 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.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It adds useful context: it specifies the API used ('dashboard API') and a performance trait ('Much faster than list_courses'). However, it doesn't disclose other behavioral aspects such as authentication requirements, rate limits, pagination, or what 'active/current' means precisely (e.g., based on enrollment status or term dates). The description doesn't contradict any annotations, but it could be more comprehensive given the lack of annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is very concise and well-structured: two sentences that efficiently convey the tool's purpose and key advantage. Every sentence adds value—the first defines what it does, and the second provides a performance comparison. It's front-loaded with the core functionality, with no wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (simple listing with no parameters) and the lack of annotations and output schema, the description is somewhat complete but has gaps. It covers the purpose and a performance hint but doesn't explain what 'active/current' entails, the return format, or any error conditions. For a tool with no structured behavioral data, more context on these aspects would improve completeness.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 0 parameters with 100% coverage, so the schema fully documents that no inputs are required. The description doesn't need to add parameter details, but it implicitly confirms this by not mentioning any parameters. Since there are no parameters, the baseline is 4, as the description doesn't detract from or conflict with the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Lists only your active/current courses using the dashboard API.' It specifies the verb ('Lists'), resource ('active/current courses'), and method ('dashboard API'), which is clear and specific. However, it doesn't explicitly distinguish this tool from its sibling 'list_courses' beyond mentioning it's 'much faster'—it could more directly contrast their scopes (active vs. all courses).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides good usage guidance by stating when to use this tool: 'Lists only your active/current courses' and comparing it to an alternative: 'Much faster than list_courses.' This implies that 'list_courses' is a sibling tool for broader listing, but it doesn't explicitly state when not to use this tool (e.g., for archived or all courses) or name 'list_courses' as the direct alternative for non-active courses.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_assignmentA
Retrieves detailed information about a specific assignment, including its description, submission requirements, and embedded links.
| Name | Required | Description | Default |
|---|---|---|---|
| courseId | Yes | Course ID | |
| assignmentId | Yes | Assignment ID | |
| formatType | No | Format type: full (HTML), plain (text only), or markdown (formatted) | markdown |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It discloses that the tool retrieves information (implying read-only behavior) and specifies the types of details returned. However, it doesn't mention potential errors (e.g., invalid IDs), authentication needs, rate limits, or response format, leaving gaps in behavioral context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core purpose and lists key details without unnecessary words. Every part earns its place by specifying what is retrieved, making it highly concise and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations and no output schema, the description provides basic context but is incomplete. It covers the purpose and output content but lacks details on error handling, authentication, or return structure. For a read tool with full schema coverage, this is minimally adequate but has clear gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description doesn't add any meaning beyond what the schema provides (e.g., it doesn't explain how 'formatType' affects the output or provide examples). Baseline 3 is appropriate as the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb ('retrieves') and resource ('specific assignment') with specific details about what information is included ('description, submission requirements, and embedded links'). It distinguishes from the sibling 'search_assignments' by focusing on a single assignment rather than searching multiple, though it doesn't explicitly mention this distinction.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for retrieving detailed information about a specific assignment, but it doesn't explicitly state when to use this tool versus alternatives like 'search_assignments' or provide any exclusions. The context is clear but lacks explicit guidance on tool selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_coursesB
Lists all courses you are enrolled in, with options to filter by active, completed, or all courses.
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Filter courses by state: active, completed, or all | active |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions filtering options but fails to cover critical aspects such as whether this is a read-only operation, potential rate limits, authentication requirements, or the format of returned data (e.g., pagination). This leaves significant gaps in understanding the tool's behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core purpose ('Lists all courses you are enrolled in') and adds necessary detail about filtering. It avoids redundancy and wastes no words, though it could be slightly more structured for clarity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's low complexity (1 parameter, no output schema, no annotations), the description is adequate but incomplete. It covers the basic purpose and parameter context but lacks details on behavioral traits and output, which are needed for full agent understanding despite the simple schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the input schema already fully documents the single parameter 'state' with its enum values and default. The description adds minimal value by mentioning the filtering options, but doesn't provide additional semantics beyond what the schema specifies, meeting the baseline for high coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb ('Lists') and resource ('courses you are enrolled in'), making the purpose understandable. However, it doesn't explicitly differentiate from sibling tools like 'canvas_list_active_courses' or 'search_assignments', which prevents a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage through the phrase 'with options to filter by active, completed, or all courses,' suggesting when to use different parameter values. However, it lacks explicit guidance on when to choose this tool over alternatives like 'canvas_list_active_courses' or 'get_assignment,' leaving room for ambiguity.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_assignmentsC
Searches for assignments across all courses based on title, description, due dates, and course filters.
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Search term to find in assignment titles or descriptions | |
| dueBefore | No | Only include assignments due before this date (YYYY-MM-DD) | |
| dueAfter | No | Only include assignments due after this date (YYYY-MM-DD) | |
| includeCompleted | No | Include assignments from completed courses | |
| courseId | No | Optional: Limit search to specific course ID |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the search action but doesn't describe key behaviors: whether results are paginated, sorted, or limited; if it requires authentication; potential rate limits; or what the output format looks like (e.g., list of assignments with details). For a search tool with zero annotation coverage, this leaves significant gaps in understanding how it operates.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core purpose ('Searches for assignments across all courses') and lists key filters. There's no wasted text, and it's appropriately sized for the tool's complexity. However, it could be slightly more structured by separating search criteria from scope for clarity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (5 parameters, search functionality) and lack of annotations and output schema, the description is incomplete. It doesn't address behavioral aspects like result handling, authentication needs, or error cases, which are critical for an AI agent to use it correctly. The description alone is insufficient for safe and effective tool invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description mentions searchable fields (title, description, due dates, course filters), which aligns with parameters like 'query', 'dueBefore', 'dueAfter', and 'courseId'. However, with 100% schema description coverage, the input schema already documents all 5 parameters thoroughly (e.g., date formats, defaults). The description adds minimal value beyond reinforcing the schema, meeting the baseline for high coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb ('Searches for') and resource ('assignments across all courses'), specifying what the tool does. It mentions searchable fields (title, description, due dates, course filters), which helps distinguish it from siblings like 'get_assignment' (singular retrieval) and 'list_courses' (different resource). However, it doesn't explicitly differentiate from 'canvas_list_active_courses' in terms of scope or output type.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, compare with sibling tools (e.g., use 'get_assignment' for a specific assignment, 'list_courses' for course listing), or specify scenarios where this search is preferred. Usage is implied by the search functionality but lacks explicit context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
4 tool updates
v1.0.0- First observed
canvas_list_active_courses - First observed
get_assignment - First observed
list_courses - First observed
search_assignments
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.
Connect your Moodle to AI assistants: courses, content, grading and reports from the chat.
Your workspace as agent tools — docs, canvases, slides, sheets, projects, tickets, and a shell.