mcp-canvas-lms

mcp-canvas-lms

0

The Canvas LMS MCP Server provides an interface to interact with Canvas LMS resources, allowing users to retrieve courses, announcements, and assignments through a set of tools. It is designed to streamline access and interaction with Canvas LMS data for educational purposes.

🎓 Canvas LMS MCP Server 🎓

MCP Server for the Canvas LMS API, enabling access to Canvas LMS resources for students. 🚀

Tools

  1. get_courses 📚
    • Get all courses for the current user
  2. get_announcements 📣
    • Get all announcements from a specific course, made after a specific date
  3. get_assignments 📝
    • Get all assignments from a specific course, due before a specific date

Installation

{
  "mcpServers": {
    "canvas-mcp-server": {
      "command": "npx",
      "args": ["-y", "mcp-canvas-lms"],
      "env": {
        "CANVAS_ACCESS_TOKEN": "key",
        "CANVAS_BASE_URL": "https://..."
      },
      "transportType": "stdio"
    }
  }
}

Usage

Environment Variables

  • CANVAS_ACCESS_TOKEN: Canvas LMS API token
  • CANVAS_BASE_URL: Base URL for the canvas API (e.g. https://canvas.ust.hk)

Create your access token at sidebar > Profile > Settings (/profile/settings) > Approved Integrations > New Access Token

You might not be able to create a new access token if your admin has disabled this setting.

Development

# Install dependencies
npm install

# Build the project
npm run build