npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@iflow-mcp/plyght-canvas-mcp

v1.0.0

Published

MCP server for Canvas LMS student features

Downloads

20

Readme

Canvas MCP Server

A Model Context Protocol server providing comprehensive access to Canvas LMS for AI assistants.

Install MCP Server

Features

Access Canvas LMS functionality through 31 MCP tools:

  • Courses: List and view course information
  • Assignments: Browse, view details, check submissions, and submit work
  • Grades: View grades for individual courses or across all courses
  • Messaging: Send and receive messages, manage conversations (read/unread, star, archive, delete)
  • Calendar: View events and upcoming deadlines
  • To-Do Lists: Track pending tasks and assignments
  • Modules: Navigate course content structure
  • Announcements: Read course and institutional announcements
  • Files: Access and download course materials
  • Quizzes: View quizzes and submissions
  • Users: Search for classmates and instructors

Installation

Prerequisites

  • Bun runtime
  • Canvas LMS account with API access token

Setup

  1. Install dependencies:
bun install
  1. Get your Canvas API token:

    • Log into Canvas
    • Navigate to Account → Settings
    • Scroll to "Approved Integrations"
    • Click "+ New Access Token"
    • Generate and copy the token
  2. Configure environment variables:

export CANVAS_BASE_URL="https://your-institution.instructure.com"
export CANVAS_ACCESS_TOKEN="your_access_token_here"
  1. Configure your MCP client with the following settings:
{
  "mcpServers": {
    "canvas": {
      "command": "bun",
      "args": ["run", "/absolute/path/to/canvas/src/index.ts"],
      "env": {
        "CANVAS_BASE_URL": "https://your-institution.instructure.com",
        "CANVAS_ACCESS_TOKEN": "your_access_token_here"
      }
    }
  }
}

Usage

After setup, interact with Canvas through your MCP client:

Show me all my current courses
What assignments do I have due soon?
What are my grades in all my classes?
Show me my recent Canvas messages

Development

Quality Gates

bun run format      # Format code with Prettier
bun run lint        # Lint code with ESLint
bun run typecheck   # Type check with TypeScript
bun test            # Run tests

Build

bun run build       # Build for production
bun run dev         # Run in development mode

Documentation

Architecture

Built with TypeScript and the MCP SDK, this server provides a type-safe interface to the Canvas LMS REST API. All operations use Bearer token authentication and respect Canvas rate limits.

Project Structure

canvas/
├── src/
│   ├── canvas/
│   │   ├── client.ts        # Canvas API client
│   │   └── client.test.ts   # Client tests
│   └── index.ts             # MCP server implementation
├── docs/                    # Documentation
├── package.json             # Dependencies and scripts
└── tsconfig.json           # TypeScript configuration

Security

  • Store credentials in environment variables
  • Never commit access tokens to version control
  • Use token expiration dates
  • Rotate tokens regularly
  • Follow your institution's API usage policies

API Reference

This server implements the Canvas LMS REST API v1. For detailed API documentation, visit the Instructure Developer Portal.

License

This project uses permissive open-source dependencies with no telemetry or tracking.