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
访问服务器

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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选