{"id":26506395,"url":"https://github.com/dmontgomery40/mcp-canvas-lms","last_synced_at":"2025-03-20T22:35:23.179Z","repository":{"id":266595119,"uuid":"898779953","full_name":"DMontgomery40/mcp-canvas-lms","owner":"DMontgomery40","description":"A Model Context Protocol (MCP) server for interacting with the Canvas API. This server allows you to manage courses, assignments, enrollments, and grades within Canvas.","archived":false,"fork":false,"pushed_at":"2024-12-06T00:36:06.000Z","size":62,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-14T15:57:30.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DMontgomery40.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-05T02:46:01.000Z","updated_at":"2025-03-05T17:31:30.000Z","dependencies_parsed_at":"2024-12-05T04:26:57.302Z","dependency_job_id":"9ee1fcc2-00e2-4380-ad48-13538f2a0f32","html_url":"https://github.com/DMontgomery40/mcp-canvas-lms","commit_stats":null,"previous_names":["dmontgomery40/mcp-canvas-lms"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMontgomery40%2Fmcp-canvas-lms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMontgomery40%2Fmcp-canvas-lms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMontgomery40%2Fmcp-canvas-lms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DMontgomery40%2Fmcp-canvas-lms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DMontgomery40","download_url":"https://codeload.github.com/DMontgomery40/mcp-canvas-lms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244705669,"owners_count":20496546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-03-20T22:35:22.570Z","updated_at":"2025-03-20T22:35:23.149Z","avatar_url":"https://github.com/DMontgomery40.png","language":"JavaScript","funding_links":[],"categories":["Other Tools and Integrations"],"sub_categories":["How to Submit"],"readme":"\n# Canvas MCP Server\n\nA Model Context Protocol (MCP) server for interacting with the Canvas API. This server allows you to manage courses, assignments, enrollments, and grades within Canvas.\n\n## Prerequisites\n\n- **Node.js**: Version 18 or higher\n- **Canvas API Token**: Obtain from your Canvas account\n- **Canvas Domain**: Typically `canvas.instructure.com`\n\n## Setup\n\n1. **Clone the Repository**\n\n   ```bash\n   git clone https://github.com/yourusername/canvas-mcp-server.git\n   cd canvas-mcp-server\n\n2. **Install Dependencies**\n\n   ```bash\n   npm install\n   ```\n\n3. **Configure Environment Variables**\n\nCopy the example environment file:\n\n   ```bash\n   cp .env.example .env\n   ```\n\n   Edit .env and replace the placeholder values with your actual Canvas API token and domain.\n\nBuild the Project\n\n   ```bash\n   npm run build\n   ```\n\n4. **Run the Server**\n\n   ```bash\n   npm start\n   ```\n\n   The server will start and listen for MCP requests via stdio.\n\n### Connecting to Claude Desktop\n\n1. **Update Claude Configuration**\n\n   Add the MCP server configuration to your claude_desktop_config.json:\n\n```\n  \"canvas-mcp-server\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"canvas-mcp-server\"]\n    },\n```\nRestart Claude Desktop\n\n   Quit Claude Desktop completely.\n   Start Claude Desktop again.\n   Navigate to the 🔌 menu to find and connect your Canvas MCP server.\n\n### Available Tools (more student focused stuff coming soon)\n\n- `canvas_create_course`: Create a new course in Canvas.\n- `canvas_update_course`: Update an existing course in Canvas.\n- `canvas_create_assignment`: Create a new assignment in a Canvas course.\n- `canvas_update_assignment`: Update an existing assignment.\n- `canvas_submit_grade`: Submit a grade for a student's assignment.\n- `canvas_enroll_user`: Enroll a user in a course.\n\n### Error Handling\n\nTools return error messages with isError: true to indicate issues.\nEnsure all required environment variables are set to avoid runtime errors.\n\n### Troubleshooting\n\n- **Build Errors:**\n\nCheck TypeScript version: npx tsc --version\n   Clean and rebuild: rm -rf build/ \u0026\u0026 npm run build\n\n- **Runtime Errors:**\n\n   Check logs for detailed error messages.\n   Ensure environment variables are correctly set.\n\n- **Type Errors:**\n\n   Validate types using TypeScript's type checking: npx tsc --noEmit\n\n\n### Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.\n\n### License\nThis project is licensed under the MIT License.\n\n---\n\n### Additional Notes\n\n- **Type Safety**: The `types.ts` file ensures that all interactions with the Canvas API are type-safe, reducing runtime errors and improving code maintainability.\n\n- **Error Handling**: The server gracefully handles errors by returning meaningful messages with the `isError` flag, allowing the client (e.g., Claude Desktop) to understand and react appropriately.\n\n- **Environment Variables**: Sensitive information like API tokens are managed through environment variables, enhancing security and flexibility across different environments.\n\n- **Modularity**: Separating concerns into different files (`types.ts`, `client.ts`, `index.ts`) makes the codebase easier to navigate and maintain.\n\nFeel free to adjust the file paths and configurations according to your project's specific needs. Let me know if you need further assistance!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmontgomery40%2Fmcp-canvas-lms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmontgomery40%2Fmcp-canvas-lms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmontgomery40%2Fmcp-canvas-lms/lists"}