Canvas Mcp
Read-only MCP server that connects Claude, ChatGPT and other AI assistants to Canvas LMS.
English | 简体中文
A read-only Model Context Protocol server for Canvas LMS. Deploy it once, add it as a custom connector in Claude or ChatGPT, and ask questions about your courses in plain language:
What's due this week, and which of it have I already submitted? What do I need on the final to keep an A in CS 225? Summarize the announcements from the last two weeks. Did the TA leave any comments on my last lab?
Every one of the 26 tools issues GET requests only. The server cannot submit, post, delete or mark anything as read, so even a leaked connector URL only exposes what you could already see.
Contents
- Features
- Tools
- How it works
- Quick start
- Connecting a client
- Configuration
- Security
- Limitations
- Development
- Contributing
- License
Features
- Every tool is read-only. No write endpoints are wrapped, and inbox threads and discussions are fetched without marking them as read.
- The tools are built around the questions students actually ask: deadlines across all courses, missing work, grade weights, feedback and syllabus policies.
- Output is compact. Canvas HTML becomes plain text, and responses keep only the fields a model needs.
- It runs remotely over Streamable HTTP, so it works in web and mobile clients, not only desktop apps.
- It's stateless. Each request gets a fresh server instance, and nothing is cached or stored.
- Three runtime dependencies, no build step, no database.
Tools
| Area | Tool | What it returns |
|---|---|---|
| Courses | list_courses |
Active courses with IDs, codes and terms |
get_syllabus |
Syllabus text | |
get_front_page |
Course home page text | |
list_modules |
Modules and the items inside each | |
list_pages / get_page |
Wiki pages and their contents | |
list_course_staff |
Instructors and TAs, with email when visible | |
list_groups |
Your project / lab groups | |
| Coursework | get_upcoming |
Everything due in the next N days, with submission status |
get_todo |
Canvas To Do list | |
get_missing |
Past-due work you haven't submitted | |
list_assignments / get_assignment |
Assignments, instructions, rubric, your score and feedback | |
list_quizzes / get_quiz |
Classic Quizzes, settings and your attempts | |
get_calendar_events |
Lectures, exams and office hours from the calendar | |
| Grades | get_grades |
Current and final score in every course |
get_grade_breakdown |
Assignment groups, weights, drop rules and every score | |
| Files | list_files / get_file |
Course files; text-based files are returned inline |
| Communication | get_announcements |
Recent announcements across courses |
list_discussions / get_discussion |
Discussion topics and reply threads (150 replies per page) | |
list_inbox / get_inbox_message |
Inbox conversations and messages | |
get_recent_activity |
Activity stream: new grades, comments, replies |
Parameters and output fields for each tool are documented in docs/tools.md.
How it works
flowchart LR
A[Claude / ChatGPT] -- "MCP over HTTPS<br/>/<MCP_SECRET>/mcp" --> B[canvas-mcp]
B -- "GET /api/v1/...<br/>Bearer CANVAS_API_TOKEN" --> C[Canvas LMS]
The AI client calls the server at a URL that contains a long random secret. The server checks the secret in constant time, translates the tool call into one or more Canvas REST API GET requests using your personal access token, follows pagination, and returns a trimmed JSON result. The Canvas token never leaves the server.
Quick start
1. Create a Canvas access token
From the project's README.