canvas_mcp
Provides tools for interacting with Canvas LMS, enabling AI agents to read and write course content such as assignments, pages, modules, announcements, discussions, grades, and more, using the user's existing Canvas session.
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_mcplist my courses and current scores"
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 LMS MCP Server
A Model Context Protocol server that lets Claude read and write Canvas LMS course content — without a Canvas developer key or OAuth2 registration.
How it works
This MCP server authenticates to Canvas using your browser's existing session cookies — the same approach used by the AI Tutor browser extension. No API key or OAuth2 setup is needed. By default, cookies are extracted automatically from your browser. See SECURITY.md for details on the authentication model.
Session lifetime: Canvas sessions typically last days to weeks. When they expire you'll get a 401 error — just log back into Canvas in your browser and restart the server.
Related MCP server: canvas-student-mcp
Setup
1. Install dependencies
Requires Python 3.10+.
cd canvas_mcp
pip3 install -r requirements.txt2. Set your Canvas URL
export CANVAS_BASE_URL="https://yourschool.instructure.com"This must be an https:// URL — the server will refuse to start with plain HTTP.
3. Authenticate
Automatic (recommended): Just log into Canvas in your browser. The server automatically extracts cookies from your default browser at startup. Supported browsers: Chrome, Safari, Edge, Firefox, Brave, Chromium, Arc, Opera, Vivaldi, LibreWolf.
To force a specific browser:
export BROWSER=firefox # or chrome, edge, brave, safari, etc.Manual fallback: If automatic extraction fails, copy the Cookie header from
your browser DevTools (Network tab → any Canvas request → Request Headers) and set:
export CANVAS_COOKIE="canvas_session=AbCdEfGh...; _csrf_token=...; log_session_id=..."Make sure the cookie string includes _csrf_token=... — without it, all write
operations will fail with HTTP 422.
4. Run the server
python3 server.py # stdio mode (for Claude Desktop)
python3 server.py --http # HTTP mode on localhost:8080Claude Desktop configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"canvas": {
"command": "python3",
"args": ["/absolute/path/to/canvas_mcp/server.py"],
"env": {
"CANVAS_BASE_URL": "https://yourschool.instructure.com"
}
}
}
}Tip: Use the absolute path to
server.py. Relative paths may not resolve correctly depending on how Claude Desktop launches the process.
Available tools (58)
General (students & instructors)
Tool | Description |
| Current user's name, ID, email, avatar, bio |
| All enrolled courses with current scores |
| Course details including syllabus body |
| Recent notifications, submissions, and messages |
| Upcoming assignments/events from the Canvas planner |
Assignments
Tool | Description |
| Assignments with due dates, points, rubrics; filterable by bucket |
| Full assignment details + rubric criteria |
| Create a new assignment with points, due date, submission types |
| Edit an existing assignment (partial update) |
Pages
Tool | Description |
| Wiki pages in a course with published status |
| Full page content (HTML body) by URL slug |
| Create a new wiki page (optionally publish immediately) |
| Edit an existing page's title, body, or publish status |
Modules
Tool | Description |
| Course modules with item counts |
| Items inside a specific module |
| Create a new module (with optional unlock date) |
| Rename, reposition, publish/unpublish a module |
| Delete a module (content items are NOT deleted) |
| Add an item to a module (assignment, page, quiz, URL, etc.) |
| Remove an item from a module (underlying content is NOT deleted) |
Communication
Tool | Description |
| Recent course announcements |
| Post an announcement, with optional scheduled delivery |
| Discussion topics with reply counts and last activity |
| Reply to a discussion topic |
| Send a Canvas Inbox message to students, sections, or a course |
| List Canvas Inbox conversations |
Calendar
Tool | Description |
| Calendar events for a course (filterable by date range) |
| Create a calendar event (office hours, exam, meeting) |
| Update an event's title, time, or location |
| Delete a calendar event |
Grading & submissions
Tool | Description |
| Student submissions for an assignment |
| Single submission with score, comments, rubric assessment |
| Students eligible to be graded for an assignment |
| Grading progress: graded / ungraded / not submitted |
| Grade a submission (score, rubric, comment, excuse) |
Overrides
Tool | Description |
| Date overrides for an assignment (per-student/section/group) |
| Single override details |
| Create a date override for students, a section, or a group |
| Update an existing override |
| Delete an override (reverts to default dates) |
Enrollments & sections
Tool | Description |
| Course roster, filterable by role and section |
| Course sections with enrollment counts |
Quizzes
Tool | Description |
| All quizzes in a course |
| Full quiz details (type, attempts, time limit, dates) |
| Create a quiz shell (add questions in Canvas UI) |
| Update quiz settings, dates, or publish status |
Rubrics
Tool | Description |
| Rubrics available in a course with criteria breakdown |
| Create a rubric with criteria and rating scales |
| Attach a rubric to an assignment for grading |
Assignment groups
Tool | Description |
| Gradebook categories with weights and assignment counts |
| Create a new gradebook category |
| Update a group's name, weight, or position |
| Delete a group (optionally move assignments first) |
Late policy
Tool | Description |
| Current late/missing submission policy for a course |
| Update late deductions, grade floors, and missing scores |
Analytics
Tool | Description |
| Per-student participation, page views, and tardiness |
| Per-assignment submission and score breakdown for a student |
Files
Tool | Description |
| Files uploaded to a course with download URLs |
Example prompts
What courses am I enrolled in?
Show me upcoming assignments for course 12345.
Get the syllabus for my CS 101 course (ID 9988).
Create a page called "Week 5 Overview" in course 12345 with a brief intro.
Post an announcement to course 12345: "Midterm is next Thursday -- review chapters 4-7."
What's on my Canvas planner this week?
Grade student 789's submission for assignment 456 in course 123 with a score of 95.
Create an office hours event for course 12345 on Friday from 2-4pm.
Show me the class roster for course 12345.
Send a message to all students in section 678: "Don't forget to submit your project."Security
See SECURITY.md for the full security model. Key points:
Your Canvas session cookie is equivalent to your password — never commit it or share it.
The server only communicates with your Canvas instance — no other external requests.
HTTPS is enforced — the server refuses to start with an
http://URL.Single-user design — one server instance = one Canvas account. Do not expose the HTTP server to the public internet.
Write operations require Teacher or TA enrollment; student accounts are read-only.
The
X-CSRF-Tokenis automatically extracted from your cookies for write requests.
License
This server cannot be deployed
Maintenance
Related MCP Connectors
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Automate any website: discover, run and create browser scripts that work behind logins.
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Read and edit a live study design canvas through its predefined WebMCP tools.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables interaction with Canvas LMS to access courses, modules, files, pages, assignments, submissions, announcements, upcoming deadlines, and syllabus.15-
- AlicenseAqualityAmaintenanceRead-only MCP server for Canvas LMS that works without API tokens by using session cookies, enabling AI assistants to access courses, assignments, grades, announcements, and more.3015 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables LLM agents to access and act on Canvas LMS through its REST API, including courses, assignments, discussions, inbox, calendar, and quizzes, using either a persistent browser SSO session or an API token.MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude to read Canvas LMS deadlines, announcements, and grades using an existing browser session, with no admin token required.7 npmMIT