C

Canvas Readonly MCP

by rbrtlol · io.github.rbrtlol/canvas-readonly-mcp

Read-only Canvas LMS MCP server for students: see what changed in your courses since yesterday and search every lecture slide and PDF.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-rbrtlol-canvas-readonly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "canvas-readonly-mcp"
      ],
      "env": {
        "CANVAS_BASE_URL": "<VALUE>",
        "CANVAS_TOKEN": "<YOUR_VALUE>",
        "CANVAS_HOST_ALIASES": "<VALUE>",
        "HOST": "127.0.0.1",
        "PORT": "8787",
        "DB_PATH": "<VALUE>",
        "DATA_DIR": "<VALUE>",
        "CACHE_DIR": "<VALUE>",
        "DISPLAY_TZ": "<VALUE>",
        "MCP_SECRET": "<VALUE>",
        "MAX_FILE_MB": "50",
        "SNAPSHOT_AT": "04:30",
        "CACHE_MAX_MB": "500",
        "ENABLE_RAW_GET": "true",
        "SNAPSHOT_SCOPE": "dashboard",
        "CRAWL_MAX_PAGES": "200",
        "SNAPSHOT_COURSES": "<VALUE>",
        "SNAPSHOT_ENABLED": "true",
        "SNAPSHOT_EXCLUDE": "<VALUE>",
        "SNAPSHOT_EXTRACT": "linked",
        "ANNOUNCEMENT_DAYS": "730",
        "EXTRACT_MAX_PAGES": "500",
        "EXTRACT_TIMEOUT_S": "60",
        "DOWNLOAD_TIMEOUT_S": "60",
        "SNAPSHOT_MAX_AGE_H": "20",
        "EVENT_RETENTION_DAYS": "120"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-rbrtlol-canvas-readonly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "canvas-readonly-mcp"
      ],
      "env": {
        "CANVAS_BASE_URL": "<VALUE>",
        "CANVAS_TOKEN": "<YOUR_VALUE>",
        "CANVAS_HOST_ALIASES": "<VALUE>",
        "HOST": "127.0.0.1",
        "PORT": "8787",
        "DB_PATH": "<VALUE>",
        "DATA_DIR": "<VALUE>",
        "CACHE_DIR": "<VALUE>",
        "DISPLAY_TZ": "<VALUE>",
        "MCP_SECRET": "<VALUE>",
        "MAX_FILE_MB": "50",
        "SNAPSHOT_AT": "04:30",
        "CACHE_MAX_MB": "500",
        "ENABLE_RAW_GET": "true",
        "SNAPSHOT_SCOPE": "dashboard",
        "CRAWL_MAX_PAGES": "200",
        "SNAPSHOT_COURSES": "<VALUE>",
        "SNAPSHOT_ENABLED": "true",
        "SNAPSHOT_EXCLUDE": "<VALUE>",
        "SNAPSHOT_EXTRACT": "linked",
        "ANNOUNCEMENT_DAYS": "730",
        "EXTRACT_MAX_PAGES": "500",
        "EXTRACT_TIMEOUT_S": "60",
        "DOWNLOAD_TIMEOUT_S": "60",
        "SNAPSHOT_MAX_AGE_H": "20",
        "EVENT_RETENTION_DAYS": "120"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-rbrtlol-canvas-readonly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "canvas-readonly-mcp"
      ],
      "env": {
        "CANVAS_BASE_URL": "<VALUE>",
        "CANVAS_TOKEN": "<YOUR_VALUE>",
        "CANVAS_HOST_ALIASES": "<VALUE>",
        "HOST": "127.0.0.1",
        "PORT": "8787",
        "DB_PATH": "<VALUE>",
        "DATA_DIR": "<VALUE>",
        "CACHE_DIR": "<VALUE>",
        "DISPLAY_TZ": "<VALUE>",
        "MCP_SECRET": "<VALUE>",
        "MAX_FILE_MB": "50",
        "SNAPSHOT_AT": "04:30",
        "CACHE_MAX_MB": "500",
        "ENABLE_RAW_GET": "true",
        "SNAPSHOT_SCOPE": "dashboard",
        "CRAWL_MAX_PAGES": "200",
        "SNAPSHOT_COURSES": "<VALUE>",
        "SNAPSHOT_ENABLED": "true",
        "SNAPSHOT_EXCLUDE": "<VALUE>",
        "SNAPSHOT_EXTRACT": "linked",
        "ANNOUNCEMENT_DAYS": "730",
        "EXTRACT_MAX_PAGES": "500",
        "EXTRACT_TIMEOUT_S": "60",
        "DOWNLOAD_TIMEOUT_S": "60",
        "SNAPSHOT_MAX_AGE_H": "20",
        "EVENT_RETENTION_DAYS": "120"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-rbrtlol-canvas-readonly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "canvas-readonly-mcp"
      ],
      "env": {
        "CANVAS_BASE_URL": "<VALUE>",
        "CANVAS_TOKEN": "<YOUR_VALUE>",
        "CANVAS_HOST_ALIASES": "<VALUE>",
        "HOST": "127.0.0.1",
        "PORT": "8787",
        "DB_PATH": "<VALUE>",
        "DATA_DIR": "<VALUE>",
        "CACHE_DIR": "<VALUE>",
        "DISPLAY_TZ": "<VALUE>",
        "MCP_SECRET": "<VALUE>",
        "MAX_FILE_MB": "50",
        "SNAPSHOT_AT": "04:30",
        "CACHE_MAX_MB": "500",
        "ENABLE_RAW_GET": "true",
        "SNAPSHOT_SCOPE": "dashboard",
        "CRAWL_MAX_PAGES": "200",
        "SNAPSHOT_COURSES": "<VALUE>",
        "SNAPSHOT_ENABLED": "true",
        "SNAPSHOT_EXCLUDE": "<VALUE>",
        "SNAPSHOT_EXTRACT": "linked",
        "ANNOUNCEMENT_DAYS": "730",
        "EXTRACT_MAX_PAGES": "500",
        "EXTRACT_TIMEOUT_S": "60",
        "DOWNLOAD_TIMEOUT_S": "60",
        "SNAPSHOT_MAX_AGE_H": "20",
        "EVENT_RETENTION_DAYS": "120"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-rbrtlol-canvas-readonly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "canvas-readonly-mcp"
      ],
      "env": {
        "CANVAS_BASE_URL": "<VALUE>",
        "CANVAS_TOKEN": "<YOUR_VALUE>",
        "CANVAS_HOST_ALIASES": "<VALUE>",
        "HOST": "127.0.0.1",
        "PORT": "8787",
        "DB_PATH": "<VALUE>",
        "DATA_DIR": "<VALUE>",
        "CACHE_DIR": "<VALUE>",
        "DISPLAY_TZ": "<VALUE>",
        "MCP_SECRET": "<VALUE>",
        "MAX_FILE_MB": "50",
        "SNAPSHOT_AT": "04:30",
        "CACHE_MAX_MB": "500",
        "ENABLE_RAW_GET": "true",
        "SNAPSHOT_SCOPE": "dashboard",
        "CRAWL_MAX_PAGES": "200",
        "SNAPSHOT_COURSES": "<VALUE>",
        "SNAPSHOT_ENABLED": "true",
        "SNAPSHOT_EXCLUDE": "<VALUE>",
        "SNAPSHOT_EXTRACT": "linked",
        "ANNOUNCEMENT_DAYS": "730",
        "EXTRACT_MAX_PAGES": "500",
        "EXTRACT_TIMEOUT_S": "60",
        "DOWNLOAD_TIMEOUT_S": "60",
        "SNAPSHOT_MAX_AGE_H": "20",
        "EVENT_RETENTION_DAYS": "120"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-rbrtlol-canvas-readonly-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "canvas-readonly-mcp"
      ],
      "env": {
        "CANVAS_BASE_URL": "<VALUE>",
        "CANVAS_TOKEN": "<YOUR_VALUE>",
        "CANVAS_HOST_ALIASES": "<VALUE>",
        "HOST": "127.0.0.1",
        "PORT": "8787",
        "DB_PATH": "<VALUE>",
        "DATA_DIR": "<VALUE>",
        "CACHE_DIR": "<VALUE>",
        "DISPLAY_TZ": "<VALUE>",
        "MCP_SECRET": "<VALUE>",
        "MAX_FILE_MB": "50",
        "SNAPSHOT_AT": "04:30",
        "CACHE_MAX_MB": "500",
        "ENABLE_RAW_GET": "true",
        "SNAPSHOT_SCOPE": "dashboard",
        "CRAWL_MAX_PAGES": "200",
        "SNAPSHOT_COURSES": "<VALUE>",
        "SNAPSHOT_ENABLED": "true",
        "SNAPSHOT_EXCLUDE": "<VALUE>",
        "SNAPSHOT_EXTRACT": "linked",
        "ANNOUNCEMENT_DAYS": "730",
        "EXTRACT_MAX_PAGES": "500",
        "EXTRACT_TIMEOUT_S": "60",
        "DOWNLOAD_TIMEOUT_S": "60",
        "SNAPSHOT_MAX_AGE_H": "20",
        "EVENT_RETENTION_DAYS": "120"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
CANVAS_BASE_URL Yes Your Canvas address, e.g. https://canvas.yourschool.edu or https://yourschool.instructure.com.
CANVAS_TOKEN secret Yes Your Canvas personal access token.
CANVAS_HOST_ALIASES No Other hostnames of the same Canvas, comma-separated (e.g. yourschool.instructure.com when you use a custom domain). Links to them are recognized.
HOST No HTTP listen address. The Docker image uses 0.0.0.0. Default: 127.0.0.1
PORT No HTTP listen port. Default: 8787
DB_PATH No Overrides the database path.
DATA_DIR No Where the database and cache live. Defaults to the OS user data directory (~/Library/Application Support/canvas-readonly-mcp on macOS, ~/.local/share/canvas-readonly-mcp on Linux, %APPDATA%\canvas-readonly-mcp on Windows).
CACHE_DIR No Overrides the cache directory.
DISPLAY_TZ No Time zone for displayed times (IANA name, e.g. Europe/Stockholm). Defaults to your Canvas profile's time zone.
MCP_SECRET No At least 32 characters; part of the connector URL. Required for --http mode.
MAX_FILE_MB No Download size limit in MB. Default: 50
SNAPSHOT_AT No Daily snapshot time in DISPLAY_TZ, or off. Default: 04:30
CACHE_MAX_MB No Extracted-text cache size in MB; least recently used entries are evicted. Default: 500
ENABLE_RAW_GET No Set false to remove canvas_api_get. Default: true
SNAPSHOT_SCOPE No Which courses to snapshot: dashboard = the courses on your Canvas dashboard; active = every active enrollment. Courses whose end date has passed are skipped either way. Default: dashboard
CRAWL_MAX_PAGES No Crawl limit per course. Default: 200
SNAPSHOT_COURSES No Only these course ids (overrides SNAPSHOT_SCOPE). id:label:role overrides the label and role.
SNAPSHOT_ENABLED No Turn the snapshot/change-log feature off entirely. Default: true
SNAPSHOT_EXCLUDE No Course ids to skip.
SNAPSHOT_EXTRACT No Which files' text to hash for change detection: linked, all (also files only in the files index), or none. Default: linked
ANNOUNCEMENT_DAYS No Announcement crawl limit per course. Default: 730
EXTRACT_MAX_PAGES No Text extraction page limit. Default: 500
EXTRACT_TIMEOUT_S No Text extraction timeout in seconds. Default: 60
DOWNLOAD_TIMEOUT_S No Download timeout in seconds. Default: 60
SNAPSHOT_MAX_AGE_H No Refresh at startup / on demand when older than this. Default: 20
EVENT_RETENTION_DAYS No How long change events are kept. Default: 120

Similar servers