mcp-canvas-server

MCP安全风控

提供方 CharlieCardenasToledo · 包名 @charlie.act7/canvas-mcp-server

安全风控 stdio · 本地进程 API Key 社区 / 第三方 Claude DesktopClaudeCursorVS Code
查看接入方式

The Canvas LMS MCP Server acts as a bridge that allows AI assistants to query, grade, audit, and manage Canvas courses, assignments, rubrics, submissions, quizzes, conversations, and analytics using natural language.

一句话选型结论

按资料字段整理

mcp-canvas-server 属于安全风控类 MCP 服务器,stdio · 本地进程,API Key,可直接接入 Claude Desktop、Claude、Cursor 等,有可直接执行的安装命令。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类安全风控 传输方式stdio · 本地进程 鉴权API Key 部署方式本地部署
GitHub 星标 0 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

安全风控
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

Local Deployment EdTech Learning Management System TypeScript AI Integration Natural Language Processing Automated Management

支持客户端

适用场景

Local DeploymentEdTechLearning Management System

安装与配置

stdio · 本地进程 API Key
客户端在本机拉起子进程,数据不出本机
npx -y @charlie.act7/canvas-mcp-server@latest

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    stdio 服务在本地起进程,需要先装好 node,再按安装命令拉取依赖。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
资产与漏洞排查

盘点资产、扫漏洞、看暴露面。

日志与审计

汇总日志、查异常行为。

合规检查

按规则检查配置与权限是否合规。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已适配 Claude Desktop、Claude、Cursor,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 使用前要准备好API Key对应的凭据,并按最小权限配置。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在安全风控场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop、Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
mcp-canvas-server当前 未标注 stdio · 本地进程 本地部署 有 2026-07-26
Cyber Strike AI 75 未标注 未标注 无 2026-05-17
mcp-for-beginners 未标注 stdio · 本地进程 本地部署 有 2026-04-13
casdoor 未标注 stdio · 本地进程 本地部署 有 2026-04-12
kubeshark 未标注 stdio · 本地进程 本地部署 有 2026-04-11
Modelcontextprotocol C22988b0 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

安全风控
字段来自项目仓库与公开索引,中文说明由本站标注
提供方CharlieCardenasToledo上游标注的维护方 CharlieCardenasToledo
分类安全风控本站按上游分类展示
连接方式stdio · 本地进程客户端在本机拉起子进程,数据不出本机
鉴权方式API Key远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时@charlie.act7/canvas-mcp-server · node本地安装时用到的包标识与运行时
部署类型本地部署上游给出的部署形态
最近核验2026-07-26上游最后核验时间

详细介绍

18.9 KB
来自项目仓库与上游目录的原文,未做删改

Canvas LMS MCP Server

Model Context Protocol (MCP) server for Canvas LMS. It acts as a bridge that allows AI assistants (Claude Code, Claude Desktop, Cursor, Windsurf, Cline, Roo Code, GitHub Copilot, Continue, Zed, Codex CLI, n8n, OpenAI Custom GPTs, and generic MCP clients) to query, grade, audit, and manage Canvas courses, assignments, rubrics, submissions, quizzes, conversations, and analytics using natural language. Two transports are supported: stdio (default) and Streamable-HTTP with interactive Swagger API documentation.

> Versión en Español: README.es.md | LLM Integration Guide: llms-install.md


  • Requirements & Platform Support
  • How It Works
  • Install
  • Connect to Claude Code
  • Connect to Other Clients
    • Claude Desktop
    • Cursor
    • Windsurf (Codeium)
    • Cline & Roo Code
    • GitHub Copilot
    • Continue.dev
    • Zed Editor
    • Codex CLI
    • Generic MCP Client (stdio)
    • HTTP Server & OpenAI Custom GPTs
  • Authentication & Credentials
  • Transports
  • Use Cases & Prompts
  • Tools
  • Resources
  • Configuration Reference
  • Development
  • Documentation
  • License

Requirements & Platform Support

  • Node.js ≥ 18.0.0 (Node.js ≥ 20.x recommended).
  • Canvas LMS Access: An active account on your institution's Canvas LMS (e.g. myschool.instructure.com).
  • Canvas API Access Token: Generated via your Canvas Account Settings page.
  • Linux / macOS / Windows / WSL2.

How It Works

When you interact with the server, communication flows as follows:```mermaid
graph LR
User([User]) -->|Natural Language Instruction| AI["AI Assistant (e.g., Claude)"]
AI -->|MCP Request| MCP["Canvas MCP Server"]
MCP -->|REST API - HTTPS| Canvas["Canvas LMS"]
Canvas -->|Response| MCP
MCP -->|Processed Data| AI
AI -->|Friendly Answer| User


1. **You ask the AI** (e.g., _"Create an assignment due next Friday"_).
2. **The AI detects your intent** and communicates with the **Canvas MCP Server**, sending the required parameters.
3. **The server makes a secure call** to the official Canvas LMS API over HTTPS.
4. **Canvas LMS processes the action** and returns the response payload.
5. **The AI confirms the success of the action** back to you in plain, natural language.

---

## Install

### Published package```bash
npx @charlie.act7/canvas-mcp-server@latest

This is the recommended path for end users. npx keeps the binary cached and self-updates on @latest.

Interactive CLI Setup

Configure your Canvas credentials interactively before running:```bash
npx @charlie.act7/canvas-mcp-server config


### From source```bash
git clone https://github.com/CharlieCardenasToledo/mcp-canvas-server.git
cd mcp-canvas-server
npm install
npm run build
node dist/index.js

Connect to Claude Code

CLI form:```bash
claude mcp add canvas \
--env CANVAS_API_TOKEN=YOUR_ACCESS_TOKEN_HERE \
--env CANVAS_API_DOMAIN=myschool.instructure.com \
-- npx -y @charlie.act7/canvas-mcp-server@latest


Or from a local build:```bash
claude mcp add canvas \
  --env CANVAS_API_TOKEN=YOUR_ACCESS_TOKEN_HERE \
  --env CANVAS_API_DOMAIN=myschool.instructure.com \
  -- node /absolute/path/to/mcp-canvas-server/dist/index.js

Manual form — drop into ~/.claude.json:```json
{
"mcpServers": {
"canvas": {
"command": "npx",
"args": ["-y", "@charlie.act7/canvas-mcp-server@latest"],
"env": {
"CANVAS_API_TOKEN": "YOUR_ACCESS_TOKEN_HERE",
"CANVAS_API_DOMAIN": "myschool.instructure.com"
}
}
}
}


---

## Connect to Other Clients

For step-by-step setup guides for all AI clients (Windsurf, Cline, Roo Code, Copilot, Continue, Zed, LibreChat, Custom GPTs), see `llms-install.md`.

### Claude Desktop

Edit your Claude Desktop configuration file:

- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json````json
{
    "mcpServers": {
        "canvas": {
            "command": "npx",
            "args": ["-y", "@charlie.act7/canvas-mcp-server@latest"],
            "env": {
                "CANVAS_API_TOKEN": "YOUR_ACCESS_TOKEN_HERE",
                "CANVAS_API_DOMAIN": "myschool.instructure.com"
            }
        }
    }
}

Cursor — `~/.cursor/mcp.json````json

{
"mcpServers": {
"canvas": {
"command": "npx",
"args": ["-y", "@charlie.act7/canvas-mcp-server@latest"],
"env": {
"CANVAS_API_TOKEN": "YOUR_ACCESS_TOKEN_HERE",
"CANVAS_API_DOMAIN": "myschool.instructure.com"
}
}
}
}


### Codex CLI```bash
codex mcp add canvas \
  --env CANVAS_API_TOKEN=YOUR_ACCESS_TOKEN_HERE \
  --env CANVAS_API_DOMAIN=myschool.instructure.com \
  npx -y @charlie.act7/canvas-mcp-server@latest

Generic MCP client (stdio)

Any client that can spawn an MCP server over stdio can use npx -y @charlie.act7/canvas-mcp-server@latest. The server speaks MCP 2025 (tools, resources, prompts).

HTTP Server & OpenAI Custom GPTs

Run the server in HTTP mode with Fastify and interactive Swagger documentation:```bash
npx @charlie.act7/canvas-mcp-server serve-http --port 3000 --host 0.0.0.0

or from source:

npm run start:http


Visit `http://localhost:3000` to inspect interactive Swagger / OpenAPI definitions or hook into OpenAI Custom GPT Actions.

---

## Authentication & Credentials

### Step 1: Obtain Canvas Credentials

1. Log in to your **Canvas LMS** account.
2. Go to **Account** > **Settings** in the sidebar navigation.
3. Scroll to **Approved Integrations** and click **+ New Access Token**.
4. Enter a purpose (e.g. "Claude Canvas MCP") and click **Generate Token**.
5. Copy the generated token immediately and store it securely (it will not be shown again).

> [!IMPORTANT]
> Note down your **Canvas Domain**. This is the web address of your institution's Canvas platform, for example: `myschool.instructure.com`.

### Token Auto-Renewal

If your institution enforces token expiration, the server checks the active token's expiry before each request and automatically regenerates and persists it once it is within 24 hours of expiring.

Toggles & Tuning:

- `CANVAS_TOKEN_AUTO_RENEW=false` — Disable automatic token regeneration.
- `CANVAS_TOKEN_RENEW_THRESHOLD_HOURS=48` — Change the renewal threshold window (default: `24` hours).

---

## Transports

The server supports two transport modes:

### stdio (default)```bash
npx @charlie.act7/canvas-mcp-server@latest

Used by desktop applications and CLI tools (Claude Desktop, Claude Code, Cursor, Codex).

HTTP Server / Fastify REST API```bash

npx @charlie.act7/canvas-mcp-server serve-http --port 3000 --host 0.0.0.0


Optionally pass `--port ` (default `3000`) and `--host ` (default `0.0.0.0` or `127.0.0.1`).

---

## Use Cases & Prompts

> [!TIP]
> **Token Saving & Efficiency:** Whenever possible, specify the Canvas ID or the direct Canvas URL (e.g., `https://[your_institution].instructure.com/courses/[course_id]/assignments/[assignment_id]`) in your prompts. This prevents the AI from scanning all your courses/resources, leading to faster responses and substantial token savings.

### Course Auditing & Querying

- _"What active courses do I have this semester? Check if there are multiple active sections/parallels."_
- _"Show me all ungraded submissions for 'Essay 1: Introduction to Sociology' in Sociology 101."_
- _"Who is in Student Group A for the Chemistry class?"_
- _"Does the assignment 'Project Proposal' have an active rubric associated? If so, retrieve its criteria."_
- _"Search for everything related to 'photosynthesis' across my Biology course — assignments, pages, and discussions."_

### Creating & Organizing Course Content

- _"Create a new module named 'Week 1: Foundations' in my course."_
- _"Add a SubHeader 'REQUIRED READINGS' inside the 'Week 1' module, and link the syllabus page to it."_
- _"In my Business course, create an assignment called 'Case Study 1: Market Analysis'. Add an instructions table with columns for Criteria, Requirements, and Points."_
- _"Create a threaded discussion topic in my course titled 'Weekly Reflection' and pin it to the top."_

### Grading & Absence Management

- _"For assignment 'Case Study 1', find all students who haven't submitted their work. Assign them a grade of 0 and add the comment: 'Activity not submitted.'"_
- _"Grade John's submission for 'Essay 1' with a 90 based on the rubric, and add feedback."_

### Student Engagement & Analytics

- _"Show me the activity analytics for my Calculus course — how active have students been this week?"_
- _"Which students haven't been active in course 12345 in the last few days?"_

### Messaging & Communication

- _"Send a private message to student [ID] reminding them their 'Project Proposal' is due tomorrow."_
- _"How many unread messages do I have in my Canvas inbox?"_

---

## Tools

The Canvas MCP Server exposes **117 tools** organized into 21 functional categories:

| Category              | Tools                                                                                                                                                                                                                                  | Description                                       |
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| **Courses**           | `list_courses` · `create_course` · `update_course` · `get_syllabus`                                                                                                                                                                    | Manage and configure courses                      |
| **Modules**           | `list_modules` · `create_module` · `update_module` · `delete_module` · `create_module_item` · `update_module_item` · `delete_module_item`                                                                                              | Full CRUD for modules and their items             |
| **Pages**             | `list_pages` · `get_page_content` · `create_page` · `update_page` · `delete_page`                                                                                                                                                      | Wiki page publishing & editing                    |
| **Files & Folders**   | `list_files` · `upload_file` · `update_file` · `delete_file` · `list_folders` · `create_folder` · `update_folder` · `delete_folder`                                                                                                    | File management with folder support               |
| **Assignments**       | `get_assignments` · `get_assignment` · `create_assignment` · `update_assignment` · `delete_assignment` · `update_assignment_dates` · `bulk_update_due_dates` · `list_assignment_groups`                                                | Full assignment lifecycle                         |
| **Submissions**       | `get_submissions` · `get_submission` · `get_submission_comments` · `delete_submission_comment` · `submit_assignment`                                                                                                                   | View and manage student submissions               |
| **Grading**           | `grade_submission` · `grade_multiple_submissions` · `audit_course`                                                                                                                                                                     | Grade individually or in bulk                     |
| **Rubrics**           | `list_rubrics` · `get_rubric` · `create_rubric` · `update_rubric` · `create_rubric_association`                                                                                                                                        | Build and attach grading rubrics                  |
| **Classic Quizzes**   | `list_quizzes` · `get_quiz` · `create_quiz` · `update_quiz` · `update_quiz_dates` · `list_quiz_questions` · `get_quiz_question` · `create_quiz_question` · `update_quiz_question` · `delete_quiz_question` · `create_quiz_group`       | Classic Canvas quiz engine                        |
| **New Quizzes (LTI)** | `create_new_quiz` · `update_new_quiz` · `delete_new_quiz` · `list_new_quiz_items` · `get_new_quiz_item` · `create_new_quiz_item` · `update_new_quiz_item` · `delete_new_quiz_item`                                                     | Modern LTI quiz engine (`/api/quiz/v1`)           |
| **Students**          | `list_students` · `list_students_with_grades` · `get_student_grades` · `get_student_assignments` · `list_assignment_due_dates`                                                                                                         | Roster and progress tracking                      |
| **Enrollments**       | `list_course_enrollments` · `enroll_user` · `remove_enrollment` · `get_user` · `get_profile` · `search_users`                                                                                                                          | Manage who is in your course                      |
| **Groups**            | `list_group_categories` · `create_group_category` · `list_groups_in_category` · `create_group` · `assign_unassigned_members` · `add_group_member`                                                                                      | Student group management                          |
| **Discussions**       | `list_discussions` · `get_discussion_entries` · `create_discussion` · `delete_discussion` · `post_discussion_reply`                                                                                                                    | Discussion boards                                 |
| **Announcements**     | `list_announcements` · `post_announcement` · `update_announcement`                                                                                                                                                                     | Course announcements                              |
| **Conversations**     | `list_conversations` · `get_conversation` · `get_conversation_unread_count` · `send_conversation` · `reply_to_conversation`                                                                                                            | Private inbox messaging                           |
| **Calendar**          | `list_appointment_groups` · `get_appointment_group` · `create_appointment_group` · `update_appointment_group` · `delete_appointment_group` · `list_appointment_group_users` · `list_appointment_group_groups` · `get_next_appointment` | Scheduling and appointments                       |
| **Analytics**         | `get_course_analytics` · `get_student_analytics` · `get_course_activity_stream` · `search_course_content`                                                                                                                              | Engagement data and content search                |
| **Peer Reviews**      | `list_peer_reviews` · `get_submission_peer_reviews` · `create_peer_review` · `delete_peer_review`                                                                                                                                      | Configure and manage peer assessments             |
| **Access Tokens**     | `list_access_tokens` · `get_access_token` · `create_access_token` · `update_access_token` · `regenerate_access_token` · `delete_access_token`                                                                                          | Manage Canvas API tokens with auto-renewal        |
| **Health & Config**   | `health_check` · `set_canvas_config`                                                                                                                                                                                                   | Connection checks & runtime configuration updates |

---

## Resources

Supported native MCP resources:

| Resource URI                         | Description                         |
| ------------------------------------ | ----------------------------------- |
| `canvas://courses/{id}/readme`       | Formatted Markdown course summary   |
| `canvas://courses/{id}/pages/{slug}` | Direct HTML content of Canvas pages |

---

## Configuration Reference

All configuration parameters can be passed as environment variables or stored via CLI configuration (`npx @charlie.act7/canvas-mcp-server config`).

| Env Var                              | Default                  | Purpose                                                               |
| ------------------------------------ | ------------------------ | --------------------------------------------------------------------- |
| `CANVAS_API_TOKEN`                   | _(unset)_                | Canvas LMS API access token.                                          |
| `CANVAS_API_DOMAIN`                  | _(unset)_                | Domain of your Canvas LMS instance (e.g. `myschool.instructure.com`). |
| `CANVAS_TOKEN_AUTO_RENEW`            | `true`                   | Automatically regenerate expiring access tokens before expiration.    |
| `CANVAS_TOKEN_RENEW_THRESHOLD_HOURS` | `24`                     | Threshold in hours before token expiry to trigger auto-renewal.       |
| `PORT` / `HTTP_PORT`                 | `3000`                   | HTTP port when running `serve-http`.                                  |
| `HTTP_HOST`                          | `0.0.0.0`                | Host interface binding for HTTP server mode.                          |
| `GEMINI_API_KEY`                     | _(unset)_                | (Optional) Gemini API key for local LLM bridge / script utilities.    |
| `OLLAMA_HOST`                        | `http://localhost:11434` | (Optional) Local Ollama host address for local model bridge.          |

---

## Development```bash
npm run build      # Compile TypeScript source code (tsc)
npm run dev        # Watch mode compilation (tsc --watch)
npm start          # Run MCP server in stdio mode
npm run start:http # Run HTTP server with Swagger UI at http://localhost:3000
npm run chat       # Launch interactive Ollama bridge test CLI

Source Layout

  • src/index.ts — CLI entry point (Commander), stdio MCP server bootstrap
  • src/http-server.ts — Fastify HTTP server, Swagger / OpenAPI route definitions
  • src/common/ — canvas-client.ts (API client & token auto-renewal), config.ts (conf manager), types.ts
  • src/tools/ — 117+ tool implementations divided by functional module
  • src/resources/ — MCP resource providers (canvas://)
  • src/prompts/ — MCP prompt templates

Documentation

  • README.es.md — Versión en Español del README.
  • llms-install.md — Master AI Client & Editor Integration Guide.

License

This project is licensed under the MIT License. Created by Charlie Cárdenas Toledo.

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
mcp-canvas-server 怎么安装?

在客户端按下面的安装命令接入:npx -y @charlie.act7/canvas-mcp-server@latest。对应的包名是 @charlie.act7/canvas-mcp-server。装完在客户端配置里引用同一个包或端点。

mcp-canvas-server 怎么在 Claude Desktop、Claude、Cursor 里配置?

它的传输方式是stdio · 本地进程,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

mcp-canvas-server 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

mcp-canvas-server 需要 API Key 吗?

资料标注需要API Key认证,使用前准备好对应凭据,并按最小权限配置。

mcp-canvas-server 支持哪些客户端?

资料标注支持 Claude Desktop、Claude、Cursor、VS Code、Windsurf、Cline;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

mcp-canvas-server 能提供哪些能力?

资料显示能力标签包括 Local Deployment、EdTech、Learning Management System、TypeScript、AI Integration、Natural Language Processing。具体工具清单以官方文档为准。

mcp-canvas-server 需要什么运行环境?

运行时为 node;属于本地进程,需要在本机装好运行环境。

mcp-canvas-server 是本地还是远程?

它是本地进程(stdio),由客户端在本机拉起。传输方式为stdio · 本地进程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-07-26。