Canvas LMS MCP Server
Enables interaction with Canvas LMS (Learning Management System) instances to access course content including modules, pages, files, and syllabi, manage assignments and grades, retrieve announcements, and export course materials through the Canvas REST API.
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 LMS MCP Serverwhat assignments are due this week?"
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
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.
What it does
This server exposes 13 tools that let Claude Code interact with your Canvas account:
Tool | Description |
| List all your enrolled courses |
| Get the module structure for a course |
| Get items within a specific module |
| Read a Canvas page as clean text |
| Search across all pages in a course |
| List files in a course or folder |
| Download a file to your local disk |
| List assignments with due dates and status filters |
| Full assignment details with submission status |
| Get the course syllabus |
| Get recent course announcements |
| Get your grades and submission scores |
| Bulk download an entire course as a ZIP |
Setup
1. Generate a Canvas Personal Access Token
Log into your Canvas instance (e.g.
https://uncch.instructure.com)Go to Account > Settings
Scroll to Approved Integrations
Click + New Access Token
Give it a name (e.g. "Claude Code MCP") and click Generate Token
Copy the token — it looks like
7006~abc123...
2. Install dependencies
cd /path/to/canvas-mcp
npm install3. Configure in Claude Code
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.
4. Restart Claude Code
Restart Claude Code and run /mcp to verify the server is connected and all 13 tools appear.
Environment Variables
Variable | Required | Description |
| Yes | Your Canvas instance domain (e.g. |
| Yes | Personal access token from Canvas Settings |
| No | Directory for downloaded files (defaults to |
Usage Examples
Once configured, just ask Claude naturally:
"List my Canvas courses"
"What are my grades in COMP 455?"
"Show me the modules for course 104811"
"Download the latest homework for my CS class"
"What assignments do I have coming up?"
"Get the syllabus for STOR 435"
"Search my COMP 211 course for 'linked list'"
"Export all content from my COMP 301 course"
How it works
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 validation
Project Structure
canvas-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.jsonThis server cannot be installed
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
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/evanap003300/canvas-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server