Canvas LMS MCP Server
Enables AI assistants to access Canvas LMS course content, including assignments, modules, announcements, and files, to help students manage their coursework.
README
Canvas LMS MCP Server
A Model Context Protocol (MCP) server that provides comprehensive access to Canvas LMS course content, enabling AI assistants to help students manage their coursework more effectively.
Features
š Course Management
- List enrolled courses with detailed information
- Access course modules and structured content
- Navigate learning materials and resources
š Assignment Support
- View assignments with due dates and requirements
- Get detailed assignment descriptions and grading criteria
- Track submission status and progress
š¢ Communications
- Read course announcements and updates
- Stay informed about important course notifications
š Content Access
- Extract content from course pages (lectures, readings, etc.)
- Access files, presentations, videos, and other media
- Search across all course materials
- Download links for course resources
šļø Week-based Navigation
- Extract complete content for any course week
- Automatic module detection by week number
- Comprehensive content previews
Installation
Prerequisites
- Node.js 18+ and npm
- Canvas LMS access token
- Canvas LMS instance URL
Quick Installation (Recommended)
Install globally from GitHub:
npm install -g git+https://github.com/mandaza/mcp-canvas-lms-student.git
Alternative: Local Development Installation
-
Clone the repository:
git clone https://github.com/mandaza/mcp-canvas-lms-student.git cd mcp-canvas-lms-student npm install -
Build the server:
npm run build
Configuration
Getting a Canvas Access Token
- Log into your Canvas LMS instance
- Go to Account ā Settings
- Scroll down to "Approved Integrations"
- Click "+ New Access Token"
- Give it a purpose (e.g., "MCP Server Access")
- Copy the generated token for use in Claude Desktop
ā ļø Important: Keep your access token secure and never share it.
Integration Options
This MCP server supports multiple integration modes:
Option 1: Claude Desktop (stdio mode)
Add this configuration to your Claude Desktop settings:
{
"mcpServers": {
"canvas": {
"command": "canvas-mcp",
"env": {
"CANVAS_BASE_URL": "https://your-institution.instructure.com",
"CANVAS_ACCESS_TOKEN": "your_canvas_access_token_here"
}
}
}
}
Configuration File Locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\\Claude\\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Option 2: Open WebUI (HTTP/SSE mode)
For Open WebUI integration, see the detailed Open WebUI Setup Guide.
Quick Start:
- Create a
.envfile with your Canvas credentials and server configuration - Start the HTTP server:
npm run start:http - In Open WebUI Admin Settings ā External Tools, add an MCP server:
- Type:
MCP (Streamable HTTP) - Server URL:
http://localhost:3001/sse - (Use
http://host.docker.internal:3001/sseif Open WebUI is in Docker)
- Type:
Option 3: n8n Workflows (HTTP mode)
For n8n workflow automation, see the detailed n8n Integration Guide.
Quick Start:
- Start the HTTP server:
npm run start:http - In n8n, use the HTTP Request node with:
- Method: POST
- URL:
http://localhost:3001/message - Body: MCP JSON-RPC format
- Check the guide for complete workflow examples
All modes can run simultaneously if needed!
Available Tools
The server provides 17 tools for comprehensive Canvas access:
Course Tools
list_courses- Get all enrolled coursesget_course_details- Get detailed course informationlist_course_modules- Get course module structureget_module_items- Get items within a specific module
Assignment Tools
list_assignments- Get all course assignmentsget_assignment_details- Get detailed assignment informationlist_assignment_submissions- Check submission status and feedback
Content Extraction Tools
get_page_content- Extract full content from course pagesget_file_content- Get file information and download URLsget_media_content- Access video/audio content and streamsextract_module_content- Extract all content from a moduleget_week_content- Extract content for a specific week
Communication Tools
list_announcements- Get course announcementsget_announcement_details- Read specific announcements
Resource Tools
list_course_files- Get all course files and resourcesget_file_details- Get file metadata and access informationsearch_course_content- Search across all course materials
Example Queries
Once integrated with Claude Desktop, you can use natural language queries like:
"Show me all my current courses"
"What assignments do I have due this week in Biology 101?"
"Extract all content from Week 10 in my Data Structures course"
"Find all materials related to 'machine learning' in my courses"
"Show me recent announcements from my professors"
"Get the presentation slides from today's lecture"
Development
Building
npm run build
Development Mode
npm run dev
Project Structure
src/
āāā index.ts # Main MCP server
āāā canvas-client.ts # Canvas API client
āāā tools/ # MCP tool definitions
ā āāā course-tools.ts
ā āāā assignment-tools.ts
ā āāā announcement-tools.ts
ā āāā library-tools.ts
ā āāā content-tools.ts
āāā prompts/ # Predefined prompts
ā āāā index.ts
āāā resources/ # Resource definitions
āāā index.ts
Security & Privacy
- Read-only access: Students can only read their course data, not modify it
- Rate limiting: Built-in request throttling to prevent API abuse
- Secure authentication: Uses Canvas API tokens with proper error handling
- Local processing: All data processing happens locally
Troubleshooting
Common Issues
Authentication Failed
- Verify your Canvas access token is correct and hasn't expired
- Ensure your Canvas base URL is properly formatted
- Check that your token has the necessary permissions
No Content Found
- Verify you're enrolled in the course
- Check that the course content is published and accessible
- Ensure the course/module/week numbers are correct
Connection Issues
- Verify your Canvas instance is accessible
- Check network connectivity
- Ensure Canvas isn't undergoing maintenance
Deployment & Hosting
To use your MCP server from anywhere (not just localhost), you need to host it on a server or cloud platform.
Quick Start Guides
- Quick Start Deployment - Deploy in 10 minutes with Railway.app
- Full Deployment Guide - Complete guide for all hosting options
- Security Guide - API key authentication and best practices
Hosting Options
| Platform | Time | Cost | Best For |
|---|---|---|---|
| Railway.app | 10 min | Free tier | Easiest deployment |
| Render.com | 10 min | Free tier | Simple setup |
| DigitalOcean VPS | 20 min | $4-6/month | Full control |
| Docker | 15 min | Varies | Containerized apps |
Security (Required for Production!)
Before deploying to production, you must add API key authentication:
# Generate a secure API key
openssl rand -hex 32
# Add to your .env file
API_KEY=your_generated_key_here
See SECURITY.md for detailed setup instructions.
License
This project is licensed under the ISC License.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.