Logo van Canvas LMS MCP 服务器

Canvas LMS MCP 服务器

Community
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…

Uitgeverahnopologetic
Repositorycanvas-lms-mcp
TaalPython
Forks
5
Sterren
7
Beschikbare tools
0
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    Canvas LMS MCP 服务器 biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • Beschikbare tools: 0

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Belangstelling voor het opensourceproject

    Statistieken van de gekoppelde repository (sterren: 7, forks: 5).

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.

Installatie

TypingMind
Vereisten:

Node.js 18+

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

Gebruik Canvas LMS MCP 服务器 MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra Canvas LMS MCP 服务器 is verbonden, kun je de verbinding dus met verschillende AI-modellen in TypingMind gebruiken, zonder die voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg Canvas LMS MCP 服务器 toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus op ‘Gereed’ staat.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van Canvas LMS MCP 服务器.
  4. Sla de serverlijst op.
  5. Vernieuw de pagina als je wilt controleren of de connectorstatus nog op ‘Gereed’ staat.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "ahnopologetic-canvas-lms-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "canvas-lms-mcp"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van Canvas LMS MCP 服务器 in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van Canvas LMS MCP 服务器 in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je Canvas LMS MCP 服务器 gebruiken om me hiermee te helpen?
Canvas LMS MCP 服务器
Zeker. Ik heb het gelezen.
Dit vond ik met Canvas LMS MCP 服务器.

Veelgestelde vragen

Waarvoor wordt de MCP-server Canvas LMS MCP 服务器 gebruikt?

Canvas LMS MCP 服务器 is een MCP-server waarmee compatibele AI-clients toegang krijgen tot externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik Canvas LMS MCP 服务器 MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je Canvas LMS MCP 服务器 gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom Canvas LMS MCP 服务器 MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als Canvas LMS MCP 服务器 verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik Canvas LMS MCP 服务器 MCP met TypingMind?

Canvas LMS MCP 服务器 werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt Canvas LMS MCP 服务器 MCP in TypingMind?

Canvas LMS MCP 服务器 biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om Canvas LMS MCP 服务器 MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als Canvas LMS MCP 服务器 authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇