{"id":49320699,"url":"https://github.com/a-ariff/canvas-mcp","last_synced_at":"2026-04-26T17:32:04.878Z","repository":{"id":338626195,"uuid":"1158507197","full_name":"a-ariff/canvas-mcp","owner":"a-ariff","description":"Canvas LMS MCP server - query courses, assignments, grades and more","archived":false,"fork":false,"pushed_at":"2026-02-15T14:33:05.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-15T20:36:02.246Z","etag":null,"topics":["ai","assignments","canvas","canvas-api","canvas-lms","chatgpt","claude","cursor","edtech","education","grades","llm","lms","mcp","mcp-server","model-context-protocol","privacy","student-tools","typescript","university"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a-ariff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-15T13:46:02.000Z","updated_at":"2026-02-15T14:33:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/a-ariff/canvas-mcp","commit_stats":null,"previous_names":["a-ariff/canvas-mcp"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/a-ariff/canvas-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-ariff%2Fcanvas-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-ariff%2Fcanvas-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-ariff%2Fcanvas-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-ariff%2Fcanvas-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-ariff","download_url":"https://codeload.github.com/a-ariff/canvas-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-ariff%2Fcanvas-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32307011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T17:23:19.671Z","status":"ssl_error","status_checked_at":"2026-04-26T17:23:19.195Z","response_time":129,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","assignments","canvas","canvas-api","canvas-lms","chatgpt","claude","cursor","edtech","education","grades","llm","lms","mcp","mcp-server","model-context-protocol","privacy","student-tools","typescript","university"],"created_at":"2026-04-26T17:32:04.323Z","updated_at":"2026-04-26T17:32:04.873Z","avatar_url":"https://github.com/a-ariff.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Canvas MCP\n\n[![Build](https://github.com/a-ariff/canvas-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/a-ariff/canvas-mcp/actions/workflows/ci.yml)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5.6-blue.svg)](https://www.typescriptlang.org/)\n[![MCP](https://img.shields.io/badge/MCP-1.0-green.svg)](https://modelcontextprotocol.io/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n\nA local MCP (Model Context Protocol) server for Canvas LMS. Query your courses, assignments, grades, modules, and more from any MCP-compatible AI client — Claude Desktop, Cursor, VS Code Copilot, and others.\n\n**Your API key stays on your machine.** Unlike hosted MCP servers that require you to hand over your Canvas credentials, this server runs locally and communicates directly with your Canvas instance.\n\n## Architecture\n\n```mermaid\ngraph TB\n    subgraph \"MCP Clients\"\n        Claude[\"Claude Desktop\"]\n        Cursor[\"Cursor / VS Code\"]\n        Other[\"Other MCP Clients\"]\n    end\n\n    subgraph \"Your Machine (Local)\"\n        Server[\"Canvas MCP Server\u003cbr/\u003eNode.js + TypeScript\"]\n        ENV[\"Environment Variables\u003cbr/\u003eCANVAS_API_KEY\"]\n    end\n\n    subgraph \"Canvas LMS Tools\"\n        Courses[\"list_courses\"]\n        Assignments[\"get_assignments\u003cbr/\u003eget_upcoming_assignments\"]\n        Grades[\"get_grades\u003cbr/\u003eget_submission_status\"]\n        Content[\"get_modules\u003cbr/\u003eget_announcements\u003cbr/\u003eget_discussions\"]\n        Calendar[\"get_calendar_events\u003cbr/\u003eget_todo_items\u003cbr/\u003eget_quizzes\"]\n        Profile[\"get_user_profile\"]\n    end\n\n    subgraph \"Canvas Instance\"\n        API[\"Canvas REST API\u003cbr/\u003eHTTPS Only\"]\n    end\n\n    Claude --\u003e|stdio| Server\n    Cursor --\u003e|stdio| Server\n    Other --\u003e|stdio| Server\n\n    ENV -.-\u003e|read at startup| Server\n\n    Server --\u003e Courses\n    Server --\u003e Assignments\n    Server --\u003e Grades\n    Server --\u003e Content\n    Server --\u003e Calendar\n    Server --\u003e Profile\n\n    Courses --\u003e API\n    Assignments --\u003e API\n    Grades --\u003e API\n    Content --\u003e API\n    Calendar --\u003e API\n    Profile --\u003e API\n\n    style Server fill:#4CAF50,stroke:#333,color:#fff\n    style ENV fill:#FF9800,stroke:#333,color:#fff\n    style API fill:#2196F3,stroke:#333,color:#fff\n    style Claude fill:#7C4DFF,stroke:#333,color:#fff\n    style Cursor fill:#7C4DFF,stroke:#333,color:#fff\n    style Other fill:#7C4DFF,stroke:#333,color:#fff\n```\n\n\u003e **🔒 Privacy by design** — your API key is read from local environment variables and sent only to your Canvas instance over HTTPS. No intermediary servers, no third-party storage.\n\n## Features\n\n- **12 Canvas LMS tools** — courses, assignments, grades, modules, quizzes, and more\n- **Runs locally** — your credentials never leave your machine\n- **Zero config hosting** — no servers, no Cloudflare, no Docker needed\n- **Works with any MCP client** — Claude Desktop, Cursor, VS Code Copilot, ChatGPT\n- **TypeScript** — fully typed with Zod validation\n\n## Quick Start\n\n### 1. Get your Canvas API key\n\nGo to `Canvas → Account → Settings → Approved Integrations → New Access Token`\n\n\u003e **📖 Never done this before?** Follow the [step-by-step guide with screenshots](docs/CANVAS_API_GUIDE.md)\n\n### 2. Clone and build\n\n```bash\ngit clone https://github.com/a-ariff/canvas-mcp.git\ncd canvas-mcp\nnpm install\nnpm run build\n```\n\n### 3. Add to your MCP client\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eClaude Desktop\u003c/b\u003e\u003c/summary\u003e\n\nEdit `~/Library/Application Support/Claude/claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"canvas\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/canvas-mcp/dist/standalone.js\"],\n      \"env\": {\n        \"CANVAS_API_KEY\": \"your-canvas-api-token\",\n        \"CANVAS_BASE_URL\": \"https://your-canvas-instance.edu\"\n      }\n    }\n  }\n}\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eCursor / VS Code\u003c/b\u003e\u003c/summary\u003e\n\nAdd to your `.cursor/mcp.json` or VS Code MCP settings:\n\n```json\n{\n  \"mcpServers\": {\n    \"canvas\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/canvas-mcp/dist/standalone.js\"],\n      \"env\": {\n        \"CANVAS_API_KEY\": \"your-canvas-api-token\",\n        \"CANVAS_BASE_URL\": \"https://your-canvas-instance.edu\"\n      }\n    }\n  }\n}\n```\n\u003c/details\u003e\n\n### 4. Start chatting\n\nAsk your AI assistant things like:\n\n- \"What courses am I enrolled in?\"\n- \"What assignments are due this week?\"\n- \"Show me my grades for Computer Science 101\"\n- \"Are there any new announcements?\"\n\n## Tools\n\n| Tool | Description | Args |\n|------|-------------|------|\n| `list_courses` | Get all active courses | — |\n| `get_assignments` | Get assignments for a course | `course_id` |\n| `get_upcoming_assignments` | Upcoming assignments across all courses | — |\n| `get_grades` | Grades and scores for a course | `course_id` |\n| `get_user_profile` | Your Canvas profile info | — |\n| `get_modules` | Course modules and structure | `course_id` |\n| `get_announcements` | Recent course announcements | `course_id` |\n| `get_discussions` | Discussion topics | `course_id` |\n| `get_calendar_events` | Upcoming calendar events | — |\n| `get_todo_items` | Pending action items | — |\n| `get_quizzes` | Course quizzes | `course_id` |\n| `get_submission_status` | Assignment submission status | `course_id`, `assignment_id` |\n\n## Environment Variables\n\n| Variable | Required | Default | Description |\n|----------|----------|---------|-------------|\n| `CANVAS_API_KEY` | Yes | — | Your Canvas API access token |\n| `CANVAS_BASE_URL` | No | `https://canvas.instructure.com` | Your Canvas instance URL |\n| `DEBUG` | No | `false` | Enable debug logging |\n\n## Security\n\n- **Local execution only** — the server runs on your machine via stdio\n- **Direct API calls** — your Canvas API key is sent only to your Canvas instance, never to any third party\n- **No data storage** — nothing is cached or persisted between sessions\n- **Environment-based config** — credentials are read from environment variables, never hardcoded\n\n## Development\n\n```bash\n# install deps\nnpm install\n\n# build\nnpm run build\n\n# run locally\nCANVAS_API_KEY=your-token CANVAS_BASE_URL=https://your-canvas.edu npm start\n\n# run tests\nnpm test\n\n# lint\nnpm run lint\n```\n\n## Contributing\n\nContributions welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-ariff%2Fcanvas-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-ariff%2Fcanvas-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-ariff%2Fcanvas-mcp/lists"}