Logo Canvas LMS MCP 服务器

Canvas LMS MCP 服务器

Cộng đồng
ahnopologetic

A minimal Canvas LMS MCP (Machine Conversation Protocol) server for easy access to education data through your Canvas LMS instance. This server provides a bridge between AI systems (like Cursor) and…

Nhà phát hànhahnopologetic
Kho mãcanvas-lms-mcp
Ngôn ngữPython
Bản fork
5
Sao
7
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Canvas LMS MCP 服务器 cung cấp các chức năng MCP cho các ứng dụng khách AI và tác nhân AI tương thích.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Mẫu cấu hình có thể sao chép ngay

    Dùng các đoạn cấu hình mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Mức độ quan tâm của cộng đồng đến kho mã

    7 sao và 5 bản fork từ kho mã được liên kết.

Canvas LMS MCP Server

smithery badge A minimal Canvas LMS MCP (Machine Conversation Protocol) server for easy access to education data through your Canvas LMS instance. This server provides a bridge between AI systems (like Cursor) and Canvas Learning Management System.

Features

  • Courses: List enrolled courses, get course details, syllabus, modules, and module items
  • Assignments: List and get assignments with optional submission status
  • Pages: Get course pages by URL slug
  • Submissions: List your own submissions with grades and feedback
  • Announcements: List announcements across multiple courses
  • Discussions: List topics and view full discussion threads
  • Calendar: List calendar events with date filtering
  • Planner: List planner items (assignments, announcements, etc.)
  • Enrollments: Get enrollment data with grades
  • Quizzes: List and get quizzes (classic quizzes only)
  • Files: List and get files
  • Navigation: Get course tabs, assignment groups, and favorite courses

Installation

Installing via Smithery

To install Canvas LMS Server for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install @ahnopologetic/canvas-lms-mcp --client claude

Prerequisites

  • Python 3.13+
  • Canvas LMS API token
  • uv package manager (recommended)

Installation Methods

Option 1: Install with uvx (Recommended)

The easiest way to install and run canvas-lms-mcp is using uvx:

bash
uvx canvas-lms-mcp

This will run the server in an isolated environment without installing it permanently.

To install the tool permanently:

bash
uv tool install canvas-lms-mcp

Option 2: Install from Source

  1. Clone the repository:

    bash
    git clone https://github.com/yourusername/canvas-lms-mcp.git
    cd canvas-lms-mcp
  2. Install with uv:

    bash
    # Install uv if you don't have it yet
    curl -LsSf https://astral.sh/uv/install.sh | sh
    
    # Create a virtual environment and install dependencies
    uv venv
    uv pip install -e .

    Alternatively, use traditional methods:

    bash
    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    pip install -e .

Configuration

Set the following environment variables:

bash
export CANVAS_API_TOKEN="your_canvas_api_token"
export CANVAS_BASE_URL="https://your-institution.instructure.com"  # Default: https://canvas.instructure.com

You can get your Canvas API token from your Canvas account settings.

Running the Server

Start the server with uv:

bash
uv run src/canvas_lms_mcp/main.py

If installed with uvx tool:

bash
canvas-lms-mcp

By default, the server runs on http://localhost:8000. You can use the FastMCP interface at http://localhost:8000/docs to interact with the API.

Available Tools

The server provides 22 tools for interacting with Canvas LMS:

Courses

list_courses

List courses that the user is actively enrolled in.

Parameters:

  • page (optional, default=1): Page number (1-indexed)
  • items_per_page (optional, default=10): Number of items per page

get_course

Get a single course by ID.

Parameters:

  • course_id (required): Course ID
  • include (optional): List of additional data to include

get_course_syllabus

Get a course's syllabus body as HTML.

Parameters:

  • course_id (required): Course ID

get_course_modules

Get modules for a course.

Parameters:

  • course_id (required): Course ID
  • include (optional): List of additional data to include
  • per_page (optional, default=100): Number of items per page

get_module_items

Get items for a specific module.

Parameters:

  • course_id (required): Course ID
  • module_id (required): Module ID

Assignments

list_assignments

List assignments for a course.

Parameters:

  • course_id (required): Course ID
  • bucket (required): Filter by "past", "overdue", "undated", "ungraded", "unsubmitted", "upcoming", or "future"
  • order_by (required): Order by "due_at", "position", or "name"
  • include (optional): List of additional data to include (e.g., ["submission"] to see grade status)
  • page (optional, default=1): Page number (1-indexed)
  • items_per_page (optional, default=10): Number of items per page

get_assignment

Get a single assignment by ID.

Parameters:

  • course_id (required): Course ID
  • assignment_id (required): Assignment ID

list_assignment_groups

List assignment groups for a course (shows grade weighting/categories).

Parameters:

  • course_id (required): Course ID

Pages

get_page

Get a single page by its URL slug.

Parameters:

  • course_id (required): Course ID
  • page_slug (required): Page URL slug (e.g., "syllabus", "course-handbook")

Submissions

list_submissions

List the current user's submissions for a course, including grades and feedback.

Parameters:

  • course_id (required): Course ID
  • include (optional): List of additional data (e.g., ["assignment", "submission_comments"])
  • page (optional, default=1): Page number (1-indexed)
  • items_per_page (optional, default=10): Number of items per page

Announcements

list_announcements

List announcements for one or more courses.

Parameters:

  • course_ids (required): List of course IDs
  • page (optional, default=1): Page number (1-indexed)
  • items_per_page (optional, default=10): Number of items per page

Discussions

list_discussions

List discussion topics for a course.

Parameters:

  • course_id (required): Course ID
  • page (optional, default=1): Page number (1-indexed)
  • items_per_page (optional, default=10): Number of items per page

get_discussion_view

Get the full view of a discussion topic including all replies.

Parameters:

  • course_id (required): Course ID
  • discussion_id (required): Discussion topic ID

Calendar

list_calendar_events

List calendar events for courses.

Parameters:

  • context_codes (required): List of context codes (e.g., ["course_123"])
  • start_date (optional): Start date in ISO 8601 format
  • end_date (optional): End date in ISO 8601 format
  • page (optional, default=1): Page number (1-indexed)
  • items_per_page (optional, default=10): Number of items per page

Planner Items

list_planner_items

List planner items for the authenticated user.

Parameters:

  • start_date (required): Start date in ISO 8601 format
  • end_date (required): End date in ISO 8601 format
  • context_codes (optional): List of context codes (e.g., ["course_123"])
  • page (optional, default=1): Page number (1-indexed)
  • items_per_page (optional, default=10): Number of items per page

Enrollments

get_enrollments

Get the current user's enrollments including grades.

Quizzes

list_quizzes

List quizzes for a course. Note: only works with Classic Quizzes, not New Quizzes (quiz_lti).

Parameters:

  • course_id (required): Course ID
  • include (optional): List of additional data to include
  • page (optional, default=1): Page number (1-indexed)
  • items_per_page (optional, default=10): Number of items per page

get_quiz

Get a single quiz by ID.

Parameters:

  • course_id (required): Course ID
  • quiz_id (required): Quiz ID

Files

list_files

List files for a course or folder. Note: may return 403 for student accounts depending on institution permissions.

Parameters:

  • course_id (optional): Course ID
  • folder_id (optional): Folder ID
  • include (optional): List of additional data to include
  • page (optional, default=1): Page number (1-indexed)
  • items_per_page (optional, default=10): Number of items per page

get_file

Get a file by ID. Works with known file IDs even when list_files is restricted.

Parameters:

  • course_id (required): Course ID
  • file_id (required): File ID

Other

get_tabs

Get available tabs/navigation items for a course.

Parameters:

  • course_id (required): Course ID

list_favorites

List the current user's favorite courses.

Integration

This MCP server works with any client that supports the Model Context Protocol, including Claude Desktop, Claude Code, Cursor, Windsurf, and others.

The MCP configuration is the same across all clients — only the config file location differs:

json
{
    "mcpServers": {
        "canvas": {
            "command": "uvx",
            "args": ["canvas-lms-mcp"],
            "env": {
                "CANVAS_API_TOKEN": "your_canvas_api_token",
                "CANVAS_BASE_URL": "https://your-institution.instructure.com"
            }
        }
    }
}

Replace your_canvas_api_token with your Canvas API token (found in Canvas → Account → Settings → New Access Token) and your-institution.instructure.com with your institution's Canvas URL.

Claude Desktop

Add to your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Restart Claude Desktop after saving.

Claude Code

Add to your project's .mcp.json or global ~/.claude/settings.json:

json
{
    "mcpServers": {
        "canvas": {
            "command": "uvx",
            "args": ["canvas-lms-mcp"],
            "env": {
                "CANVAS_API_TOKEN": "your_canvas_api_token",
                "CANVAS_BASE_URL": "https://your-institution.instructure.com"
            }
        }
    }
}

Cursor

Add to .cursor/mcp.json in your project directory. Restart Cursor after saving.

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json. Restart Windsurf after saving.

Usage Examples

Once connected, you can ask your AI assistant about your Canvas data:

  • "What assignments do I have due next week?"
  • "Show me the syllabus for my Biology course"
  • "What announcements were posted today?"
  • "What are my grades so far?"
  • "What's on my schedule for tomorrow?"
  • "Show me the discussion posts for my English class"

Development

For detailed development instructions, please see the DEVELOPMENT.md file.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Cài đặt

TypingMind
Yêu cầu:

Node.js 18+

{
  "mcpServers": {
    "ahnopologetic-canvas-lms-mcp": {
      "command": "uvx",
      "args": [
        "canvas-lms-mcp"
      ]
    }
  }
}

Dùng MCP Canvas LMS MCP 服务器 với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Canvas LMS MCP 服务器, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Thiết lập trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Thiết lập trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh thiết lập trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Để tiến trình tiếp tục chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Để tiến trình tiếp tục chạy trong cửa sổ Terminal khi bạn dùng các công cụ MCP.
3

Thêm Canvas LMS MCP 服务器 làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Canvas LMS MCP 服务器.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "ahnopologetic-canvas-lms-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "canvas-lms-mcp"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Canvas LMS MCP 服务器, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Canvas LMS MCP 服务器.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện trên TypingMind dùng các công cụ MCP đã bật với mô hình AI đã chọn
Bạn có thể dùng Canvas LMS MCP 服务器 giúp tôi làm việc này không?
Canvas LMS MCP 服务器
Được. Tôi đọc rồi.
Đây là kết quả tôi tìm được bằng Canvas LMS MCP 服务器.

Câu hỏi thường gặp

Máy chủ MCP Canvas LMS MCP 服务器 dùng để làm gì?

Canvas LMS MCP 服务器 là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Canvas LMS MCP 服务器 với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Canvas LMS MCP 服务器 với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Canvas LMS MCP 服务器 với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Canvas LMS MCP 服务器, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Canvas LMS MCP 服务器 với TypingMind?

Canvas LMS MCP 服务器 hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Canvas LMS MCP 服务器 cung cấp những công cụ nào trong TypingMind?

Canvas LMS MCP 服务器 cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Canvas LMS MCP 服务器 không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Canvas LMS MCP 服务器 yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇