Canvas MCP Server
Enables AI assistants to interact with Canvas LMS through 25 comprehensive tools. Supports course management, assignments, grades, messaging, calendar events, and file access through natural language.
README
Canvas MCP Server
A Model Context Protocol server providing comprehensive access to Canvas LMS for AI assistants.
Features
Access Canvas LMS functionality through 31 MCP tools:
- Courses: List and view course information
- Assignments: Browse, view details, check submissions, and submit work
- Grades: View grades for individual courses or across all courses
- Messaging: Send and receive messages, manage conversations (read/unread, star, archive, delete)
- Calendar: View events and upcoming deadlines
- To-Do Lists: Track pending tasks and assignments
- Modules: Navigate course content structure
- Announcements: Read course and institutional announcements
- Files: Access and download course materials
- Quizzes: View quizzes and submissions
- Users: Search for classmates and instructors
Installation
Prerequisites
- Bun runtime
- Canvas LMS account with API access token
Setup
- Install dependencies:
bun install
-
Get your Canvas API token:
- Log into Canvas
- Navigate to Account → Settings
- Scroll to "Approved Integrations"
- Click "+ New Access Token"
- Generate and copy the token
-
Configure environment variables:
export CANVAS_BASE_URL="https://your-institution.instructure.com"
export CANVAS_ACCESS_TOKEN="your_access_token_here"
- Configure your MCP client with the following settings:
{
"mcpServers": {
"canvas": {
"command": "bun",
"args": ["run", "/absolute/path/to/canvas/src/index.ts"],
"env": {
"CANVAS_BASE_URL": "https://your-institution.instructure.com",
"CANVAS_ACCESS_TOKEN": "your_access_token_here"
}
}
}
}
Usage
After setup, interact with Canvas through your MCP client:
Show me all my current courses
What assignments do I have due soon?
What are my grades in all my classes?
Show me my recent Canvas messages
Development
Quality Gates
bun run format # Format code with Prettier
bun run lint # Lint code with ESLint
bun run typecheck # Type check with TypeScript
bun test # Run tests
Build
bun run build # Build for production
bun run dev # Run in development mode
Documentation
Architecture
Built with TypeScript and the MCP SDK, this server provides a type-safe interface to the Canvas LMS REST API. All operations use Bearer token authentication and respect Canvas rate limits.
Project Structure
canvas/
├── src/
│ ├── canvas/
│ │ ├── client.ts # Canvas API client
│ │ └── client.test.ts # Client tests
│ └── index.ts # MCP server implementation
├── docs/ # Documentation
├── package.json # Dependencies and scripts
└── tsconfig.json # TypeScript configuration
Security
- Store credentials in environment variables
- Never commit access tokens to version control
- Use token expiration dates
- Rotate tokens regularly
- Follow your institution's API usage policies
API Reference
This server implements the Canvas LMS REST API v1. For detailed API documentation, visit the Instructure Developer Portal.
License
This project uses permissive open-source dependencies with no telemetry or tracking.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.