Canvas MCP Server
@defsolmcp
A Model Context Protocol (MCP) server for interacting with the Canvas LMS API
Overview
What is Canvas MCP Server?
A Model Context Protocol (MCP) server that provides tools for interacting with the Canvas Learning Management System (LMS) API. It allows AI assistants to perform operations on Canvas courses, assignments, users, and other resources.
How to use Canvas MCP Server?
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.
Key features of Canvas MCP Server
- 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
Use cases of Canvas MCP Server
- Manage courses, users, and assignments programmatically
- Automate quiz and module creation in Canvas
- Retrieve and update grades and announcements
- Handle discussions, pages, and files within a course
- Integrate AI assistants with Canvas workflows
FAQ from Canvas MCP Server
How do I generate a Canvas API token?
Log in to Canvas, go to Account > Settings > Approved Integrations, click "New Access Token", enter a purpose and expiration, generate, and copy the token to your .env file.
What are the system requirements?
Node.js v16 or higher, npm v7 or higher, a Canvas API token, and a Canvas course URL.
What Canvas resources can I manage?
Courses, users, assignments, quizzes, modules, pages, files, discussions, announcements, and grades, among others.
How do I run the server in development mode?
Use npm run dev to enable automatic reloading during development.