A self-hosted MCP server that gives your AI assistant full student access to Canvas LMS from your phone, laptop or the web. Always on, password-protected, with automatic failover across your computers.
Both editions have the same 242 tools. The difference is where you can use them.
Best if you want Canvas everywhere.
Best if you only need it on one computer.
More than a thin API wrapper. Higher-level tools answer the questions you really have.
What-if scores, “what do I need on the final”, weighted breakdowns and which assignments move your grade most.
Week-ahead view, semester snapshot, study priority ranking and every missing assignment across all courses in one call.
Submit text, links and files. Every write shows a dry-run preview first and only sends when confirmed.
Pull entire threads in one request, reply, and message instructors with recipient lookup.
Files, pages, modules, lecture captions and a full .imscc course export before access ends.
Runs in the background with optional failover between computers, over an ngrok or Cloudflare tunnel, or in Docker. One command sets it to start with your computer.
Open /status on your address to see if the server is online, which computer is serving, and which apps are signed in, with a sign-out button for each.
New grades, announcements, work due soon, new assignments and teacher comments, by ntfy, Discord, Telegram, Slack, Teams or Pushover, instantly or as a daily digest.
The server only listens on your own computer. A private tunnel with a password-protected login is the only way in.
You need Node.js 18+ (22+ to read PDFs), a Canvas account and a free ngrok account (or a Cloudflare account with your own domain). Prefer containers? The repo has a Docker setup.
npm install -g canvas-lms-mcp-remote mkdir canvas-mcp cd canvas-mcp canvas-lms-mcp-remote init
That folder holds your settings. Prefer git? git clone the repo and run npm install instead.
In Canvas, go to Account → Settings → Approved Integrations → + New Access Token. Copy it right away, because Canvas only shows it once.
Install ngrok, add your authtoken, and claim a free static domain in the ngrok dashboard.
winget install --id Ngrok.Ngrok -e ngrok update ngrok config add-authtoken <your-ngrok-token>
Don't skip ngrok update: the winget version is often too old for ngrok's free plan (ERR_NGROK_121).
.envCopy .env.example to .env and fill in your values.
CANVAS_API_TOKEN=your_canvas_token CANVAS_BASE_URL=https://yourschool.instructure.com CANVAS_MCP_PUBLIC_URL=https://your-domain.ngrok-free.dev CANVAS_MCP_PASSWORD=a_long_random_password CANVAS_MCP_CLUSTER_SECRET=another_long_random_secret
canvas-lms-mcp-remote doctor canvas-lms-mcp-remote install-service
doctor checks your settings, token and tunnel and says how to fix anything wrong. install-service starts the server now and every time you sign in, on Windows, Linux or macOS. From source, use node cli.js doctor and node cli.js install-service.
Then open https://<your-domain>/status and enter your password to check it's online.
In your AI app's settings, add a custom connector (also called a remote MCP server) with the URL https://<your-domain>/mcp and log in with your password. Apps that sync connectors to your account will show it on your phone and desktop too. Then ask your assistant to run test_connection.
ChatGPT desktop app: open Settings → Plugins, go to the MCPs tab and click Add → Add MCP server. Choose Streamable HTTP, paste the same URL, add the header ngrok-skip-browser-warning with the value 1, and click Save. Then click Authenticate and log in with your password.
Command-line and editor clients: add an HTTP MCP server named canvas with the same URL.
The free Canvas MCP Installer Assistant walks you through every step above with pictures and a check after each one. For a one-time $5 it does the whole Remote setup for you: ngrok, your settings, a test run and start at logon, and it can add Remote to the ChatGPT desktop app in one click. Card payments aren't open yet: to buy a key, email fireiscoolsolo@gmail.com. See screenshots and FAQ →
Windows may say "Windows protected your PC" because the app isn't code-signed yet. Click More info, then Run anyway. The Mac version is a beta and isn't signed by Apple yet: the first time you open it, click Done, then Open Anyway in System Settings → Privacy & Security.
Install it on your desktop and your laptop, or more. One computer serves, the others stand by, and if the active one sleeps or shuts down, another takes over in about a minute. Nobody gets logged out.
git clone https://github.com/Fireiscoolsolo/canvas-lms-mcp-server.git cd canvas-lms-mcp-server npm install
Create .env with the same CANVAS_MCP_PUBLIC_URL, CANVAS_MCP_PASSWORD and CANVAS_MCP_CLUSTER_SECRET as your first computer. Give each computer its own Canvas token so you can revoke one without breaking the others. Move secrets with a password manager or USB drive, never by email or cloud storage.
winget install --id Ngrok.Ngrok -e ngrok update ngrok config add-authtoken <same authtoken as computer A>
Register the same CanvasSupervisor scheduled task, then check supervisor.log. You should see either active and serving or already active and healthy — … starting in standby. Both mean it's working.
Fully stop the active computer. Within about a minute, the other one logs active instance appears to be gone — taking over, and your assistant keeps working.
Everything lives in .env. The first five are required. The shared ones must match on every computer.
| Variable | Default | Description |
|---|---|---|
CANVAS_API_TOKEN required | — | Your Canvas personal access token |
CANVAS_BASE_URL required | — | Your school's Canvas address |
CANVAS_MCP_PUBLIC_URL remote | — | Your ngrok static domain |
CANVAS_MCP_PASSWORD remote | — | Password for the login page |
CANVAS_MCP_CLUSTER_SECRET remote | — | Protects the supervisor's internal endpoints |
CANVAS_ALLOW_WRITES | true | false = read-only mode |
CANVAS_PROFILE | full | Which tools to turn on, by name or number (see below) |
CANVAS_CACHE_TTL | 60 | Response cache time in seconds |
CANVAS_TIMEZONE | system | Time zone for due-date math |
CANVAS_DOWNLOAD_DIR | ./canvas-downloads | Where downloads are saved |
CANVAS_MCP_PORT | 3939 | Local port |
Fewer tools can help an AI app pick the right one. Set CANVAS_PROFILE in .env to a name or number, such as CANVAS_PROFILE=study or 3, then run canvas-lms-mcp-remote restart. Not set means full. Use the same profile on every computer. Names other than full and core need version 1.5.0 or newer.
| Number | Name | What it's for | Tools |
|---|---|---|---|
| 1 | essentials | The daily basics: what's due, your grades, announcements and reading an assignment. Nothing here changes Canvas. Best for small local models. | 24 |
| 2 | core | A bit of everything, including turning in work and sending messages. | 49 |
| 3 | study | Planning your week and studying: planner, calendar, study plans, course files and pages. | 38 |
| 4 | grades | Grades and feedback: scores, what-if, what you need on the final, rubrics and comments. | 31 |
| 5 | readonly | Everything that only looks. Nothing in Canvas can change. | 177 |
| 6 | full | Every tool. The default. | 242 |
Covers everything a student account can reach, plus raw_canvas_request for anything else.
Files, pages, modules, captions, reading PDFs and slides, ePortfolios, exports
Profile, token expiry, notification settings
Full threads, replies, school-wide announcements
Teachers and office hours, permissions, nicknames
Submit, comment, rubric results
Final-grade scenarios, what-if, impact, GPA
Messages and recipients
Assignment brief, missing work, late policy
Week ahead, priorities, semester wrap-up
Daily briefing, to-do notes, study plans, calendar export
Read-only: dates, attempts
Events, office-hours booking
Group workspaces
Rubrics and peer reviews
Raw requests, diagnostics
Smart and keyword search
Your Canvas token never leaves your computer, and your assistant can't act without asking first.
Anything that sends, submits, posts or deletes shows a preview first and needs a one-time token, for that exact request.
Text other people wrote is wrapped in CANVAS_CONTENT markers and labelled as untrusted.
Quiz attempt endpoints are deliberately left out and blocked.
Login is rate limited, access tokens last 1 hour and refresh tokens are replaced every time they're used.
.env, oauth-store.json and supervisor.log. All three are already listed in .gitignore.