Cover image
Try Now
2025-04-15

MCP服务器,用于画布 /指导,以帮助提取分配详细信息和截止日期

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

Canvas Assignment Assistant MCP Server

Overview

This Model Context Protocol (MCP) server lets you interact with Canvas/Instructure courses and assignments, without leaving your LLM (e.g. Claude Desktop).

It allows you to retrieve, search, and summarize course and assignment information programmatically, for example to check due dates for upcoming assignments:

Due Dates

Features

Tools

  1. List Courses

    • Retrieve a list of courses
    • Filter by course state (active, completed, or all)
  2. Search Assignments

    • Search across courses for assignments
    • Filter by:
      • Search query
      • Due date range
      • Specific course
      • Include/exclude completed courses
  3. Get Assignment Details

    • Fetch detailed information about a specific assignment
    • Multiple output formats (full HTML, plain text, markdown)

Resources

  • Assignment Content: Retrieve full assignment details using a standardized URI format

Prerequisites

  • Node.js
  • Canvas LMS account
  • Canvas API Token
  • Canvas Domain

Environment Setup

Set the following environment variables:

  • CANVAS_API_TOKEN: Your Canvas API access token (see instructions below)
  • CANVAS_DOMAIN: Your Canvas institution's domain (e.g., canvas.youruniversity.edu)

How to Get Your Canvas API Token

  1. Log into Canvas
  2. Go to Account > Settings
  3. Scroll to the "Approved Integrations" section
  4. Click "New Access Token"
  5. Copy the generated token

For more details, see these instructions from Canvas.

Security Note

Keep your CANVAS_API_TOKEN confidential. Do not commit it to version control.

Installation

  1. Clone the repository and install dependencies

Clone the repository

git clone https://github.com/mbcrosier/canvas-mcp.git
cd canvas-mcp

Install dependencies. If this throws an error, make sure you have node installed.

npm install
  1. Connect to the MCP server

    Copy the below json with the appropriate {{PATH}} values:

    {
      "mcpServers": {
        "canvas": {
          "command": "node", 
          "args": ["/absolute/path/to/canvas-mcp/src/index.ts"], // cd into the src repo, run `pwd` and enter the output here
          "env": {
             "CANVAS_API_TOKEN": "your_api_token_here",
             "CANVAS_DOMAIN": "myschool.instructure.com"
           }
        }
      }
    }
    

    For Claude, save this as claude_desktop_config.json in your Claude Desktop configuration directory at:

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

    For Cursor, save this as mcp.json in your Cursor configuration directory at:

    ~/.cursor/mcp.json
    
  2. Restart Claude Desktop / Cursor

    Open Claude Desktop and you should now see Canvas as an available integration.

    Or restart Cursor.

MCP Tools

  • list_courses: Shows all active courses by default. Use flags to show completed or all courses
  • search_assignments: Searches assignment titles and descriptions
  • get_assignment: Retrieves full assignment details

Troubleshooting

Common Issues

  • Token Invalid:

    • Regenerate your Canvas API token
    • Ensure token has appropriate permissions
  • Domain Incorrect:

    • Double-check your Canvas institution domain
    • Verify there are no typos

Disclaimer

This is an unofficial Canvas MCP, and is not affiliated with Canvas or Instructure. I'm also not a professional software engineer, and this project was vibe-coded using Claude, so please use it at your own risk :)

Thanks!

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Lists Tailwind CSS classes in monospaced font

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • HiveNexus
  • 一个适用于中小型团队的AI聊天机器人,支持DeepSeek,Open AI,Claude和Gemini等车型。 专为中小团队设计的ai聊天应用,支持deepSeek,打开ai,claude,双子座等模型。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

    Reviews

    5 (1)
    Avatar
    user_tnS6DYY5
    2025-04-17

    As a dedicated user of canvas-mcp, I must say this tool truly revolutionizes the way you manage and customize your Canvas Learning Management System. The straightforward integration and flexibility it offers are unparalleled. The fact that it's backed by mbcrosier only adds to its credibility. Highly recommend checking it out at https://github.com/mbcrosier/canvas-mcp!