MCP cover image
See in Github
2025-03-25

Claude Desktop MCP服务器,用于控制Canvas LMS REST API

1

Github Watches

0

Github Forks

0

Github Stars

Claude Canvas MCP

A Model Context Protocol (MCP) server that enables Claude to interact with Canvas LMS. This server provides tools for managing courses, announcements, assignments, students, and more through the Canvas API.

Features

  • List active courses and their details
  • Retrieve course modules, pages, and content
  • View assignments, quizzes, and discussions
  • Access student enrollment information
  • Post announcements and comments
  • View submission details and grades
  • Upload and download files
  • Manage rubrics and grades

Prerequisites

  • Node.js (v16 or higher)
  • A Canvas API token
  • Canvas instance URL (defaults to "http://canvas.docker/")
  • Claude Desktop application

Installation

  1. Clone this repository and install dependencies:
git clone https://github.com/johnnyrobot/claude-canvas-mcp.git
cd claude-canvas-mcp
npm install
  1. Build the TypeScript project:
npm run build
  1. Configure your environment variables:
# Copy the example environment file
cp .env.example .env

# Edit the .env file with your Canvas information
nano .env

Claude Desktop Integration

  1. Open Claude Desktop's configuration file:

MacOS:

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

Windows:

code %AppData%\Claude\claude_desktop_config.json
  1. Add the Canvas MCP server configuration:
{
  "mcpServers": {
    "canvas": {
      "command": "node",
      "args": [
        "/path/to/claude-canvas-mcp/build/index.js"
      ],
      "env": {
        "CANVAS_API_TOKEN": "your_token_here",
        "CANVAS_DOMAIN": "http://canvas.docker/"
      }
    }
  }
}
  1. Restart Claude Desktop to apply changes

Available Tools

list-courses

Lists all active courses for the authenticated user

  • No required parameters
  • Returns course names, IDs, and term information

get-course

Gets detailed information about a specific course

  • Required parameters:
    • courseId: string

list-modules

Lists all modules in a course

  • Required parameters:
    • courseId: string

list-module-items

Lists all items in a module

  • Required parameters:
    • courseId: string
    • moduleId: string

list-assignments

Gets all assignments in a course

  • Required parameters:
    • courseId: string
  • Optional parameters:
    • includeContent: boolean (default: false)

get-assignment

Gets detailed information about an assignment

  • Required parameters:
    • courseId: string
    • assignmentId: string

list-students

Gets a complete list of students enrolled in a course

  • Required parameters:
    • courseId: string
  • Optional parameters:
    • includeEmail: boolean (default: false)

post-announcement

Posts an announcement to a specific course

  • Required parameters:
    • courseId: string
    • title: string
    • message: string

list-submissions

Gets all student submissions for an assignment

  • Required parameters:
    • courseId: string
    • assignmentId: string

get-submission

Gets a specific student's submission for an assignment

  • Required parameters:
    • courseId: string
    • assignmentId: string
    • studentId: string

post-submission-comment

Posts a comment on a student's submission

  • Required parameters:
    • courseId: string
    • assignmentId: string
    • studentId: string
    • comment: string

list-files

Lists files in a course

  • Required parameters:
    • courseId: string
  • Optional parameters:
    • folderId: string

upload-file

Uploads a file to a course

  • Required parameters:
    • courseId: string
    • fileName: string
    • fileContent: string
  • Optional parameters:
    • folderId: string

License

MIT License

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

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

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

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

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

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

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

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

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

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

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

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

  • modelcontextprotocol
  • 模型上下文协议服务器

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

    Reviews

    5 (1)
    Avatar
    user_pkiGx0AN
    2025-04-16

    As a dedicated MCP user, Claude-Canvas-MCP by johnnyrobot has truly exceeded my expectations. The integration and functionality it provides are seamless and highly efficient for my projects. If you work in MCP environments, this tool is an invaluable asset. Highly recommend! Check it out on GitHub at the provided link.