canvas-mcp-tool
v1.0.1
Published
canvas-mcp-tool - A MCP server for students
Maintainers
Readme
Configuration
After installation, you'll need to configure your Canvas URL and API token:
Getting a Canvas API Token
Warning: Your Canvas API token is sensitive - treat it like a password and never share it or commit it to source control.
- Log into your Canvas account
- Go to Account → Settings
- Scroll to "Approved Integrations"
- Click "+ New Access Token"
- Enter a purpose and click "Generate Token"
- Copy the token and use in it your preferred setup.
For Claude Desktop
You can add these to your shell profile (~/.zshrc, ~/.bashrc, etc.) so they're loaded automatically:
# ~/.zshrc or ~/.bashrc
export CANVAS_API_URL="https://your-schools-canvas-url.com"
export CANVAS_API_TOKEN="your_canvas_api_token_here"
export CANVAS_API_VERSION="v1"
export CANVAS_API_TIMEOUT=30000
export CANVAS_MAX_RETRIES=3Local Setup
Clone this repository
Install dependencies:
npm installCreate a
.envfile with your Canvas credentials:cp .env.example .envEdit
.envand add your Canvas API token:CANVAS_API_URL=https://your-schools-canvas-url.com CANVAS_API_TOKEN=your_canvas_api_token_hereAdd optional cache and logging settings (defaults shown):
CACHE_ENABLED=true # Enable response caching (set to false to disable) CACHE_TTL=300 # Cache time-to-live in seconds LOG_LEVEL=info # Logging level: debug, info, warn, error LOGGING_ENABLED=true # Enable logging (set to false to disable)
Build
npm run build