canvas-mcp

vishalsachdev/canvas-mcp

3.5

If you are the rightful owner of canvas-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The Canvas MCP Server is a Message Control Protocol server designed to interface with the Canvas Learning Management System API, providing a privacy-focused, FERPA-compliant solution for educators.

Tools
7
Resources
0
Prompts
0

Canvas MCP Server

License: MIT skills.sh

MCP server for Canvas LMS with 90+ tools and 8 agent skills. Works with Claude Desktop, Cursor, Codex, Windsurf, and 40+ other agents.

npx skills add vishalsachdev/canvas-mcp

Note: Recently refactored to a modular architecture for better maintainability. The legacy monolithic implementation has been archived.

For AI Agents

Canvas MCP provides 90+ tools for interacting with Canvas LMS. Tools are organized by user type:

Student Tools (click to expand)
ToolPurposeExample Prompt
get_my_upcoming_assignmentsDue dates for next N days"What's due this week?"
get_my_todo_itemsCanvas TODO list"Show my TODO list"
get_my_submission_statusSubmitted vs missing"Have I submitted everything?"
get_my_course_gradesCurrent grades"What are my grades?"
get_my_peer_reviews_todoPending peer reviews"What peer reviews do I need to do?"
Educator Tools (click to expand)
ToolPurposeExample Prompt
list_assignmentsAll assignments in course"Show assignments in BADM 350"
create_assignmentCreate new assignment"Create an assignment due Jan 26 with online text submission"
update_assignmentUpdate existing assignment"Change the due date for Assignment 3 to Feb 15"
list_submissionsStudent submissions"Who submitted Assignment 3?"
bulk_grade_submissionsGrade multiple at once"Grade these 10 students"
get_assignment_analyticsPerformance stats"Show analytics for Quiz 2"
send_conversationMessage students"Message students who haven't submitted"
create_announcementPost announcements"Announce the exam date change"
Module Management
create_moduleCreate course module"Create a module for Week 5"
update_moduleUpdate module settings"Rename the midterm module"
add_module_itemAdd content to module"Add the syllabus page to Week 1"
delete_moduleRemove a module"Delete the empty test module"
Page & Content
create_pageCreate course page"Create a page for office hours"
edit_page_contentUpdate page content"Update the syllabus page"
update_page_settingsPublish/unpublish pages"Publish all Week 3 pages"
bulk_update_pagesBatch page operations"Unpublish all draft pages"
File Management
upload_course_fileUpload local file to Canvas"Upload syllabus.pdf to the course"
Shared Tools (click to expand)
ToolPurpose
list_coursesAll enrolled courses
get_course_detailsCourse info + syllabus
list_pagesCourse pages
get_page_contentRead page content
list_modulesList course modules
list_module_itemsItems within a module
list_discussion_topicsDiscussion forums
list_discussion_entriesPosts in a discussion
post_discussion_entryAdd a discussion post
reply_to_discussion_entryReply to a post
Learning Designer Tools (course design & QC)
ToolPurposeExample Prompt
get_course_structureFull module→items tree as JSON"Show me the structure of CS 101"
scan_course_content_accessibilityWCAG violation scanner"Audit accessibility for BADM 350"
fetch_ufixit_reportInstitutional accessibility report"Pull the UFIXIT report for this course"
parse_ufixit_violationsExtract structured violations"Parse the UFIXIT violations"
format_accessibility_summaryReadable violation report"Summarize the accessibility issues"

Skills: canvas-course-qc (pre-semester audit), canvas-accessibility-auditor (WCAG compliance), canvas-course-builder (scaffold courses from specs/templates).

Developer Tools (for bulk operations)
ToolPurposeWhen to Use
search_canvas_toolsDiscover code API operationsFinding available bulk ops
execute_typescriptRun TypeScript locally30+ items, custom logic, 99.7% token savings

Decision tree: Simple query → MCP tools. Batch grading (10+) → bulk_grade_submissions. Complex bulk (30+) → execute_typescript.

Quick Reference

Course identifiers: Canvas ID (12345), course code (badm_350_120251_246794), or SIS ID

Cannot do: Create/delete courses, modify course settings, access other users' data, create/update rubrics (use Canvas UI)

Rate limits: ~700 requests/10 min. Use max_concurrent=5 for bulk operations.

Full documentation: | |

Overview

The Canvas MCP Server bridges the gap between AI assistants and Canvas Learning Management System, providing both students and educators with an intelligent interface to their Canvas environment. Built on the Model Context Protocol (MCP), it enables natural language interactions with Canvas data through any MCP-compatible client.

Latest Release: v1.1.0

Released: March 4, 2026 | View Full Release Notes

  • Learning Designer Tools — New get_course_structure tool + 3 skills for course QC, accessibility auditing, and course scaffolding
  • Agent Skills — 8 workflow skills for 40+ coding agents via skills.sh
  • File Managementdownload_course_file and list_course_files tools (community PR #75)
  • Token Optimization — Trimmed tool docstrings ~35% for faster MCP context loading
  • Generic Distribution — Removed institution-specific defaults for universal use
  • Codebase Refactor — Type dispatch, structured logging, Python 3.14 fix
Previous releases

v1.0.8 — Security Hardening (PII sanitization, audit logging, sandbox-by-default), Ruff linting, 235+ tests

v1.0.7 — Assignment Update Tool (update_assignment), complete CRUD, 9 tests

v1.0.6 — Module Management (7 tools), Page Settings (2 tools), 235+ tests

v1.0.5 — Claude Code Skills, GitHub Pages site

v1.0.4 — Code Execution API (99.7% token savings), Bulk Operations, MCP 2.14 compliance

For Students 👨‍🎓

Get AI-powered assistance with:

  • Tracking upcoming assignments and deadlines
  • Monitoring your grades across all courses
  • Managing peer review assignments
  • Accessing course content and discussions
  • Organizing your TODO list

→ Get Started as a Student

For Educators 👨‍🏫

Enhance your teaching with:

  • Assignment and grading management
  • Student analytics and performance tracking
  • Discussion and peer review facilitation
  • FERPA-compliant student data handling
  • Bulk messaging and communication tools

→ Get Started as an Educator

For Learning Designers 🎨

AI-powered course design and quality assurance:

  • Course scaffolding — Build entire course structures from specs, templates, or by cloning existing courses
  • Quality audits — Pre-semester QC checks for structure, content, publishing, and completeness
  • Accessibility compliance — WCAG scanning, prioritized reports, guided remediation, and verification
  • Course structure analysis — Full module→items tree in a single call for rapid course review

3 dedicated skills (canvas-course-qc, canvas-accessibility-auditor, canvas-course-builder) plus the get_course_structure tool.

🤖 Agent Skills

Pre-built workflow recipes that teach AI agents how to use Canvas MCP tools effectively. Available for 40+ coding agents via skills.sh, or as Claude Code-specific slash commands.

Install via skills.sh (Any Agent)

npx skills add vishalsachdev/canvas-mcp

This launches an interactive picker to install skills into your agent of choice (Claude Code, Cursor, Codex, OpenCode, Cline, Zed, and many more).

SkillForWhat It Does
canvas-week-planStudentsWeekly planner: due dates, submission status, grades, peer reviews
canvas-morning-checkEducatorsCourse health dashboard: submission rates, struggling students, deadlines
canvas-bulk-gradingEducatorsGrading decision tree: single → bulk → code execution with safety checks
canvas-peer-review-managerEducatorsFull peer review pipeline: analytics, quality analysis, reminders, reports
canvas-discussion-facilitatorBothDiscussion browsing, participation monitoring, replying, facilitation
canvas-course-qcLearning DesignersPre-semester quality audit: structure, content, publishing, completeness
canvas-accessibility-auditorLearning DesignersWCAG scan, prioritized report, guided remediation, verification
canvas-course-builderLearning DesignersScaffold courses from specs, templates, or existing courses

Install a specific skill:

npx skills add vishalsachdev/canvas-mcp -s canvas-week-plan

Claude Code Slash Commands

If you use Claude Code, the same workflows are also available as slash commands:

You: /canvas-morning-check CS 101
Claude: [Generates comprehensive course status report]

You: /canvas-week-plan
Claude: [Shows prioritized weekly assignment plan]

Claude Code skills are located in .claude/skills/ and can be customized for your workflow.

Want a custom skill? Submit a request describing your repetitive workflow!

🔒 Privacy & Data Protection

For Educators: FERPA Compliance

Complete FERPA compliance through systematic data anonymization when working with student data:

  • Source-level data anonymization converts real names to consistent anonymous IDs (Student_xxxxxxxx)
  • Automatic email masking and PII filtering from discussion posts and submissions
  • Local-only processing with configurable privacy controls (ENABLE_DATA_ANONYMIZATION=true)
  • FERPA-compliant analytics: Ask "Which students need support?" without exposing real identities
  • De-anonymization mapping tool for faculty to correlate anonymous IDs with real students locally

All student data is anonymized before it reaches AI systems. See Educator Guide for configuration details.

For Students: Your Data Stays Private

  • Your data only: Student tools access only your own Canvas data via Canvas API's "self" endpoints
  • Local processing: Everything runs on your machine - no data sent to external servers
  • No tracking: Your Canvas usage and AI interactions remain private
  • No anonymization needed: Since you're only accessing your own data, there are no privacy concerns

Prerequisites

  • Python 3.10+ - Required for modern features and type hints
  • Canvas API Access - API token and institution URL
  • MCP Client - Any MCP-compatible client (Claude Desktop, Cursor, Zed, Windsurf, Continue, etc.)

Supported MCP Clients

Works with any MCP-compatible client: Claude Desktop, Cursor, Zed, Windsurf, Continue, Replit, Copilot Studio, and more.

Canvas MCP is compliant with Canvas LMS API 2024-2026 requirements (User-Agent header, per_page pagination). Works with Canvas Cloud and self-hosted instances.

Installation

1. Install Dependencies

# (Recommended) Use a dedicated virtualenv so the MCP binary is in a stable location
python3 -m venv .venv
. .venv/bin/activate

# Install the package editable
pip install -e .

2. Configure Environment

# Copy environment template
cp env.template .env

# Edit with your Canvas credentials
# Required: CANVAS_API_TOKEN, CANVAS_API_URL

Get your Canvas API token from: Canvas → Account → Settings → New Access Token

Note for Students: Some educational institutions restrict API token creation for students. If you see an error like "There is a limit to the number of access tokens you can create" or cannot find the token creation option, contact your institution's Canvas administrator or IT support department to request API access or assistance in creating a token.

3. MCP Client Configuration

Canvas MCP works with any MCP-compatible client. Below are configuration examples for popular clients:

Claude Desktop (Most Popular)

Configuration file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Configuration:

{
  "mcpServers": {
    "canvas-api": {
      "command": "/absolute/path/to/canvas-mcp/.venv/bin/canvas-mcp-server"
    }
  }
}

Note: Use the absolute path to your virtualenv binary to avoid issues with shell-specific PATH entries (e.g., pyenv shims).

Cursor

Configuration file location:

  • macOS/Linux: ~/.cursor/mcp_config.json
  • Windows: %USERPROFILE%\.cursor\mcp_config.json

Configuration:

{
  "mcpServers": {
    "canvas-api": {
      "command": "/absolute/path/to/canvas-mcp/.venv/bin/canvas-mcp-server"
    }
  }
}
Zed

Configuration: Add to Zed's settings.json (accessible via Settings menu)

{
  "context_servers": {
    "canvas-api": {
      "command": {
        "path": "/absolute/path/to/canvas-mcp/.venv/bin/canvas-mcp-server",
        "args": []
      }
    }
  }
}
Windsurf IDE

Configuration file location:

  • macOS: ~/Library/Application Support/Windsurf/mcp_config.json
  • Windows: %APPDATA%\Windsurf\mcp_config.json

Configuration:

{
  "mcpServers": {
    "canvas-api": {
      "command": "/absolute/path/to/canvas-mcp/.venv/bin/canvas-mcp-server"
    }
  }
}
Continue

Configuration: Add to Continue's config.json (accessible via Continue settings)

{
  "mcpServers": {
    "canvas-api": {
      "command": "/absolute/path/to/canvas-mcp/.venv/bin/canvas-mcp-server"
    }
  }
}
Other MCP Clients

For other MCP-compatible clients, the general pattern is:

  1. Locate your client's MCP configuration file
  2. Add a server entry with:
    • Server name: canvas-api (or any name you prefer)
    • Command: Full path to canvas-mcp-server binary
    • Optional args: Additional arguments if needed

Consult your client's MCP documentation for specific configuration format and file locations.

Windows users: Replace forward slashes with backslashes in paths (e.g., C:\Users\YourName\canvas-mcp\.venv\Scripts\canvas-mcp-server.exe)

Verification

Test your setup:

# Test Canvas API connection
canvas-mcp-server --test

# View configuration
canvas-mcp-server --config

# Start server (for manual testing)
canvas-mcp-server

Available Tools

The Canvas MCP Server provides a comprehensive set of tools for interacting with the Canvas LMS API. These tools are organized into logical categories for better discoverability and maintainability.

Tool Categories

Student Tools (New!)

  • Personal assignment tracking and deadline management
  • Grade monitoring across all courses
  • TODO list and peer review management
  • Submission status tracking

Shared Tools (Both Students & Educators)

  1. Course Tools - List and manage courses, get detailed information, generate summaries with syllabus content
  2. Discussion & Announcement Tools - Manage discussions, announcements, and replies
  3. Page & Content Tools - Access pages, modules, and course content

Educator Tools 4. Assignment Tools - Handle assignments, submissions, and peer reviews with analytics 5. Rubric Tools - List rubrics, associate with assignments, and grade submissions (including bulk_grade_submissions for efficient batch grading). Note: Create/update rubrics via Canvas web UI due to API limitations. 6. User & Enrollment Tools - Manage enrollments, users, and groups 7. Analytics Tools - View student analytics, assignment statistics, and progress tracking 8. Messaging Tools - Send messages and announcements to students

Developer Tools 9. Discovery Tools - Search and explore available code execution API operations with search_canvas_tools and list_code_api_modules 10. Code Execution Tools - Execute TypeScript code with execute_typescript for token-efficient bulk operations (99.7% token savings!)

📖 for detailed information about all available tools.

Code Execution API

For bulk operations (30+ items), Canvas MCP supports TypeScript code execution with 99.7% token savings compared to traditional tool calling.

ApproachBest ForToken Cost
MCP toolsSimple queries, small datasetsNormal
bulk_grade_submissionsBatch grading 10-29 itemsLow
execute_typescript30+ items, custom logic99.7% less

Use search_canvas_tools to discover available operations, then execute_typescript to run them locally. Code runs in a secure sandbox by default (network blocked, env filtered, resource limits).

Code execution examples and security details

Bulk Grading Example

import { bulkGrade } from './canvas/grading/bulkGrade';

await bulkGrade({
  courseIdentifier: "60366",
  assignmentId: "123",
  gradingFunction: (submission) => {
    const notebook = submission.attachments?.find(f =>
      f.filename.endsWith('.ipynb')
    );
    if (!notebook) return null;
    return { points: 100, comment: "Great work!" };
  }
});

Security Modes

ModeConfigWhat It Does
Local sandbox (default)None neededTimeout 120s, memory 512MB, network blocked, env filtered
Container sandboxTS_SANDBOX_MODE=containerFull filesystem isolation via Docker/Podman
No sandboxENABLE_TS_SANDBOX=falseFull local access (not recommended)

See for a detailed walkthrough.

Usage

MCP clients start the server automatically. Just ask naturally:

  • "What's due this week?" / "Show my grades" / "What peer reviews do I need?"
  • "Who hasn't submitted Assignment 3?" / "Send reminders to missing students"

Quick start guides: | | |

Documentation

  • — Complete reference for all 90+ tools
  • — Getting started as a student
  • — FERPA compliance and educator workflows
  • — Token-efficient batch grading walkthrough
  • — Architecture and contributing
Technical details

Built on FastMCP with async httpx, pydantic validation, and python-dotenv configuration. Modern src/ layout with pyproject.toml. Full type hints, connection pooling, smart pagination, and rate limiting. 290+ tests. ruff + black for code quality.

Troubleshooting

If you encounter issues:

  1. Server Won't Start - Verify your Configuration setup: .env file, virtual environment path, and dependencies
  2. Authentication Errors - Check your Canvas API token validity and permissions
  3. Connection Issues - Verify Canvas API URL correctness and network access
  4. Debugging - Check your MCP client's console logs (e.g., Claude Desktop's developer console) or run server manually for error output

Security

Four layers of runtime security, all enabled by default:

LayerDefault
PII sanitization in logsLOG_REDACT_PII=true
Token validation on startupAlways on
Structured audit loggingOpt-in: LOG_ACCESS_EVENTS=true
Sandboxed code executionENABLE_TS_SANDBOX=true

FERPA-compliant anonymization for educators: ENABLE_DATA_ANONYMIZATION=true. See for details.

Publishing

Published to PyPI, MCP Registry, and skills.sh (agent skills). Releases are automated via GitHub Actions — tag a version (git tag vX.Y.Z && git push origin vX.Y.Z) and CI handles the rest.

Contributing

Contributions are welcome! Feel free to:

  • Submit issues for bugs or feature requests
  • Create pull requests with improvements
  • Share your use cases and feedback

License

This project is licensed under the MIT License - see the file for details.


Created by Vishal Sachdev