Canvas MCP Server
Provides read-only tools to interact with Canvas LMS, including listing courses, assignments, grades, upcoming events, announcements, modules, and searching course content.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Canvas MCP ServerList my courses and their current grades."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Canvas MCP Server
An MCP server, built with FastMCP, that connects Claude to the Canvas LMS REST API. Once configured, you can ask Claude about your courses, assignments, grades, upcoming deadlines and announcements in plain language.
Tools exposed to Claude
Tool | Description |
| List all active courses you are enrolled in (id, name, course code, enrollment type). |
| List all assignments for a course (id, name, due date, points, submission types). |
| Full details of one assignment, including a plain-text description, unlock and lock dates. |
| Your current grade/score in a course plus a list of graded submissions. |
| Upcoming assignment due dates and calendar events within the next N days. |
| The 10 most recent announcements for a course, as plain text. |
| The authenticated user's id, name and email — handy for verifying your token. |
| A course's modules and their items (pages, assignments, files, ...). |
| Search a course's assignments and modules for a term. |
All tools are read-only — this server never modifies anything in Canvas.
Related MCP server: Canvas Academic Assistant
1. Generate a Canvas API token
You authenticate to Canvas with a personal access token. To create one:
Log in to your institution's Canvas site (for example,
https://gatech.instructure.com).Click Account in the global navigation menu on the far left.
Click Settings.
Scroll down to the Approved Integrations section.
Click the + New Access Token button.
Enter a Purpose (e.g.
Claude MCP server). You may leave the Expires field blank for a non-expiring token, or set an expiry date.Click Generate Token.
Copy the token immediately and store it somewhere safe — Canvas only shows it once. If you lose it you must generate a new one.
Treat this token like a password. Anyone with it can act as you in Canvas. Never commit it to git or share it. This project keeps it in a git-ignored
.envfile.
2. Setup
Copy or clone these files to a folder on your machine, then from inside that folder:
a. Create your .env
cp .env.example .envOn Windows PowerShell:
Copy-Item .env.example .envOpen .env and fill in your values:
CANVAS_API_TOKEN=1234~your_real_token_here
CANVAS_BASE_URL=https://gatech.instructure.comSet CANVAS_BASE_URL to your institution's Canvas URL (no trailing
/api/v1 — the server appends that for you).
b. Install dependencies
It is recommended to use a virtual environment:
python -m venv .venv
# macOS/Linux:
source .venv/bin/activate
# Windows PowerShell:
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt3. Run the server
The server speaks MCP over stdio. You can launch it either way:
fastmcp run canvas_mcp/server.pyor
python -m canvas_mcp.serverIf CANVAS_API_TOKEN or CANVAS_BASE_URL is missing, the server raises a
clear RuntimeError explaining what to fix.
When run directly, an MCP server waits for a client (such as Claude Desktop) to connect over stdio — so it is normal for it to appear to "hang" with no output. That means it started correctly.
4. Connect it to Claude Desktop (Windows)
Claude Desktop launches the server for you, so you normally do not run the commands above by hand once it is configured.
Open the Claude Desktop config file. On Windows it lives at:
%APPDATA%\Claude\claude_desktop_config.jsonYou can paste that path into the Run dialog (
Win + R) or open it from Claude Desktop via File → Settings → Developer → Edit Config.Add a
canvasentry undermcpServers. Pass your Canvas credentials directly in anenvblock — that way Claude Desktop sets them in the server's environment and you do not need a separate.envfile. Replace the paths and values with your own:{ "mcpServers": { "canvas": { "command": "C:\\Users\\YourName\\projects\\canvas-mcp\\.venv\\Scripts\\python.exe", "args": [ "-m", "canvas_mcp.server" ], "cwd": "C:\\Users\\YourName\\projects\\canvas-mcp", "env": { "CANVAS_BASE_URL": "https://your-school.instructure.com", "CANVAS_API_TOKEN": "YOUR_TOKEN_HERE" } } } }Notes:
Use double backslashes (
\\) in every JSON path on Windows.The
envblock is the recommended way to supplyCANVAS_BASE_URLandCANVAS_API_TOKEN— the server reads them straight from its environment, so a.envfile is optional when launched this way.commandshould be the Python interpreter. Using the project's.venv\\Scripts\\python.exeguarantees the installed dependencies are on the path. Plain"python"also works only if it is on your PATH and has the requirements installed.cwdmust point at the project root (the folder that contains thecanvas_mcppackage) sopython -m canvas_mcp.servercan import it.
Save the file.
5. Verify it works
Fully quit Claude Desktop (right-click the tray icon → Quit) and reopen it. Config changes are only picked up on a fresh start.
Open a new chat. Click the tools/plug icon in the message box — you should see canvas listed with its tools.
Ask something like:
"Who am I logged in as in Canvas?"
Claude should call
get_current_userand return your name — a quick token check. Then try:"What courses am I enrolled in this semester?"
Claude should call
get_coursesand respond with your course list.Follow up with, for example:
"What assignments are due in the next week?"
to exercise
get_upcoming_events.
Troubleshooting
Server not listed / red error in Claude: open Settings → Developer in Claude Desktop and view the MCP logs, or check
%APPDATA%\Claude\logs\.RuntimeError: CANVAS_API_TOKEN is not set: theenvblock is missing from yourclaude_desktop_config.json(or, if you run it manually, your.envis missing / not in thecwdyou configured).HTTP 401 errors in tool output: the token is wrong, expired, or revoked — generate a new one (Section 1).
HTTP 404 errors: double-check the
course_idand thatCANVAS_BASE_URLmatches your institution.
Project structure
canvas_mcp/
__init__.py # package marker (empty)
server.py # FastMCP app + all six tools
requirements.txt # pinned dependencies
.env.example # template for your .env (copy to .env)
.env # your secrets (git-ignored, never committed)
README.md # this fileLicense
Provided as-is for personal/educational use. You are responsible for complying with your institution's Canvas API usage policies.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Gowindude/canvas-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server