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 "Install 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 Assignment Assistant
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ari310126/canvas_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server