Canvas MCP Server

by defsolmcp

376 downloads
Not rated
GitHub

About

A Model Context Protocol (MCP) server for interacting with the Canvas LMS API

Details

Author
defsolmcp
Downloads
376
Categories
Other

- Full access to Canvas LMS API functionality
- Authentication via Canvas API tokens
- Support for all Canvas resources and endpoints
- Tools organized by resource category
- Built on the Model Context Protocol

Install Node.js v16+ and npm v7+, clone the repository, run npm install, and create a .env file with CANVAS_API_TOKEN, CANVAS_API_URL, and MCP_SERVER_NAME. Build with npm run build, start with npm start, then connect using an MCP-compatible client.

Canvas MCP Server

A Model Context Protocol (MCP) server for interacting with the Canvas LMS API.

Overview

This MCP server provides tools for interacting with the Canvas Learning Management System (LMS) API, allowing AI assistants to perform operations on Canvas courses, assignments, users, and more.

Features

- Full access to Canvas LMS API functionality
- Authentication via Canvas API tokens
- Support for all Canvas resources and endpoints
- Organized tools by resource category

Prerequisites

- Node.js (v16 or higher)
- npm (v7 or higher)
- Canvas API access token (generated from Canvas settings)
- Canvas course URL

Installation

1. Clone this repository:

   git clone https://github.com/yourusername/canvas-mcp-server.git
cd canvas-mcp-server

2. Install dependencies:

   npm install

3. Create a .env file in the root directory with your Canvas API credentials:

   CANVAS_API_TOKEN=your_canvas_api_token
CANVAS_API_URL=https://your-institution.instructure.com/api/v1
MCP_SERVER_NAME=canvas-mcp

Usage

1. Build the server:

   npm run build

2. Start the server:

   npm start

3. Connect to the server using an MCP-compatible client.

Available Tools

The Canvas MCP Server provides tools for interacting with various Canvas resources, including:

- Courses
- Users
- Assignments
- Quizzes
- Modules
- Pages
- Files
- Discussions
- Announcements
- Grades
- And many more...

Each tool is organized by resource category and follows the Canvas API naming conventions.

Authentication

To use this MCP server, you need to generate an API token from your Canvas account:

1. Log in to your Canvas account
2. Go to Account > Settings
3. Scroll down to the "Approved Integrations" section
4. Click "New Access Token"
5. Enter a purpose and expiration date
6. Click "Generate Token"
7. Copy the token and add it to your .env file

Development

To run the server in development mode with automatic reloading:

npm run dev

License

MIT

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.