canvas-mcp

canvas-mcp

Enables managing Canvas LMS courses, assignments, grades, modules, and more from MCP-compatible clients like Claude Desktop, Kiro, or Amazon Q Developer.

Category
Visit Server

README

Collaboration

Thanks for your interest in our solution. Having specific examples of replication and usage allows us to continue to grow and scale our work. If you clone or use this repository, kindly shoot us a quick email to let us know you are interested in this work!

wwps-cic@amazon.com

Disclaimers

Customers are responsible for making their own independent assessment of the information in this document.

This document:

Customers are responsible for making their own independent assessment of the information in this document.

This document:

(a) is for informational purposes only,

(b) references AWS product offerings and practices, which are subject to change without notice,

(c) does not create any commitments or assurances from AWS and its affiliates, suppliers or licensors. AWS products or services are provided “as is” without warranties, representations, or conditions of any kind, whether express or implied. The responsibilities and liabilities of AWS to its customers are controlled by AWS agreements, and this document is not part of, nor does it modify, any agreement between AWS and its customers, and

(d) is not to be considered a recommendation or viewpoint of AWS.

Additionally, you are solely responsible for testing, security and optimizing all code and assets on GitHub repo, and all such code and assets should be considered:

(a) as-is and without warranties or representations of any kind,

(b) not suitable for production environments, or on production or other critical data, and

(c) to include shortcuts in order to support rapid prototyping such as, but not limited to, relaxed authentication and authorization and a lack of strict adherence to security best practices.

All work produced is open source. More information can be found in the GitHub repo.

Canvas MCP Server

A local MCP server that lets you manage Canvas LMS — courses, assignments, grades, modules, and more — from any MCP-compatible client like Claude Desktop, Kiro, or Amazon Q Developer.


Quick Start

1. Get a Canvas API Token

  1. Log in to your Canvas instance
  2. Go to Account → Settings
  3. Scroll to Approved Integrations and click + New Access Token
  4. Give it a name, click Generate Token, and copy it

2. Install

git clone https://github.com/cal-poly-dxhub/canvas-mcp && cd canvas-mcp
pip install .

3. Run (standalone / local testing only)

If you're using an MCP client like Kiro, Claude Code, or Claude Desktop, skip this step. The client launches the server automatically.

export CANVAS_API_TOKEN="your-token-here"
export CANVAS_BASE_URL="https://myschool.instructure.com"
canvas-mcp

The server is now listening on stdio for MCP messages.


Kiro

Add to your Kiro MCP configuration:

{
  "mcpServers": {
    "canvas": {
      "command": "/path/to/venv/bin/canvas-mcp",
      "env": {
        "CANVAS_API_TOKEN": "your-token-here",
        "CANVAS_BASE_URL": "https://myschool.instructure.com"
      }
    }
  }
}

Run the new agent under kiro-cli as follows

kiro-cli --agent canvas-agent

Note: You do not need to manually export environment variables or start the server. Kiro automatically launches the MCP server and injects the credentials from the env block above.

Claude Code

claude mcp add canvas -- canvas-mcp

Set credentials before launching, since Claude Code inherits environment variables from your shell:

export CANVAS_API_TOKEN="your-token-here"
export CANVAS_BASE_URL="https://myschool.instructure.com"
claude

Connect to Your MCP Client

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "canvas": {
      "command": "canvas-mcp",
      "env": {
        "CANVAS_API_TOKEN": "your-token-here",
        "CANVAS_BASE_URL": "https://myschool.instructure.com"
      }
    }
  }
}

Tip: If you installed into a virtualenv, use the full path to the canvas-mcp binary, e.g. "/path/to/venv/bin/canvas-mcp".


Available Tools

Student

Tool Description
list_upcoming_assignments Upcoming assignments across all courses (1–60 days ahead)
list_course_assignments List all assignments in a course (id, name, due date, points)
check_submission_status Check if you've submitted a specific assignment
view_my_grades Your grades for all assignments in a course
view_todo_list Your Canvas TODO list
schedule_canvas_event Create a calendar event (study blocks, review sessions)

Instructor

Tool Description
get_my_courses List your active courses
find_course_files Search or list files in a course
list_course_modules List all modules in a course (id, name, position, item count)
create_course_module Create a new module
add_item_to_module Add an item to an existing module
create_course_assignment Create an assignment (draft by default)
post_course_announcement Post an announcement to a course
create_course_page Create a wiki/content page (draft by default)
get_assignment_grade_summary Grade stats: submitted, graded, missing, avg/high/low

Example Workflows

Student: "What's due this week?"

"Show me everything that's due in the next 7 days."

The agent calls: list_upcoming_assignments(days_ahead=7) → returns assignments sorted by due date across all courses

Student: "Did I turn in my homework?"

"Did I submit the Lab 3 assignment for CS 101?"

The agent calls: get_my_courseslist_course_assignments(course_id)check_submission_status(course_id, assignment_id) → returns submitted_at, late, missing, score

Student: "How am I doing in this class?"

"What are my grades in Math 200?"

The agent calls: get_my_coursesview_my_grades(course_id) → returns all assignment scores, late/missing flags

Student: "What do I need to work on?"

"What's on my Canvas TODO list?"

The agent calls: view_todo_list() → returns unsubmitted assignments and other items needing attention

Student: "Schedule study time for my midterm"

"Block off 2 hours on Saturday afternoon to study for my CS 101 midterm."

The agent calls: schedule_canvas_event(title="CS 101 Midterm Study", start_at="...", end_at="...")

Instructor: Build a course module in one prompt

"Create a 'Week 7 — Neural Networks' module in my CS 301 course with a reading page on backpropagation and a homework assignment worth 50 points due next Friday."

The agent chains: get_my_coursescreate_course_modulecreate_course_pagecreate_course_assignmentadd_item_to_module × 2

Instructor: Check assignment grades

"How did students do on the Week 3 Problem Set in Math 200?"

The agent calls: get_my_courseslist_course_assignments(course_id)get_assignment_grade_summary → returns avg, high, low, submission count, missing count

Instructor: Find course files

"Find the syllabus in my English 102 course."

The agent calls: get_my_coursesfind_course_files(search_term="syllabus")

Instructor: Post an announcement

"Remind my Biology 101 students that the midterm is next Wednesday and to review chapters 5–8."

The agent calls: get_my_coursespost_course_announcement


Requirements

  • Python 3.10+
  • A Canvas LMS instance with API access
  • A valid Canvas API token

License

MIT-0

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured