loading…
Search for a command to run...
loading…
Connects Claude to Canvas LMS accounts, enabling natural language queries about courses, assignments, grades, and files. Supports content search, file downloads
Connects Claude to Canvas LMS accounts, enabling natural language queries about courses, assignments, grades, and files. Supports content search, file downloads, syllabus retrieval, and bulk course exports via 13 integrated tools.
An MCP (Model Context Protocol) server that connects Claude Code to your Canvas LMS account. Ask Claude about your courses, assignments, grades, and files — no manual downloading needed.
This server exposes 13 tools that let Claude Code interact with your Canvas account:
| Tool | Description |
|---|---|
list_courses |
List all your enrolled courses |
get_course_modules |
Get the module structure for a course |
get_module_items |
Get items within a specific module |
get_page_content |
Read a Canvas page as clean text |
search_course_content |
Search across all pages in a course |
list_course_files |
List files in a course or folder |
download_file |
Download a file to your local disk |
get_assignments |
List assignments with due dates and status filters |
get_assignment_details |
Full assignment details with submission status |
get_syllabus |
Get the course syllabus |
get_announcements |
Get recent course announcements |
get_grades |
Get your grades and submission scores |
export_course_content |
Bulk download an entire course as a ZIP |
https://uncch.instructure.com)7006~abc123...cd /path/to/canvas-mcp
npm install
Add the server to your Claude Code MCP config. For global access (all projects), create or edit ~/.claude/.mcp.json:
{
"mcpServers": {
"canvas-lms": {
"command": "npx",
"args": ["tsx", "/absolute/path/to/canvas-mcp/src/index.ts"],
"env": {
"CANVAS_DOMAIN": "your-school.instructure.com",
"CANVAS_ACCESS_TOKEN": "7006~your-token-here",
"CANVAS_DOWNLOAD_DIR": "/absolute/path/to/canvas-mcp/downloads"
}
}
}
}
For project-level access, create .mcp.json in your project root with the same content.
Restart Claude Code and run /mcp to verify the server is connected and all 13 tools appear.
| Variable | Required | Description |
|---|---|---|
CANVAS_DOMAIN |
Yes | Your Canvas instance domain (e.g. uncch.instructure.com) |
CANVAS_ACCESS_TOKEN |
Yes | Personal access token from Canvas Settings |
CANVAS_DOWNLOAD_DIR |
No | Directory for downloaded files (defaults to ./downloads) |
Once configured, just ask Claude naturally:
The server uses the Canvas LMS REST API with Bearer token authentication. It handles pagination, rate limiting, and converts Canvas HTML content to clean readable text for Claude.
Built with:
@modelcontextprotocol/sdk — MCP protocol implementationcheerio — HTML to text conversionadm-zip — ZIP extraction for course exportszod — Input validationcanvas-mcp/
├── src/
│ ├── index.ts # Entry point, registers tools, stdio transport
│ ├── canvas-client.ts # Canvas API client (auth, pagination, rate limits)
│ ├── html-to-text.ts # HTML to clean text conversion
│ └── tools/
│ ├── courses.ts # list_courses
│ ├── modules.ts # get_course_modules, get_module_items
│ ├── pages.ts # get_page_content, search_course_content
│ ├── files.ts # list_course_files, download_file
│ ├── assignments.ts # get_assignments, get_assignment_details
│ ├── syllabus.ts # get_syllabus
│ ├── announcements.ts # get_announcements
│ ├── grades.ts # get_grades
│ └── export.ts # export_course_content
├── package.json
└── tsconfig.json
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"canvas-lms-mcp-server": {
"command": "npx",
"args": []
}
}
}