Skip to main content
Glama

Canvas MCP Server

A Model Context Protocol (MCP) server providing read-only access to Canvas LMS for student workflows, with optional NotebookLM integration for study material organization.

Features

  • 45 Tools covering Canvas LMS functionality

  • Read-only access - Safe for student use

  • Smart caching - Reduces API calls

  • Rate limiting - Respects Canvas API limits (~3000 req/hour)

  • NotebookLM integration - Upload course content for AI-powered study

Quick Start

1. Install Dependencies

npm install
npm run build

2. Configure Environment

cp .env.example .env
# Edit .env with your Canvas credentials

Required settings:

  • CANVAS_BASE_URL - Your Canvas instance URL

  • CANVAS_API_TOKEN - Generate at Canvas > Account > Settings > New Access Token

3. Add to Claude Code

Add to your Claude Code MCP configuration (~/.claude/claude_desktop_config.json):

{
  "mcpServers": {
    "canvas": {
      "command": "node",
      "args": ["dist/index.js"],
      "cwd": "/path/to/canvas-mcp-server",
      "env": {
        "CANVAS_BASE_URL": "https://your-school.instructure.com",
        "CANVAS_API_TOKEN": "your_token_here"
      }
    }
  }
}

4. (Optional) Setup NotebookLM

For NotebookLM integration:

cd src/python-bridge
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
playwright install chromium

Then use notebooklm_auth_setup tool for interactive Google login.

Available Tools (45 total)

Phase 1: Core (5 tools)

Tool

Description

canvas_course_list

List enrolled courses

canvas_course_get

Get course details

canvas_assignment_list

List assignments (with bucket filtering)

canvas_assignment_get

Get assignment details

canvas_get_my_submission

Get your submission for an assignment

Phase 2: Content (16 tools)

Tool

Description

canvas_module_list

List course modules

canvas_module_get

Get module details

canvas_module_items

List items in a module

canvas_module_progress

Get module completion progress

canvas_file_list

List files in a folder

canvas_file_get

Get file metadata

canvas_file_search

Search for files

canvas_folder_list

List folders

canvas_file_download

Download file content

canvas_discussion_list

List discussions

canvas_discussion_get

Get discussion with replies

canvas_announcement_list

List announcements

canvas_planner_items

Get planner items

canvas_todo_list

Get todo items

canvas_upcoming_events

Get upcoming events

canvas_missing_submissions

Get missing assignments

Phase 3: Assessment (8 tools)

Tool

Description

canvas_rubric_list

List rubrics in a course

canvas_rubric_get

Get rubric details

canvas_rubric_for_assignment

Get rubric for an assignment

canvas_quiz_list

List quizzes

canvas_quiz_get

Get quiz details

canvas_quiz_submission

Get your quiz submission

canvas_group_list

List your groups

canvas_group_members

List group members

Phase 4: User (11 tools)

Tool

Description

canvas_bookmark_list

List your bookmarks

canvas_bookmark_create

Create a bookmark

canvas_bookmark_delete

Delete a bookmark

canvas_inbox_list

List inbox messages

canvas_inbox_get

Get conversation details

canvas_inbox_unread_count

Get unread message count

canvas_notification_list

List notifications

canvas_dashboard

Comprehensive dashboard view

canvas_profile

Get your profile

canvas_grades_overview

Get grades across courses

canvas_cache_status

View/clear cache

Phase 5: NotebookLM (5 tools)

Tool

Description

notebooklm_auth_check

Check Google auth status

notebooklm_auth_setup

Interactive Google login

notebooklm_list_notebooks

List NotebookLM notebooks

notebooklm_upload_sources

Upload sources to notebook

notebooklm_prepare_content

Convert/split files for upload

Authentication

Canvas API (Primary)

  • API Token: Required for all API calls

  • Generate at: Canvas > Account > Settings > New Access Token

  • Provides access to your enrolled courses, assignments, grades, etc.

Cookies (Secondary, Optional)

  • Only needed if file downloads return 403 errors

  • Export browser cookies using extensions like "Get cookies.txt"

  • Set CANVAS_COOKIES_FILE in your environment

NotebookLM (Interactive)

  • Uses Playwright browser automation (no public API exists)

  • Run notebooklm_auth_setup once to save Google session

  • Session persists in src/python-bridge/state.json

Architecture

canvas-mcp-server/
├── src/
│   ├── core/
│   │   ├── auth.ts        # Token + cookie authentication
│   │   ├── cache.ts       # Memory cache with TTL
│   │   ├── client.ts      # Canvas API client
│   │   ├── pagination.ts  # Link header parsing
│   │   └── rate-limiter.ts # Token bucket rate limiter
│   ├── tools/
│   │   ├── courses.ts     # Course tools
│   │   ├── assignments.ts # Assignment tools
│   │   ├── modules.ts     # Module tools
│   │   ├── files.ts       # File tools
│   │   ├── discussions.ts # Discussion tools
│   │   ├── planner.ts     # Planner tools
│   │   ├── rubrics.ts     # Rubric tools
│   │   ├── quizzes.ts     # Quiz tools
│   │   ├── groups.ts      # Group tools
│   │   ├── bookmarks.ts   # Bookmark tools
│   │   ├── communication.ts # Inbox/notification tools
│   │   ├── dashboard.ts   # Dashboard tools
│   │   └── notebooklm.ts  # NotebookLM tools
│   ├── python-bridge/
│   │   ├── notebooklm_auth.py   # Google auth management
│   │   ├── notebooklm_upload.py # Source upload automation
│   │   └── requirements.txt     # Python dependencies
│   ├── types/
│   │   └── canvas.ts      # TypeScript types
│   ├── server.ts          # MCP server
│   └── index.ts           # Entry point
├── .env.example           # Environment template
├── mcp.json               # MCP configuration
└── package.json

Rate Limits

Canvas API allows ~3000 requests per hour. This server implements:

  • Token bucket rate limiter (0.8 req/sec default)

  • Smart caching (5-30 min TTL per resource type)

  • Automatic retry with backoff on 429 responses

License

MIT

Available Tools

45 tools
canvas_announcement_listB

List announcements across courses.

Returns:

  • Announcement titles and content

  • Post dates

  • Course context

Use this to stay updated on course announcements.

Inputs: course_ids (required), start_date.

canvas_assignment_getC

Get detailed information about a specific assignment.

Returns:

  • Full description and instructions

  • Due date, points possible

  • Submission types allowed

  • Rubric criteria (if available)

  • Your submission status

Inputs: course_id (required), assignment_id (required), include_rubric.

canvas_assignment_listA

List assignments in a course with optional filtering.

Bucket filters:

  • past: Already due

  • overdue: Past due, not submitted

  • undated: No due date

  • unsubmitted: Not yet submitted

  • upcoming: Due soon

  • future: Due later

Use this to:

  • See upcoming deadlines

  • Find overdue assignments

  • Get assignment IDs for detailed views

Inputs: course_id (required), bucket, order_by, include_submission.

canvas_bookmark_createB

Create a new bookmark.

Add a quick-access link to any Canvas page.

Requires:

  • Name for the bookmark

  • URL to bookmark

Inputs: name (required), url (required).

canvas_bookmark_deleteC

Delete a bookmark.

Remove a bookmark from your list.

Inputs: bookmark_id (required).

canvas_bookmark_listA

List all your Canvas bookmarks.

Bookmarks provide quick access to frequently used pages.

Returns:

  • Bookmark names

  • Target URLs

  • Position/order

Inputs: no named parameters.

canvas_cache_statusB

Get cache status and statistics.

Shows:

  • Number of cached items

  • Cache keys

  • Useful for debugging

Inputs: clear.

canvas_course_getB

Get detailed information about a specific course.

Returns:

  • Course name, code, term

  • Start/end dates

  • Syllabus (if requested)

  • Total students count

Inputs: course_id (required), include_syllabus.

canvas_course_listA

List all courses for the current user. Returns active courses by default.

Use this to:

  • Get an overview of enrolled courses

  • Find course IDs for other operations

  • Check enrollment status

Inputs: enrollment_state, include_favorites.

canvas_dashboardB

Get a comprehensive dashboard view of your Canvas activity.

Aggregates:

  • Upcoming assignments (next 7 days)

  • Missing submissions

  • Unread messages

  • Recent announcements

  • Course favorites

This is the best starting point for a study session.

Inputs: no named parameters.

canvas_discussion_getB

Get a specific discussion with all replies.

Returns:

  • Full discussion topic

  • All replies (threaded)

  • Author information

Use this to read and understand a discussion.

Inputs: course_id (required), topic_id (required).

canvas_discussion_listA

List all discussion topics in a course.

Returns:

  • Discussion titles and messages

  • Post counts and unread counts

  • Whether pinned or locked

Use this to:

  • Find discussions to participate in

  • See what's being discussed

  • Check for unread posts

Inputs: course_id (required), only_unread.

canvas_file_downloadA

Download a file from Canvas.

NOTE: Requires browser cookies to be configured. Canvas blocks file downloads with API tokens only.

Returns:

  • Success/failure status

  • File data (if successful)

  • Error message (if failed)

Inputs: file_url, file_id.

canvas_file_getC

Get detailed information about a specific file.

Returns:

  • Full filename and display name

  • File size and content type

  • Download URL

  • Thumbnail URL (if image)

Inputs: file_id (required).

canvas_file_listA

List all files in a course.

Returns:

  • File name and size

  • Content type

  • Download URL

  • Creation/update dates

Use this to:

  • Browse course materials

  • Find documents to download

  • Get file IDs for other operations

Inputs: course_id (required), sort_by.

canvas_folder_listB

List all folders in a course.

Returns folder hierarchy:

  • Folder names and paths

  • Number of files in each folder

  • Number of subfolders

Use this to navigate the file structure.

Inputs: course_id (required).

canvas_get_my_submissionC

Get your submission for a specific assignment.

Returns:

  • Submission status (submitted, graded, etc.)

  • Score and grade

  • Submission comments

  • Rubric assessment (if graded with rubric)

  • Submitted files or text

Inputs: course_id (required), assignment_id (required), include_rubric_assessment, include_comments.

canvas_grades_overviewB

Get an overview of your grades across all courses.

Returns:

  • Current grade in each course

  • Final grade if available

  • GPA calculation help

Inputs: no named parameters.

canvas_group_listA

List all groups you are a member of.

Returns:

  • Group names and descriptions

  • Member counts

  • Associated courses

Groups are used for:

  • Group projects

  • Study groups

  • Peer review assignments

Inputs: no named parameters.

canvas_group_membersB

List members of a specific group.

Returns:

  • Member names

  • Profile information

  • Contact details (if shared)

Use to see who is in your group for collaboration.

Inputs: group_id (required).

canvas_inbox_getA

Get a specific conversation with all messages.

Returns:

  • Full conversation thread

  • All messages with timestamps

  • Attachments information

  • Participant details

Inputs: conversation_id (required).

canvas_inbox_listA

List your Canvas inbox conversations.

Returns:

  • Conversation subjects

  • Last message preview

  • Participants

  • Read/unread status

Use to check messages from instructors and classmates.

Inputs: filter.

canvas_inbox_unread_countA

Get count of unread messages.

Quick check for new messages without loading full inbox.

Inputs: no named parameters.

canvas_missing_submissionsB

Get all missing submissions across courses.

Returns:

  • Assignments you haven't submitted

  • Due dates (past)

  • Course context

  • Points possible

Critical for finding overdue work!

Inputs: no named parameters.

canvas_module_getB

Get detailed information about a specific module.

Returns:

  • Module name and position

  • Prerequisites required

  • Completion requirements

  • All items in the module

Inputs: course_id (required), module_id (required).

canvas_module_itemsA

List all items within a specific module.

Returns detailed information about each item:

  • Type (Assignment, Page, File, Quiz, etc.)

  • Title and URL

  • Completion requirements

  • Whether completed

Inputs: course_id (required), module_id (required).

canvas_module_listA

List all modules in a course with their items and completion status.

Modules organize course content into logical sections. Each module can contain:

  • Assignments

  • Pages

  • Files

  • Quizzes

  • Discussions

  • External links

Use this to:

  • See course structure and organization

  • Track module completion progress

  • Find specific content within modules

Inputs: course_id (required), include_items.

canvas_module_progressC

Get your progress through course modules.

Returns:

  • Which modules are completed

  • Which are in progress

  • Which are locked

  • Requirements remaining

Inputs: course_id (required).

canvas_notification_listB

List account notifications/announcements.

Returns system-wide announcements from your institution:

  • Important notices

  • System maintenance alerts

  • Policy updates

Inputs: no named parameters.

canvas_planner_itemsA

Get planner items - your upcoming assignments, quizzes, discussions, and events.

Returns:

  • Due dates and times

  • Course context

  • Submission status

  • Completion status

This is the best tool for:

  • Seeing what's due soon

  • Planning your week

  • Finding overdue items

Inputs: start_date, end_date, filter.

canvas_profileB

Get your Canvas user profile.

Returns:

  • Your name and email

  • Profile settings

  • Avatar URL

Inputs: no named parameters.

canvas_quiz_getA

Get detailed information about a specific quiz.

Returns:

  • Full description

  • Time limit and attempts

  • Due date, lock dates

  • Question count

  • Quiz type (practice, graded, survey)

Note: Cannot retrieve actual quiz questions via API.

Inputs: course_id (required), quiz_id (required).

canvas_quiz_listA

List all quizzes in a course.

Returns:

  • Quiz titles and descriptions

  • Due dates and time limits

  • Number of questions

  • Points possible

  • Allowed attempts

Use this to:

  • See upcoming quizzes

  • Find quiz IDs for details

  • Check quiz settings

Inputs: course_id (required).

canvas_quiz_submissionC

Get your submission/attempt for a quiz.

Returns:

  • Attempt number

  • Score and kept score

  • Started/finished times

  • Workflow state

Use to check your quiz results.

Inputs: course_id (required), quiz_id (required).

canvas_rubric_for_assignmentA

Get the rubric attached to a specific assignment.

Directly retrieves the grading criteria for an assignment. More convenient than finding rubric ID separately.

Inputs: course_id (required), assignment_id (required).

canvas_rubric_getB

Get detailed rubric with all criteria and ratings.

Returns:

  • All criteria descriptions

  • Point values for each criterion

  • Rating descriptions and points

  • Any free-form comment settings

Essential for understanding how work will be graded.

Inputs: course_id (required), rubric_id (required).

canvas_rubric_listA

List all rubrics in a course.

Rubrics define grading criteria for assignments. Returns:

  • Rubric titles and descriptions

  • Points possible

  • Number of criteria

Use this to:

  • See grading standards for a course

  • Find rubric IDs for detailed views

Inputs: course_id (required).

canvas_todo_listB

Get your TODO list items that need attention.

Returns items needing action:

  • Assignments to submit

  • Items to grade (if instructor)

  • Unread discussions

Use this for a quick view of what needs immediate attention.

Inputs: course_id.

canvas_upcoming_eventsB

Get upcoming calendar events.

Returns:

  • Assignment due dates

  • Calendar events

  • Quizzes

  • Other scheduled items

Different from planner in that it shows calendar-based view.

Inputs: no named parameters.

notebooklm_auth_checkA

Check NotebookLM authentication status.

Returns whether a valid Google authentication session exists. If not authenticated, you'll need to run notebooklm_auth_setup.

Inputs: no named parameters.

notebooklm_auth_setupA

Setup NotebookLM authentication.

IMPORTANT: This requires manual interaction!

  • Opens a browser window for Google login

  • User must log in to their Google account

  • After logging in and seeing NotebookLM, press Enter in the terminal

  • Session is saved for future automated use

This only needs to be done once (session persists).

Inputs: no named parameters.

notebooklm_list_notebooksA

List all notebooks in NotebookLM.

Requires authentication (run notebooklm_auth_setup first if needed).

Returns a list of notebook titles.

Inputs: no named parameters.

notebooklm_prepare_contentA

Prepare content for NotebookLM upload.

Converts and splits content to meet NotebookLM requirements:

  • Converts markdown to plain text if needed

  • Splits large files into ~400KB chunks (under 500KB limit)

  • Creates numbered part files

Returns paths to prepared files ready for upload.

Inputs: input_path (required), output_dir, max_size_kb.

notebooklm_upload_sourcesA

Upload sources to a NotebookLM notebook.

Uploads website URLs or files to a specified notebook. Creates the notebook if it doesn't exist.

Source types:

  • website: Provide a URL

  • file: Provide an absolute file path (PDF, TXT, etc.)

Example sources: [ {"type": "website", "value": "https://example.com/article"}, {"type": "file", "value": "/path/to/document.pdf"} ]

Limits: ~500KB per source, 50-300 sources per notebook.

Inputs: notebook_name (required), sources (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 45 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific Canvas resources (e.g., assignments, discussions, files), but some overlap exists. For instance, canvas_assignment_list and canvas_planner_items both help track upcoming assignments, and canvas_missing_submissions overlaps with assignment filtering. The NotebookLM tools are clearly separate but unrelated to Canvas, creating a minor domain split.

    Naming Consistency5/5

    Tool names follow a highly consistent snake_case pattern with clear verb_noun structure (e.g., canvas_assignment_get, canvas_discussion_list). The Canvas tools all start with 'canvas_' and the NotebookLM tools with 'notebooklm_', maintaining perfect internal consistency within each domain subset.

    Tool Count2/5

    With 45 tools, the count is excessive for a single server. While Canvas is a complex platform, many tools could be consolidated (e.g., multiple assignment-related tools) or parameterized. The inclusion of unrelated NotebookLM authentication tools further bloats the count without clear integration.

    Completeness4/5

    The Canvas tools provide comprehensive coverage for student workflows, including assignments, discussions, files, grades, and modules. However, there are gaps in write operations (e.g., no tools to submit assignments, post to discussions, or upload files) and instructor-specific actions. The NotebookLM tools are minimal but functional for their limited scope.

    Related MCP Connectors