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.
file_idstringcourse_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.
course_idstringassignment_namestringget_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.
Local-first MCP server for Canvas LMS. Stdio transport, no network round-trips beyond the official Canvas API.
Status: alpha. Single-user, no warranty, API surface may still shift. File issues if it breaks.
Canvas is built for instructors. As a student you get a fragmented UI, no cross-course search, and notifications that arrive late or never. This server exposes the Canvas REST API as MCP tools so you can drive the LMS from any MCP-compatible client (Claude Code, Claude Desktop, etc.).
[client] ──stdio──> [server.py] ──https──> [Canvas API]
~/.canvas.env (chmod 600)list_courses, list_assignments, list_modules, list_announcements, get_page, get_file_info, get_grades, planner_items, upcoming_events, todo.
In Canvas: Account → Settings → Approved Integrations → + New Access Token. Copy the token shown — it is not retrievable afterwards.
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 .
Then create the env file:
curl -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
Claude Code:
claude mcp add canvas-local -- canvas-local-mcp
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"canvas-local": {
"command": "canvas-local-mcp"
}
}
}
canvas-local-mcp-dump downloads every file the user has access to (course materials, syllabi). Useful 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.
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)
miapre/html-to-figma-design-system
ie3jp/illustrator-mcp-server
coding-solo/godot-mcp
ivanmurzak/unity-mcp
yctimlin/mcp_excalidraw
figma/mcp-server-guide