Canvas LMS MCP for students

v0.1.10
io.github.AnonymousOnyx22/canvas-lms-student-mcp Checked 2 days ago Published 1 month ago

Canvas LMS MCP server for students.

Values you need

VariableWhat it is
CANVAS_BASE_URLrequired Your school's Canvas address, for example https://myschool.instructure.com
CANVAS_API_TOKENrequired secret A Canvas access token, created in Canvas under Account > Settings > New Access Token

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add canvas-lms-student-mcp -e 'CANVAS_API_TOKEN=<CANVAS_API_TOKEN>' -e 'CANVAS_BASE_URL=<CANVAS_BASE_URL>' -- npx -y canvas-lms-student-mcp@0.1.10
Add to claude_desktop_config.json
{
  "mcpServers": {
    "canvas-lms-student-mcp": {
      "args": [
        "-y",
        "canvas-lms-student-mcp@0.1.10"
      ],
      "command": "npx",
      "env": {
        "CANVAS_API_TOKEN": "<CANVAS_API_TOKEN>",
        "CANVAS_BASE_URL": "<CANVAS_BASE_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "canvas-lms-student-mcp": {
      "args": [
        "-y",
        "canvas-lms-student-mcp@0.1.10"
      ],
      "command": "npx",
      "env": {
        "CANVAS_API_TOKEN": "<CANVAS_API_TOKEN>",
        "CANVAS_BASE_URL": "<CANVAS_BASE_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "CANVAS_API_TOKEN",
      "id": "canvas-api-token",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "CANVAS_BASE_URL",
      "id": "canvas-base-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "canvas-lms-student-mcp": {
      "args": [
        "-y",
        "canvas-lms-student-mcp@0.1.10"
      ],
      "command": "npx",
      "env": {
        "CANVAS_API_TOKEN": "${input:canvas-api-token}",
        "CANVAS_BASE_URL": "${input:canvas-base-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.canvas-lms-student-mcp]
command = "npx"
args = ["-y", "canvas-lms-student-mcp@0.1.10"]
env = { "CANVAS_API_TOKEN" = "<CANVAS_API_TOKEN>", "CANVAS_BASE_URL" = "<CANVAS_BASE_URL>" }

For AI agents

  1. Ask the user for: CANVAS_BASE_URL, CANVAS_API_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: get_my_courses, get_todo, get_upcoming_due_dates, get_missing_assignments, get_assignments, get_my_grades, get_course_content, get_syllabus, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json