Version 2.0 - 37 tools available - an MCP server for interacting with the Canvas LMS API. This server allows you to manage courses, assignments, enrollments, and grades within Canvas.
A comprehensive Model Context Protocol (MCP) server for Canvas LMS with complete student and instructor functionality
Add to claude_desktop_config.json
:
{
"mcpServers": {
"canvas-mcp-server": {
"command": "npx",
"args": ["-y", "canvas-mcp-server"],
"env": {
"CANVAS_API_TOKEN": "your_token_here",
"CANVAS_DOMAIN": "your_school.instructure.com"
}
}
}
}
## Install globally
npm install -g canvas-mcp-server
## Configure
export CANVAS_API_TOKEN="your_token_here"
export CANVAS_DOMAIN="your_school.instructure.com"
## Run
canvas-mcp-server
docker run -d \
--name canvas-mcp \
-e CANVAS_API_TOKEN="your_token" \
-e CANVAS_DOMAIN="school.instructure.com" \
ghcr.io/dmontgomery40/mcp-canvas-lms:latest
"What assignments do I have due this week?"
Lists upcoming assignments with due dates, points, and submission status
"Help me submit my essay for English 101 Assignment 3"
Guides through text submission with formatting options
"What's my current grade in Biology?"
Shows current scores, grades, and assignment feedback
"Show me the latest discussion posts in my Philosophy class"
Displays recent discussion topics and enables posting responses
"What modules do I need to complete in Math 200?"
Shows module completion status and next items to complete
git clone https://github.com/DMontgomery40/mcp-canvas-lms.git
cd mcp-canvas-lms
cp .env.example .env
## Edit .env with your Canvas credentials
docker-compose up -d
kubectl create secret generic canvas-mcp-secrets \
--from-literal=CANVAS_API_TOKEN="your_token" \
--from-literal=CANVAS_DOMAIN="school.instructure.com"
kubectl apply -f k8s/
## Check application health
curl http://localhost:3000/health
## Or use the built-in health check
npm run health-check
## Setup development environment
git clone https://github.com/DMontgomery40/mcp-canvas-lms.git
cd mcp-canvas-lms
npm install
## Start development with hot reload
npm run dev:watch
## Run tests
npm run test
npm run coverage
## Code quality
npm run lint
npm run type-check
canvas_health_check
- Check API connectivitycanvas_list_courses
- List all your coursescanvas_get_course
- Get detailed course infocanvas_list_assignments
- List course assignmentscanvas_get_assignment
- Get assignment detailscanvas_submit_assignment
- Submit assignment workcanvas_get_submission
- Check submission statuscanvas_list_modules
- List course modulescanvas_mark_module_item_complete
- Mark items completecanvas_list_discussions
- List discussion topicscanvas_post_to_discussion
- Post to discussionscanvas_list_announcements
- List course announcementscanvas_get_user_grades
- Get your gradescanvas_get_dashboard
- Get dashboard infocanvas_get_upcoming_assignments
- Get due datescanvas_list_calendar_events
- List calendar eventscanvas_list_files
- List course filescanvas_list_pages
- List course pagescanvas_get_page
- Get page contentcanvas_list_conversations
- List messagescanvas_create_conversation
- Send messagescanvas_create_course
- Create new coursescanvas_update_course
- Update course settingscanvas_create_assignment
- Create assignmentscanvas_update_assignment
- Update assignmentscanvas_submit_grade
- Grade submissionscanvas_enroll_user
- Enroll studentscanvas_create_quiz
- Create quizzescanvas_update_quiz
- Update quizzesStudent: “I need to check my upcoming assignments and submit my English essay”
Claude: I’ll help you check your upcoming assignments and then assist with submitting your English essay. Let me start by getting your upcoming assignments…
[Claude uses canvas_get_upcoming_assignments
then helps with canvas_submit_assignment
]
Student: “What’s my current grade in Biology and what assignments am I missing?”
Claude: I’ll check your Biology grades and identify any missing assignments…
[Claude uses canvas_get_course_grades
and canvas_list_assignments
with submission status]
Common Issues:
CANVAS_TIMEOUT
or check network connectivityDebug Mode:
export LOG_LEVEL=debug
npm start
Health Check:
npm run health-check
We welcome contributions! See CONTRIBUTING.md for guidelines.
git clone https://github.com/DMontgomery40/mcp-canvas-lms.git
cd mcp-canvas-lms
npm install
npm run dev:watch
## Make changes, add tests, submit PR
MIT License - see LICENSE file for details.
⭐ Star this repo if it helps you! ⭐