Canvas Course Materials MCP Server
A remote MCP server that gives Claude access to your Canvas LMS course materials and files, enabling you to list courses, retrieve files, modules, syllabus, pages, assignments, grades, quizzes, and more via natural language.
README
Canvas Course Materials MCP Server
A remote MCP server that gives Claude access to your Canvas LMS course materials and files.
Tools exposed
Files:
list_courses— your active (or all) courseslist_course_files— files in a course's Files sectionlist_course_folders— folder structure in a courselist_folder_files— files within a specific folderget_file_metadata— metadata + fresh download URL for a specific fileget_file_content— downloads a file and extracts its readable text (PDF, DOCX, PPTX, plain text/markdown/CSV). Use this to actually read lecture slides/notes — Claude can't otherwise reach Canvas's file URLs directly.
Course site content:
list_course_modules— modules and their items (files, pages, assignments)get_syllabus— the course syllabus, as readable textlist_pages— wiki pages in the course (lecture notes, course info, etc.)get_page— full readable content of a specific pagelist_announcements— announcements with readable message bodieslist_assignments— assignments with due dates, points, and readable descriptionslist_discussion_topics— discussion board topics with readable messages (not replies)
Grades & quizzes:
get_grades— your overall course grade plus per-assignment score breakdownlist_quizzes— quizzes with due dates, points, and readable instructionsget_quiz— full details/instructions for one quiz (see note below on questions)get_quiz_submission— your own attempt history and scores for a quiz
Cross-course utilities:
list_upcoming_deadlines— everything due soon across ALL your courses, sorted by date — good for "what's due this week"whoami— confirms the server is authenticated correctly (quick connectivity check)
Note on quiz questions: Canvas only exposes actual quiz question content while you have an active, in-progress attempt (and even then, only for certain quiz types).
get_quizreturns the quiz's description/instructions rather than the questions themselves — this is a Canvas API limitation, not something the server withholds.
All Canvas HTML content (pages, announcements, assignment descriptions, discussions, quiz instructions) is converted to plain readable text before being returned. get_file_content caps downloads at 20MB and truncates extracted text past ~60,000 characters (with a note) to keep responses manageable.
1. Get your Canvas credentials
- Base URL: your school's Canvas domain, e.g.
https://canvas.upenn.edu(no trailing slash, no/api/v1). - API token: log into Canvas → click your profile picture → Account → Settings → scroll to Approved Integrations → + New Access Token → give it a purpose name like "Claude MCP" → generate → copy the token immediately (Canvas only shows it once).
Keep this token secret — it grants API access to your Canvas account.
2. Deploy (pick one)
Option A: Render (easiest, free tier)
- Push this folder to a new GitHub repo (or use Render's "Deploy from public repo" with the code inline).
- Go to https://dashboard.render.com → New → Web Service → connect the repo.
- Settings:
- Build command:
npm install - Start command:
npm start
- Build command:
- Under Environment, add:
CANVAS_BASE_URL=https://canvas.yourschool.eduCANVAS_API_TOKEN= (your token from step 1)MCP_SHARED_SECRET= (a long random string — runopenssl rand -hex 32to generate one)
- Deploy. Render gives you a public URL like
https://canvas-mcp-xyz.onrender.com. - Your MCP endpoint is
https://canvas-mcp-xyz.onrender.com/mcp/<your-secret>(note: the secret is part of the path, not a header — this is what makes the URL private).
Note: Render's free tier spins down after inactivity, so the first request after idling may take ~30s to wake up.
Option B: Fly.io
fly launch --no-deploy # answer prompts, don't add a database
fly secrets set CANVAS_BASE_URL=https://canvas.yourschool.edu CANVAS_API_TOKEN=your_token_here MCP_SHARED_SECRET=$(openssl rand -hex 32)
fly deploy
Your endpoint: https://your-app-name.fly.dev/mcp/<your-secret>
Option C: Railway
- https://railway.app → New Project → Deploy from GitHub repo (or "Empty Project" + upload).
- Add variables
CANVAS_BASE_URL,CANVAS_API_TOKEN, andMCP_SHARED_SECRETunder the Variables tab. - Railway auto-detects
npm start. Your endpoint:https://your-app.up.railway.app/mcp/<your-secret>
3. Connect it to Claude
- In Claude, go to Settings → Connectors (or Customize → Connectors).
- Click Add custom connector.
- Paste your full
/mcp/<secret>URL (e.g.https://canvas-mcp-xyz.onrender.com/mcp/9f3a...). - Leave OAuth fields blank — this server uses the secret baked into the URL, not per-user OAuth.
- Click Add, then enable it for your conversation via the + button → Connectors.
Security notes
- This server holds your Canvas token server-side, so treat the
/mcp/<secret>URL like a password — anyone who has it can act as you (read-only) in Canvas. MCP_SHARED_SECRETis what makes the URL unguessable. Without it,/mcpis open to anyone who finds your deployment's public address. Always set it.- The server only implements read (GET) endpoints — it can't post, submit, or modify anything in Canvas.
- Rotate your Canvas token any time from Canvas → Settings if you ever suspect it's exposed, and change
MCP_SHARED_SECRET(and re-add the connector in Claude) if the URL leaks.
Local testing
npm install
CANVAS_BASE_URL=https://canvas.yourschool.edu CANVAS_API_TOKEN=your_token MCP_SHARED_SECRET=devsecret npm start
Server listens on port 3000 (or $PORT) at /mcp/devsecret (or plain /mcp if you omit MCP_SHARED_SECRET).
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。