canvas-mcp

v0.1.3
io.github.admin978/canvas-mcp Checked 3 days ago Published 4 months ago

Local-first MCP server for Canvas LMS.

Values you need

VariableWhat it is
CANVAS_BASE_URLrequired Canvas institution root URL (no /api/v1 suffix), e.g. https://your-institution.instructure.com
CANVAS_TOKENrequired secret Canvas personal access token (Account -> Settings -> Approved Integrations -> New Access Token)

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add canvas-mcp -e 'CANVAS_BASE_URL=<CANVAS_BASE_URL>' -e 'CANVAS_TOKEN=<CANVAS_TOKEN>' -- uvx canvas-local-mcp==0.1.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "canvas-mcp": {
      "args": [
        "canvas-local-mcp==0.1.3"
      ],
      "command": "uvx",
      "env": {
        "CANVAS_BASE_URL": "<CANVAS_BASE_URL>",
        "CANVAS_TOKEN": "<CANVAS_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "canvas-mcp": {
      "args": [
        "canvas-local-mcp==0.1.3"
      ],
      "command": "uvx",
      "env": {
        "CANVAS_BASE_URL": "<CANVAS_BASE_URL>",
        "CANVAS_TOKEN": "<CANVAS_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "CANVAS_BASE_URL",
      "id": "canvas-base-url",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "CANVAS_TOKEN",
      "id": "canvas-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "canvas-mcp": {
      "args": [
        "canvas-local-mcp==0.1.3"
      ],
      "command": "uvx",
      "env": {
        "CANVAS_BASE_URL": "${input:canvas-base-url}",
        "CANVAS_TOKEN": "${input:canvas-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.canvas-mcp]
command = "uvx"
args = ["canvas-local-mcp==0.1.3"]
env = { "CANVAS_BASE_URL" = "<CANVAS_BASE_URL>", "CANVAS_TOKEN" = "<CANVAS_TOKEN>" }

For AI agents

  1. Ask the user for: CANVAS_BASE_URL, CANVAS_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_courses, list_assignments, upcoming_events, planner_items, list_announcements, list_modules, get_file_info, get_grades, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json