
Canvas Mcp
io.github.admin978由 GitHub 账号 admin978 发布v0.1.3更新于 Oct 25, 2026
Local-first MCP server for Canvas LMS. Stdio transport, no third-party broker.
概览
本地运行的 MCP 服务器,让助手读取 Canvas LMS 中的课程、作业、模块、成绩、公告和计划事项。
- 可以做什么
- 列出课程及其作业、模块和公告,并读取单个课程页面和文件信息。按课程获取成绩,并汇总各课程的计划事项、即将到来的事件和待办条目。另有独立命令行工具可将课程文件及相关内容批量下载到本地目录,便于离线索引。
- 适用场景
- 适合学生或教师希望让助手跨多门 Canvas 课程查询截止日期、课程内容和成绩,而不必在浏览器中打开 Canvas 的场景。
- 运行要求
- 通过 stdio 在本地运行,需要 Python 3.10+ 及 PyPI 上的 canvas-local-mcp 包。需在 CANVAS_BASE_URL 中填写院校 Canvas 根地址,并在 CANVAS_TOKEN 中提供 Canvas 个人访问令牌,通常保存在本地环境文件中。需要能访问院校的 Canvas API。
安装
在 SourceWeft 中
- 打开 控制台中的 Canvas Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Canvas LMS MCP Server (canvas-mcp)
[CI] [PyPI] [Python] [License]
Ask Claude about your Canvas courses, assignments, deadlines, modules, and grades from one place.
canvas-mcp is a local-first MCP server for Canvas LMS users (students, instructors, and MCP builders). It turns Canvas REST API actions into MCP tools that work from Claude Code, Claude Desktop, and other MCP-compatible clients.
Status: alpha. Single-user, no warranty, API surface may still shift. File issues if it breaks.
Who this is for
- Students who want one view across multiple courses
- Educators who want faster access to assignments, modules, and announcements
- MCP users who want Canvas data in local Claude workflows
What you can ask Claude
- “What assignments are due this week across all my active courses?”
- “Show upcoming events and planner items for next week.”
- “List my current grades by course.”
- “Get the modules (with items) for course
12345.” - “Show announcements for course
12345.” - “Fetch the page
syllabusfrom course12345.”
Quick start
Prerequisite: Python 3.10+.
1) Create a Canvas personal access token
In Canvas: Account → Settings → Approved Integrations → + New Access Token. Copy the token shown (Canvas does not show it again later).
2) Install
From PyPI (recommended):
Or from source:
3) Configure ~/.canvas.env
For token safety guidance (least privilege, file permissions, rotation/revocation, and vulnerability reporting), see SECURITY.md.
4) Register in your MCP client
Claude Code:
Claude Desktop:
- macOS example path:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows example path:
%APPDATA%\Claude\claude_desktop_config.json - Linux example path:
~/.config/Claude/claude_desktop_config.json
Tools exposed
list_courseslist_assignmentslist_moduleslist_announcementsget_pageget_file_infoget_gradesplanner_itemsupcoming_eventstodo
Bulk dump
canvas-local-mcp-dump downloads course files and related content for offline indexing.
Output goes to ./canvas-dump/ by default. Override with CANVAS_DUMP_DIR=/path/to/dir.
Local-first, privacy and token flow
- The server runs locally and uses stdio transport with your MCP client.
- Configuration is read from
~/.canvas.env(CANVAS_BASE_URL,CANVAS_TOKEN). - Requests go from your local server to the official Canvas API endpoints.
- No external token broker is used in the request path.
- Security guidance and disclosure policy: SECURITY.md.
Demo
No demo GIF is currently committed yet. You can still verify the workflow quickly:
Try these prompts
After registering the MCP server, ask Claude:
- “List my active Canvas courses.”
- “What assignments are due this week across all my active courses?”
- “Show upcoming events and planner items for next week.”
- “List my current grades by course.”
Placeholder: add a short terminal/GIF walkthrough here in a future PR.
Development
Requires Python 3.10+.
CI runs lint + tests on Python 3.10–3.13 for every push and pull request.
Publishing a new release
Follow this order to publish a new version (e.g. 0.1.4) consistently across PyPI and the MCP Registry.
1. Bump the version everywhere
Update all three files to the new version string in a single PR:
The CI test test_server_json_version_matches_package and the workflow validation step will fail if any of these three disagree.
2. Merge the PR into main
Wait for all CI checks to pass before merging.
3. Publish canvas-local-mcp to PyPI
The project uses Trusted Publisher (OIDC) for PyPI uploads.
Trigger the PyPI publish workflow (or run python -m build && twine upload dist/* if you have credentials configured) before creating the tag, so the package is available when the MCP Registry fetches it.
4. Create and push the tag vX.Y.Z
This triggers the Publish to MCP Registry workflow, which:
- Validates that
server.json,pyproject.toml, and the tag all declare the same version. - Publishes
server.jsonto the MCP Registry via GitHub OIDC (no secrets needed).
5. Verify
- PyPI:
https://pypi.org/project/canvas-local-mcp/ - MCP Registry:
https://registry.modelcontextprotocol.io/?q=canvas-mcp - GitHub Actions:
https://github.com/admin978/canvas-mcp/actions
Important: never reuse or move an existing tag. If you need to re-publish after a mistake, bump to the next patch version (e.g.
0.1.4) and start from step 1.
Contributing, roadmap and support
- Issues / feature requests
- Pull requests are welcome for bug fixes and Canvas workflow improvements
- Roadmap direction currently lives in open issues and upcoming PRs
If this project helps you manage Canvas with Claude, please try the flow above and consider giving it a ⭐ so other students and educators can find it.
License
MIT — see LICENSE.
Built by AGENTE 404 S.L. · [email protected]
来源:README.md,提交 cead98e
工具
0版本历史
1- v0.1.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
