
If you're a student tired of Canvas's scattered interface and want programmatic access to your courses, assignments, and notifications, this server wraps the Canvas LMS REST API into ten MCP tools: list_courses, list_assignments, list_modules, get_grades, planner_items, and more. It runs locally over stdio with your personal access token stored in a chmod 600 env file, so no credentials leave your machine except in direct HTTPS calls to Canvas. The repo includes a bulk dump script that pulls every file you have access to for offline indexing. Alpha status, single Python file, MIT licensed.
Public tool metadata for what this MCP can expose to an agent.
get_coursesRetrieve all available Canvas courses for the current user. Returns a dictionary mapping course names to their corresponding IDs.Retrieve all available Canvas courses for the current user. Returns a dictionary mapping course names to their corresponding IDs.
No parameter schema in public metadata yet.
get_modulesRetrieve all modules within a specific Canvas course.1 paramsRetrieve all modules within a specific Canvas course.
course_idstringget_module_itemsRetrieve all items within a specific module in a Canvas course.2 paramsRetrieve all items within a specific module in a Canvas course.
course_idstringmodule_idstringget_file_urlGet the direct download URL for a file stored in Canvas.2 paramsGet the direct download URL for a file stored in Canvas.
course_idstringfile_idstringget_course_assignmentsRetrieve all assignments for a specific Canvas course.2 paramsRetrieve all assignments for a specific Canvas course.
bucketstringcourse_idstringget_assignments_by_course_nameRetrieve all assignments for a Canvas course using its name.2 paramsRetrieve all assignments for a Canvas course using its name.
bucketstringcourse_namestringget_canvas_coursesAlias for get_courses - retrieve all Canvas courses.Alias for get_courses - retrieve all Canvas courses.
No parameter schema in public metadata yet.
get_gradescope_coursesRetrieve all Gradescope courses for the current user.Retrieve all Gradescope courses for the current user.
No parameter schema in public metadata yet.
get_gradescope_course_by_nameFind a Gradescope course by name.1 paramsFind a Gradescope course by name.
course_namestringget_gradescope_assignmentsRetrieve all assignments for a Gradescope course.1 paramsRetrieve all assignments for a Gradescope course.
course_idstringget_gradescope_assignment_by_nameFind a Gradescope assignment by name.2 paramsFind a Gradescope assignment by name.
assignment_namestringcourse_idstringget_cache_statsGet cache statistics for debugging purposes. Returns hit/miss counts and cache size.Get cache statistics for debugging purposes. Returns hit/miss counts and cache size.
No parameter schema in public metadata yet.
clear_cacheClear all cached data. Use this if you need fresh data from Canvas or Gradescope.Clear all cached data. Use this if you need fresh data from Canvas or Gradescope.
No parameter schema in public metadata yet.
canvas-mcp)Ask Claude about your Canvas courses, assignments, deadlines, modules, and grades from one place.
canvas-mcp is a local-first MCP server for Canvas LMS users (students, instructors, and MCP builders). It turns Canvas REST API actions into MCP tools that work from Claude Code, Claude Desktop, and other MCP-compatible clients.
Status: alpha. Single-user, no warranty, API surface may still shift. File issues if it breaks.
12345.”12345.”syllabus from course 12345.”Prerequisite: Python 3.10+.
In Canvas: Account → Settings → Approved Integrations → + New Access Token. Copy the token shown (Canvas does not show it again later).
From PyPI (recommended):
pip install canvas-local-mcp
Or from source:
git clone https://github.com/admin978/canvas-mcp.git && cd canvas-mcp
python3 -m venv .venv && source .venv/bin/activate
pip install -e .
~/.canvas.envcurl -fsSL https://raw.githubusercontent.com/admin978/canvas-mcp/main/.canvas.env.example -o ~/.canvas.env
chmod 600 ~/.canvas.env
# edit ~/.canvas.env: set CANVAS_BASE_URL (institution root, no /api/v1)
# and paste the token into CANVAS_TOKEN
For token safety guidance (least privilege, file permissions, rotation/revocation, and vulnerability reporting), see SECURITY.md.
Claude Code:
claude mcp add canvas-local -- canvas-local-mcp
Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"canvas-local": {
"command": "canvas-local-mcp"
}
}
}
list_courseslist_assignmentslist_moduleslist_announcementsget_pageget_file_infoget_gradesplanner_itemsupcoming_eventstodocanvas-local-mcp-dump downloads course files and related content for offline indexing.
canvas-local-mcp-dump # all active courses
canvas-local-mcp-dump 12345 67890 # specific course IDs
Output goes to ./canvas-dump/ by default. Override with CANVAS_DUMP_DIR=/path/to/dir.
~/.canvas.env (CANVAS_BASE_URL, CANVAS_TOKEN).No demo GIF is currently committed yet. You can still verify the workflow quickly:
After registering the MCP server, ask Claude:
Placeholder: add a short terminal/GIF walkthrough here in a future PR.
Requires Python 3.10+.
pip install -e ".[dev]"
ruff check canvas_local_mcp tests # lint
pytest # tests run against a mocked Canvas API — no token needed
CI runs lint + tests on Python 3.10–3.13 for every push and pull request.
Follow this order to publish a new version (e.g. 0.1.4) consistently across PyPI and the MCP Registry.
Update all three files to the new version string in a single PR:
| File | Field |
|---|---|
pyproject.toml | [project].version |
canvas_local_mcp/__init__.py | __version__ |
server.json | root version and packages[0].version |
The CI test test_server_json_version_matches_package and the workflow validation step will fail if any of these three disagree.
mainWait for all CI checks to pass before merging.
canvas-local-mcp to PyPIThe project uses Trusted Publisher (OIDC) for PyPI uploads.
Trigger the PyPI publish workflow (or run python -m build && twine upload dist/* if you have credentials configured) before creating the tag, so the package is available when the MCP Registry fetches it.
vX.Y.Zgit tag v0.1.4
git push origin v0.1.4
This triggers the Publish to MCP Registry workflow, which:
server.json, pyproject.toml, and the tag all declare the same version.server.json to the MCP Registry via GitHub OIDC (no secrets needed).https://pypi.org/project/canvas-local-mcp/https://registry.modelcontextprotocol.io/?q=canvas-mcphttps://github.com/admin978/canvas-mcp/actionsImportant: never reuse or move an existing tag. If you need to re-publish after a mistake, bump to the next patch version (e.g.
0.1.4) and start from step 1.
If this project helps you manage Canvas with Claude, please try the flow above and consider giving it a ⭐ so other students and educators can find it.
MIT — see LICENSE.
Built by AGENTE 404 S.L. · admin@agente404.com
CANVAS_BASE_URL*Canvas institution root URL (no /api/v1 suffix), e.g. https://your-institution.instructure.com
CANVAS_TOKEN*secretCanvas personal access token (Account -> Settings -> Approved Integrations -> New Access Token)