Canvas MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add --transport http -H "Authorization: Bearer YOUR_MCP_TOKEN_HERE" canvas-mcp-30af https://canvas.dunkirk.sh/mcp
Required:ENCRYPTION_KEY
README.md

Connects Canvas LMS to AI assistants for course and assignment management.

Canvas MCP Server

This is a stream http transport Canvas LMS mcp server. A nice fancy bit of goblygook that just means its a remote integration you can plug into chatgpt, claude, poke, or anywhere else that supports mcp. If you want to try the hosted version its over at canvas.dunkirk.sh or feel free to self host!

Quick Start

# Install dependencies
bun install

# Generate encryption key
bun run generate-key

# Copy and configure environment
cp .env.example .env
# Add the generated encryption key to .env

# Run development server
bun dev

Visit http://localhost:3000 to connect your Canvas account.

MCP Tools

  • list_courses: List Canvas courses with enrollment filtering
  • search_assignments: Search assignments across courses
  • get_assignment: Get detailed assignment information

Client Configuration

After connecting your Canvas account, add this to Claude Desktop config:

{
  "mcpServers": {
    "canvas": {
      "url": "https://canvas.dunkirk.sh/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MCP_TOKEN_HERE"
      }
    }
  }
}

Security

  • Canvas tokens encrypted with AES-256-GCM before storage
  • MCP tokens hashed with Argon2id (cannot be retrieved after creation)
  • No Canvas tokens exposed to MCP clients

The canonical repo is hosted on tangled at `knot.dunkirk.sh/canvas-mcp`

<i><code>&copy; 2026-present Kieran Klukas</code></i>

Tools (3)

list_coursesList Canvas courses with enrollment filtering
search_assignmentsSearch assignments across courses
get_assignmentGet detailed assignment information

Environment Variables

ENCRYPTION_KEYrequiredKey used for AES-256-GCM encryption of Canvas tokens

Configuration

claude_desktop_config.json
{"mcpServers": {"canvas": {"url": "https://canvas.dunkirk.sh/mcp", "headers": {"Authorization": "Bearer YOUR_MCP_TOKEN_HERE"}}}}

Try it

List all my current courses in Canvas.
Search for assignments due this week across all my courses.
Get the details for the final project assignment in my Data Science course.
What assignments do I have pending in my History class?

Frequently Asked Questions

What are the key features of Canvas MCP?

List Canvas courses with enrollment filtering. Search for assignments across multiple courses. Retrieve detailed assignment information. Secure multi-institution support. Encrypted token storage using AES-256-GCM.

What can I use Canvas MCP for?

Students checking upcoming assignment deadlines via natural language queries.. Managing course workloads by listing and filtering active enrollments.. Quickly retrieving specific assignment instructions or details without navigating the LMS UI..

How do I install Canvas MCP?

Install Canvas MCP by running: bun install && bun run generate-key

What MCP clients work with Canvas MCP?

Canvas MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Canvas MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare