Canvas MCP
Connects to a Canvas LMS account to access and manage courses, assignments, grades, modules, announcements, messages, files, pages, calendar events, discussions, quizzes, people, notifications, groups, learning outcomes, and analytics, including assignment submission and messaging capabilities.
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 MCP What assignments are due this week across all my courses?"
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 MCP
An MCP (Model Context Protocol) server that connects Claude to your Canvas LMS account. Access your courses, assignments, grades, announcements, messages, files, and more — directly from Claude.
Features
Courses — List enrolled courses, get syllabi, view sections and enrollments
Assignments — View all assignments with due dates, submit work (text or URL), check rubrics, track upcoming deadlines across all courses
Grades — Current grades per course, detailed grade breakdowns, what-if grade calculator
Modules — Browse module structure, view items and completion status, track prerequisites
Announcements — Read announcements per course or across all courses, view attachments
Messages — Full inbox access: read conversations, send messages, reply to threads, search recipients
Files — Browse course files and folders, download text files, upload files for submissions
Pages — Read wiki/course pages with full rendered content
Calendar — View events and assignment deadlines, get upcoming deadlines summary
Discussions — Read discussion topics and replies, post new replies
Quizzes — View quiz details, check submission results and scores
People — Course roster, instructor info, user profiles
Notifications — Activity stream, to-do items, unread counts
Groups — List groups, view members, browse group categories
Learning Outcomes — Outcome groups, outcomes, mastery results
Analytics — Course participation, assignment statistics (min/max/median/quartiles), page view data
Resource Navigation — Follow external links, resolve module items to content, fetch linked PDFs and documents, extract all URLs from assignments and pages
Related MCP server: Canvas Academic Assistant
Quick Start
1. Get Your Canvas API Token
Log into your Canvas account
Go to Account → Settings
Scroll to Approved Integrations
Click + New Access Token
Give it a name (e.g., "Claude MCP") and click Generate Token
Copy the token immediately — it won't be shown again
2. Install in Claude Desktop
Add this to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"canvas": {
"command": "npx",
"args": ["-y", "canvas-mcp"],
"env": {
"CANVAS_API_TOKEN": "your_token_here",
"CANVAS_BASE_URL": "https://yourschool.instructure.com"
}
}
}
}3. Install in Claude Code
claude mcp add canvas -e CANVAS_API_TOKEN=your_token_here -e CANVAS_BASE_URL=https://yourschool.instructure.com -- npx -y canvas-mcp4. Verify Setup
export CANVAS_API_TOKEN="your_token_here"
export CANVAS_BASE_URL="https://yourschool.instructure.com"
npx canvas-mcp validateAvailable Tools
Tool | Description |
| List all enrolled courses |
| Get course details with syllabus |
| List course sections |
| List course enrollments |
| List assignments with due dates and status |
| Get full assignment details and rubric |
| Get your submission with grade and feedback |
| Submit text or URL to an assignment |
| Upcoming assignments across all courses |
| Get the full rubric for an assignment |
| List all modules in a course |
| List items in a module |
| Get module item details |
| Current grades across all courses |
| Detailed grade breakdown for a course |
| Calculate what-if grades |
| List announcements |
| Get full announcement content |
| List inbox conversations |
| Read a full conversation thread |
| Send a new message |
| Reply to a conversation |
| Search for people to message |
| List files in a course |
| Get file metadata |
| Download file content |
| Browse folder structure |
| Upload a file for submission |
| Submit uploaded files |
| List wiki pages |
| Read a wiki page |
| List calendar events |
| Get upcoming deadlines |
| List discussion topics |
| Read a discussion with replies |
| Post a discussion reply |
| List quizzes |
| Get quiz details |
| View quiz results |
| List people in a course |
| Get a user's profile |
| Get your own profile |
| Get recent notifications |
| Get to-do items |
| Get unread message count |
| List groups in a course or user's groups |
| List members of a group |
| List group categories in a course |
| List learning outcome groups |
| List learning outcomes |
| Get outcome/mastery results |
| Course analytics and participation |
| Assignment score statistics (min/max/median) |
| Student participation breakdown |
| Fetch content from external URLs |
| Resolve a module item to its full content |
| Get all content in a module at once |
| Extract URLs from assignments/pages |
Example Conversations
"What assignments do I have due this week?"
Claude uses
canvas_list_upcoming_assignmentsto show all upcoming deadlines sorted by date.
"What's my grade in Biology?"
Claude uses
canvas_get_course_gradesto show a detailed breakdown of all assignment scores.
"Show me the syllabus for CS 101"
Claude uses
canvas_get_courseto retrieve and display the full syllabus.
"If I get a 90 on the final, what will my grade be?"
Claude uses
canvas_whatif_gradesto calculate the hypothetical outcome.
"Send a message to my professor asking about office hours"
Claude uses
canvas_search_recipientsthencanvas_send_messageto compose and send the message.
"What did the latest announcement say?"
Claude uses
canvas_list_announcementsandcanvas_get_announcementto fetch the full content.
Development
# Clone the repo
git clone https://github.com/AlejandroVallejo1/canvas-mcp.git
cd canvas-mcp
# Install dependencies
npm install
# Build
npm run build
# Run type checking
npm run check
# Run tests
npm test
# Run in dev mode (watches for changes)
npm run devLocal Testing
# Set environment variables
export CANVAS_API_TOKEN="your_token"
export CANVAS_BASE_URL="https://yourschool.instructure.com"
# Run the server directly
node dist/index.js
# Or validate your setup
node dist/validate.jsSecurity
Your Canvas API token is never logged, stored on disk, or transmitted anywhere except to your Canvas instance
The token is only used in the
Authorizationheader of direct API calls to yourCANVAS_BASE_URLAll communication with Canvas uses HTTPS
The server runs locally via stdio — no network server is exposed
No telemetry or analytics
Configuration
Environment Variable | Required | Description |
| Yes | Your Canvas personal access token |
| Yes | Your Canvas instance URL (e.g., |
Troubleshooting
"CANVAS_API_TOKEN is required" Make sure you've set the environment variable either in your Claude Desktop config or in your shell.
"401 Unauthorized" Your token may be expired or invalid. Generate a new one from Canvas Settings → Approved Integrations.
"403 Forbidden" You may not have permission to access the requested resource, or Canvas rate limiting may be active. The server retries automatically on rate limits.
"Cannot find module"
Run npm run build to compile TypeScript before running.
Tools not showing in Claude
Restart Claude Desktop after changing the config
Verify the config file path is correct for your OS
Check that
npx canvas-mcpruns without errors
Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch (
git checkout -b feature/my-feature)Make your changes
Run tests (
npm test) and type checking (npm run check)Commit your changes
Push and open a Pull Request
License
MIT — see LICENSE
Available Tools
58 toolscanvas_download_fileA
Download the content of a file. Works with text files, CSVs, and other text-based formats. Returns base64 preview for binary files.
Inputs: file_id (required).
canvas_extract_links_from_contentB
Extract all URLs/links from an assignment description, page, or announcement. Useful for finding embedded resources.
Inputs: course_id (required), content_id (required), content_type (required).
canvas_fetch_external_urlB
Fetch and return the text content of an external URL referenced in a course. Useful for following links in assignments, module items, or announcements. Only fetches text-based content.
Inputs: url (required).
canvas_get_activity_streamB
Get recent activity stream items (notifications) across all courses.
Inputs: only_unread.
canvas_get_announcementA
Get the full content of a specific announcement including attachments.
Inputs: course_id (required), announcement_id (required).
canvas_get_assignmentA
Get full details of a specific assignment including description, rubric, and submission status.
Inputs: course_id (required), assignment_id (required).
canvas_get_assignment_rubricB
Get the full rubric for an assignment including criteria, ratings, and point values.
Inputs: course_id (required), assignment_id (required).
canvas_get_assignment_statisticsC
Get score statistics for assignments in a course: min, max, median, quartiles.
Inputs: course_id (required).
canvas_get_conversationB
Read a full conversation thread with all messages.
Inputs: conversation_id (required).
canvas_get_courseB
Get detailed information about a specific course including syllabus, description, instructor info, and dates.
Inputs: course_id (required).
canvas_get_course_analytics_summaryB
Get analytics summary for a course: participation data, page views, and assignment statistics for the current student.
Inputs: course_id (required).
canvas_get_course_gradesC
Get detailed grade breakdown for a specific course, showing all assignment grades.
Inputs: course_id (required).
canvas_get_course_participationB
Get student participation summary for a course: page views, participations, and tardiness breakdown.
Inputs: course_id (required).
canvas_get_discussionC
Get a discussion topic with its entries and replies.
Inputs: topic_id (required), course_id (required).
canvas_get_fileB
Get metadata and download URL for a specific file.
Inputs: file_id (required).
canvas_get_full_module_contentB
Get the complete content of ALL items in a module. Resolves pages, assignments, and files to their actual content. Useful for reading through an entire module at once.
Inputs: course_id (required), module_id (required).
canvas_get_gradesA
Get current grades across all enrolled courses. Shows current and final scores/grades.
Inputs: no named parameters.
canvas_get_group_membersC
List all members of a specific group.
Inputs: group_id (required).
canvas_get_module_itemC
Get detailed information about a specific module item.
Inputs: item_id (required), course_id (required), module_id (required).
canvas_get_module_item_contentB
Get the full content of a module item by resolving its type. Automatically fetches the linked page, assignment, file, or external URL content.
Inputs: item_id (required), course_id (required), module_id (required).
canvas_get_outcome_resultsB
Get outcome results for the current user in a course. Shows mastery status for each learning outcome.
Inputs: course_id (required).
canvas_get_pageC
Get the full content of a wiki page rendered as text.
Inputs: page_url (required), course_id (required).
canvas_get_quizC
Get detailed information about a specific quiz.
Inputs: quiz_id (required), course_id (required).
canvas_get_quiz_submissionsC
Get quiz submission results for the current user.
Inputs: quiz_id (required), course_id (required).
canvas_get_selfA
Get your own Canvas user profile and account information.
Inputs: no named parameters.
canvas_get_submissionC
Get submission details for an assignment, including grade, comments, and rubric feedback.
Inputs: course_id (required), assignment_id (required).
canvas_get_todo_itemsA
Get to-do items that need attention: ungraded submissions, upcoming assignments, etc.
Inputs: no named parameters.
canvas_get_unread_countB
Get counts of unread items: conversations, notifications, etc.
Inputs: no named parameters.
canvas_get_upcoming_deadlinesB
Get all upcoming assignment deadlines and events in the next N days, sorted by date.
Inputs: days_ahead.
canvas_get_user_profileB
Get the profile of a specific user.
Inputs: user_id (required).
canvas_list_announcementsB
List announcements for a specific course or across all active courses.
Inputs: course_id, only_unread.
canvas_list_assignmentsB
List all assignments in a course with due dates, points, and submission status.
Inputs: course_id (required), bucket, order_by.
canvas_list_calendar_eventsB
List calendar events across all courses or for a specific course. Includes assignments and events.
Inputs: type, end_date, course_id, start_date.
canvas_list_conversationsB
List inbox conversations. Shows subject, last message preview, participants, and unread status.
Inputs: scope.
canvas_list_coursesA
List all courses the user is enrolled in. Returns course names, codes, term info, and enrollment type.
Inputs: enrollment_state, include_total_students.
canvas_list_course_usersC
List all people in a course: students, TAs, and professors.
Inputs: course_id (required), search_term, enrollment_type.
canvas_list_discussionsB
List discussion topics in a course.
Inputs: course_id (required), only_unread.
canvas_list_enrollmentsB
List enrollments in a course, optionally filtered by type (student, teacher, ta).
Inputs: course_id (required), type.
canvas_list_filesB
List all files in a course, optionally within a specific folder.
Inputs: course_id (required), sort, folder_id, search_term.
canvas_list_foldersC
List folders in a course to navigate the file structure.
Inputs: course_id (required).
canvas_list_group_categoriesC
List group categories (sets) in a course. Group categories organize how students are grouped.
Inputs: course_id (required).
canvas_list_groupsB
List all groups the current user belongs to, or all groups in a course.
Inputs: course_id.
canvas_list_module_itemsB
List all items in a specific module: pages, assignments, files, links, external tools, etc.
Inputs: course_id (required), module_id (required).
canvas_list_modulesB
List all modules in a course with their completion status and item counts.
Inputs: course_id (required).
canvas_list_outcome_groupsC
List learning outcome groups for a course. Outcomes are organized into groups/folders.
Inputs: course_id (required).
canvas_list_outcomesC
List learning outcomes in an outcome group for a course.
Inputs: course_id (required), outcome_group_id.
canvas_list_pagesC
List all wiki pages in a course.
Inputs: course_id (required), sort, published.
canvas_list_quizzesB
List all quizzes in a course with their details and availability.
Inputs: course_id (required).
canvas_list_sectionsC
List all sections in a course.
Inputs: course_id (required).
canvas_list_upcoming_assignmentsA
List upcoming assignments across ALL courses, sorted by due date. Great for getting an overview of what is due soon.
Inputs: days_ahead.
canvas_post_discussion_replyB
Post a reply to a discussion topic or to a specific entry.
Inputs: message (required), topic_id (required), course_id (required), entry_id.
canvas_reply_conversationC
Reply to an existing conversation thread.
Inputs: body (required), conversation_id (required).
canvas_search_recipientsB
Search for message recipients by name. Useful for finding people to message.
Inputs: search (required), type, course_id.
canvas_send_messageC
Send a new message to one or more recipients.
Inputs: body (required), subject (required), recipients (required), course_id.
canvas_submit_assignmentB
Submit an assignment. Supports text entry and URL submission types.
Inputs: course_id (required), assignment_id (required), submission_type (required), url, +1 more.
canvas_submit_file_assignmentB
Submit a previously uploaded file as an assignment submission.
Inputs: file_ids (required), course_id (required), assignment_id (required).
canvas_upload_fileA
Upload a file to a course for assignment submission. Returns the file ID to use when submitting.
Inputs: course_id (required), file_name (required), file_content (required), assignment_id (required), +1 more.
canvas_whatif_gradesA
Calculate what-if grades. Provide hypothetical scores for assignments to see how they would affect your grade.
Inputs: course_id (required), whatif_scores (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 58 tools
Most tools target a clear resource/action pair and are easy to distinguish. A few areas overlap, especially upcoming assignments vs. upcoming deadlines vs. calendar events, and module item content vs. full module content vs. external URL fetching, but descriptions help resolve most ambiguity.
All tools use a consistent canvas_ prefix followed by snake_case verb_noun names. The pattern is predictable throughout, with only mild outliers like canvas_whatif_grades that remain readable.
58 tools is far above the typical well-scoped range and is likely overwhelming for an agent. Although Canvas is a broad domain, many read/content utilities could be consolidated or grouped to reduce surface area.
The surface covers a wide range of Canvas workflows: courses, assignments, submissions, grades, messaging, files, pages, discussions, quizzes, groups, outcomes, analytics, and content fetching. Some lifecycle gaps remain, such as creating/updating pages or discussions, but core student workflows are well covered.
Maintenance
Related MCP Connectors
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Study from your own classes: synced Canvas coursework, notes, flashcards and study progress.
Manage your Canvas coursework with quick access to courses, assignments, and grades. Track upcomin…
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants like Claude to interact with Canvas LMS through the Canvas API, providing tools for managing courses, announcements, rubrics, assignments, and student data.101MIT
- FlicenseNot gradedqualityDmaintenanceConnects Claude to Canvas LMS, enabling students to query their coursework, assignments, grades, deadlines, announcements, and calendar events through natural conversation instead of navigating the Canvas interface.8-
- FlicenseNot gradedqualityDmaintenanceConnects Claude AI to your Canvas LMS account, enabling natural language interaction with coursework including assignments, grades, announcements, and calendar.-
- FlicenseNot gradedqualityDmaintenanceConnects Claude to the Canvas LMS REST API, enabling natural language queries about courses, assignments, grades, deadlines, and announcements.1-