
连接Claude与Canvas LMS的MCP服务器——通过自然对话管理课程作业
概览
一个MCP(模型上下文协议)服务器,连接Claude与Canvas LMS,让你通过自然对话管理课程作业。 - “我这周有哪些作业要交?”- “给我看论文作业的评分标准” - “我的教授在反馈里说了什么?”- “列出我所有的课程” - “有没有逾期作业?” 1. 登录Canvas 2.点击你的→ 3.滚动到4。点击5。给它命名(例如,“Claude”),然后点击6。- 你不会再看到它! 打开 Claude Desktop 的配置文件:- : ~/Library/Application Support/Claude/claude_desktop_config.json - : %APPDATA%\Claude\claude_desktop_config.json - /FULL/PATH/TO/canvas-mcp,显示你克隆该仓库的实际路径 - 用YOUR_TOKEN_HERE标记你的Canvas API令牌 - https://your-school.instructure.com,显示你的Canvas URL 完全退出Claude桌面(Cmd+Q / Alt+F4),然后重新打开它。 你现在应该会看到Claude里有Canvas工具了! - 列出你所有已注册的课程- 获取课程详情和教学大纲
概述(AI 翻译)
一个MCP(模型上下文协议)服务器,连接Claude与Canvas LMS,让你通过自然对话管理课程作业。
问克劳德一些问题,比如:
- “我这周有哪些作业要交?”
- “给我看我的论文作业评分标准”
- “我的教授在反馈里说了什么?”
- “列出我所有的课程”
- “有没有逾期作业?”
快速启动
1.获取你的Canvas API令牌
- 登录Canvas
- 点击你的头像 → 设置
- 滚动至已批准的集成
- 点击**+ 新访问令牌**
- 命名它(例如“Claude”)并点击生成令牌
- 复制令牌 - 你不会再看到它!
2.安装MCP服务器
3.配置Claude Desktop
打开 Claude Desktop 的配置文件:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
添加(或合并)以下配置:
替换:
/FULL/PATH/TO/canvas-mcp以及你克隆这个仓库的实际路径YOUR_TOKEN_HERE与你的 Canvas API 令牌https://your-school.instructure.com与你的 Canvas URL 一起
常见的Canvas网址: |大学 |画布网址 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Canvas LMS MCP Server for Claude
An MCP (Model Context Protocol) server that connects Claude to Canvas LMS, letting you manage your coursework through natural conversation.
Ask Claude things like:
- “What assignments do I have due this week?”
- “Show me the rubric for my essay assignment”
- “What did my professor say in the feedback?”
- “List all my courses”
- “Are there any overdue assignments?”
Quick Start
1. Get Your Canvas API Token
- Log in to Canvas
- Click your profile picture → Settings
- Scroll to Approved Integrations
- Click + New Access Token
- Name it (e.g., “Claude”) and click Generate Token
- Copy the token - you won’t see it again!
2. Install the MCP Server
# Clone this repository
git clone https://github.com/lucanardinocchi/canvas-mcp.git
cd canvas-mcp
# Install dependencies
npm install
# Build the project
npm run build
3. Configure Claude Desktop
Open Claude Desktop’s config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add (or merge) this configuration:
{
"mcpServers": {
"canvas": {
"command": "node",
"args": ["/FULL/PATH/TO/canvas-mcp/dist/index.js"],
"env": {
"CANVAS_API_TOKEN": "YOUR_TOKEN_HERE",
"CANVAS_BASE_URL": "https://your-school.instructure.com"
}
}
}
}
Replace:
/FULL/PATH/TO/canvas-mcpwith the actual path where you cloned this repoYOUR_TOKEN_HEREwith your Canvas API tokenhttps://your-school.instructure.comwith your Canvas URL
Common Canvas URLs:
| University | Canvas URL |
|---|---|
| University of Sydney | https://canvas.sydney.edu.au |
| Generic Instructure | https://canvas.instructure.com |
| Your school | Check your browser when logged into Canvas |
4. Restart Claude Desktop
Quit Claude Desktop completely (Cmd+Q / Alt+F4) and reopen it.
You should now see Canvas tools available in Claude!
What Can It Do?
📚 Courses
- List all your enrolled courses
- Get course details and syllabi
📝 Assignments
- List assignments (filter by upcoming, overdue, etc.)
- View full assignment details and instructions
- See rubrics and grading criteria
- Check your grades and submission status
💬 Discussions
- View discussion boards
- Post new discussion entries
- Reply to classmates
📤 Submissions
- Submit text assignments directly
- Upload files for submission
- View instructor feedback and comments
🔍 Search
- Find assignments by due date
- Search course content
- Get all upcoming work across all courses
All Available Tools
| Tool | What it does |
|---|---|
list_courses |
List your enrolled courses |
get_course |
Get details about a specific course |
list_assignments |
List assignments (with filters) |
get_assignment |
Get full assignment details + rubric |
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"canvas": {
"command": "node",
"args": ["/FULL/PATH/TO/canvas-mcp/dist/index.js"],
"env": {
"CANVAS_API_TOKEN": "YOUR_TOKEN_HERE",
"CANVAS_BASE_URL": "https://your-school.instructure.com"
}
}
}
}