codex_canvas_mcp
This is a local MCP server for reading and (with strict approval) authoring Canvas LMS content.
Read-only tools (available by default):
canvas_get_current_user– view authenticated Canvas user profile.canvas_list_modules– list modules and items in a course.canvas_read_api– GET any normalized Canvas API v1 path.canvas_get_write_policy– inspect local write-policy state.
Content-authoring tools (blocked by default; require per-course allowlist, exact confirmation phrase, and client approval):
Create/update pages, modules, module items, assignments, discussions, classic quizzes, and quiz questions.
Delete pages, assignments, discussions, classic quizzes, and modules (module deletion removes its item placements, not underlying content).
Image upload (blocked by default): upload a locally owned PNG/JPEG/WebP (≤10 MiB) from a configured trusted folder, with strict safety gates.
No generic Canvas write tool – all writes are specific and gated.
Credentials kept out of repo, fetched from 1Password and optionally macOS Keychain.
Provides tools for reading Canvas course content (user profile, modules, and API endpoints) and authoring pages, modules, module items, assignments, discussions, and Classic Quizzes after policy and approval checks.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codex_canvas_mcplist the modules in my Canvas course 12345"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Codex Canvas MCP
A portable local MCP server that lets compatible clients read Canvas and, only after several independent safety checks, author common course content.
Safety model
Canvas reads are available by default after local credential setup.
Writing is disabled by default.
Every content write requires an enabled local policy, an exact per-course allowlist match, exact confirmation text, and approval in the MCP client.
Image upload adds a payload gate: only a locally owned PNG, JPEG, or WebP inside one configured trusted folder, no larger than 10 MiB, can be sent.
There is no generic Canvas write tool.
Credentials stay in 1Password and, optionally, macOS Keychain. They do not belong in this repository or client configuration.
Every content tool is marked as mutating and destructive so compatible clients can require approval. The local server also rejects a call unless its exact confirmation matches the requested action, for example APPROVE CANVAS MODULE WRITE course <course_id>.
Rubric creation accepts a same-origin Canvas assignment URL, an assignment module-item URL, or a course URL containing an assignment_id query parameter. Query strings and fragments are ignored after the course and assignment are resolved. The URL never bypasses course policy: its course ID must still be explicitly allowlisted, and rubric creation requires APPROVE CANVAS RUBRIC WRITE course <course_id>. The tool refuses to replace an existing assignment rubric, requires descriptions for every criterion and rating, and requires grading-rubric points to match the assignment points.
Related MCP server: CoursePack Local MCP Server
What is included
Tool | Capability | Default |
| Read the authenticated profile | Available |
| Read modules and items for one course | Available |
| GET a normalized Canvas API v1 path | Available |
| Inspect local policy state | Available |
| Upload one verified image from the configured trusted folder | Blocked |
| Create or update one page | Blocked |
| Create one module | Blocked |
| Place one content item in a module | Blocked |
| Create one assignment | Blocked |
| Create and attach one assignment rubric from a Canvas URL | Blocked |
| Create one discussion | Blocked |
| Create one Classic Quiz | Blocked |
| Add one question to a Classic Quiz | Blocked |
| Delete one page | Blocked |
| Delete one assignment | Blocked |
| Delete one discussion | Blocked |
| Delete one Classic Quiz | Blocked |
| Delete one module and its item placements | Blocked |
Set up a new Mac
Prerequisites: Python 3.11 or newer, the 1Password CLI, a 1Password service account that can read only the intended Canvas credential item, and a Canvas API token with the least privileges practical for your work.
Clone and install into an isolated environment:
git clone https://github.com/mrchris-ai/codex_canvas_mcp.git cd codex_canvas_mcp python3 -m venv .venv . .venv/bin/activate python -m pip install --upgrade pip python -m pip install -e .Create a 1Password item whose concealed field contains the Canvas API token. Give the service account read access only to the containing vault/item. Record the vault name, item name or ID, and concealed field label; do not put their values in this repository.
Choose one service-account-token delivery method:
For a short-lived shell session, provide
OP_SERVICE_ACCOUNT_TOKENto the MCP server process through your local secret launcher.On macOS, store that token in Keychain and configure non-secret lookup labels. Example command (it prompts securely; do not put the token on the command line):
security add-generic-password -U -s "your-service-label" -a "your-account-label" -w
Configure the server process with these non-secret values:
Variable
Purpose
CANVAS_BASE_URLCanvas HTTPS origin, such as
https://school.instructure.comCANVAS_OP_VAULT1Password vault name or ID
CANVAS_OP_ITEMCanvas credential item name or ID
CANVAS_OP_FIELDConcealed token field label; defaults to
credentialCANVAS_KEYCHAIN_SERVICEmacOS Keychain service label when not using
OP_SERVICE_ACCOUNT_TOKENCANVAS_KEYCHAIN_ACCOUNTmacOS Keychain account label when not using
OP_SERVICE_ACCOUNT_TOKENCANVAS_IMAGE_UPLOAD_ROOTAbsolute path to the only local folder from which image upload is allowed
Test only the protocol and security gates, without contacting Canvas or reading credentials:
python -m unittest discover -s tests -v printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | python -m canvas_mcpAdd the stdio server to Codex. The project-level form is:
[mcp_servers.canvas] command = "/absolute/path/to/codex_canvas_mcp/.venv/bin/python" args = ["-m", "canvas_mcp"] [mcp_servers.canvas.env] CANVAS_BASE_URL = "https://school.instructure.com" CANVAS_OP_VAULT = "your-vault" CANVAS_OP_ITEM = "your-item" CANVAS_OP_FIELD = "credential" CANVAS_KEYCHAIN_SERVICE = "your-service-label" CANVAS_KEYCHAIN_ACCOUNT = "your-account-label" CANVAS_IMAGE_UPLOAD_ROOT = "/absolute/path/to/reviewed/canvas-images"Put this in the trusted project's
.codex/config.tomlor your personal Codex configuration. Do not add secret values. Restart or open a new task after changing MCP configuration, then verify the listed tools before requesting Canvas data.
ChatGPT compatibility
This repository implements a local stdio MCP server for Codex and other clients that support local stdio MCP. Current ChatGPT custom apps do not connect directly to a local stdio server. OpenAI's current guidance is to expose a private local MCP through Secure MCP Tunnel (or deploy a reviewed remote MCP endpoint), subject to plan and workspace-admin availability. Do not expose this process directly to the public internet.
See Developer mode and MCP apps in ChatGPT before attempting ChatGPT setup; availability and approval behavior can change.
Enabling content-authoring tools
Keep writing off unless a specific task requires it.
Copy
config/write-policy.example.jsonto a location outside the repository.Add only the exact Canvas course IDs approved for content authoring.
Set
enabledtotrueand restrict the file:chmod 600 /absolute/private/path/write-policy.jsonAdd
CANVAS_WRITE_POLICY=/absolute/private/path/write-policy.jsonto the MCP server environment.Restart the client and call
canvas_get_write_policyto verify the effective policy.For each content write, review the exact target and payload. Supply the action-specific confirmation phrase and approve the mutating action in the client.
Disable the policy again when the task is complete.
If the variable is absent, the file is missing, permissions are broader than 0600, writing is disabled, or the course is not allowlisted, the server refuses the write.
Enabling image upload
Image upload uses the same local write policy and exact course allowlist, plus CANVAS_IMAGE_UPLOAD_ROOT. The tool refuses relative paths, symlinks, files outside that root, files not owned by the current user, unsupported image types, files whose binary signature disagrees with the extension, and files larger than 10 MiB. The exact confirmation is APPROVE CANVAS IMAGE UPLOAD course <course_id>.
Canvas uses a documented three-step upload exchange: initialize the course file through the authenticated API, send the image without the Canvas access token to Canvas's returned HTTPS storage URL, and authenticate the returned same-origin Canvas completion location. The tool then reads /api/v1/courses/<course_id>/files/<file_id> and checks the MIME type and size before returning a persistent course preview path. It never returns storage signatures or the file-download verifier URL.
Current authoring boundary
This project is the source of truth for the shared local Canvas MCP used by supported chats on this Mac. It can author Pages, Modules and module items, Assignments and assignment Rubrics, Discussions, and Classic Quizzes with questions after the normal policy and approval gates. It also provides resource-specific deletion tools for Pages, Assignments, Discussions, Classic Quizzes, and Modules; deleting a Module removes its item placements but not the underlying course content. Its only local-file capability is the payload-gated image uploader described above. Generic file upload, New Quizzes, and account/course administration remain unsupported.
See docs/2026-08-06-content-authoring-extension.md for the implementation and end-to-end validation record.
See docs/2026-08-16-image-upload-extension.md for the image-upload threat model and validation record.
Development
python -m pip install -e .
python -m unittest discover -s tests -v
python -m compileall -q src testsTests mock network and credential boundaries. See AGENTS.md for invariants contributors must preserve and ROADMAP.md for intentionally deferred administrative features.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA local MCP server for Canvas LMS that enables querying courses, assignments, grades, modules, and more from any MCP-compatible AI client.19MIT
- FlicenseNot gradedqualityAmaintenanceRead-only MCP server that provides Claude Desktop with access to converted Canvas course exports, including Markdown files, reports, and search tools for local course content.
- AlicenseNot gradedqualityCmaintenanceA remote MCP server for querying Canvas LMS courses, assignments, and grades. Enables natural language interaction with Canvas data via MCP clients like Claude Desktop.19MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Canvas LMS with automatic OAuth authentication. Enables interaction with courses, assignments, grades, modules, discussions, quizzes, files, calendar, messaging, and more without manual API token management.339MIT
Related MCP Connectors
MCP server for the Inistate platform: module discovery, entry management, and activity submission.
A MCP server built for developers enabling Git based project management with project and personal…
An MCP server for deep research or task groups
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mrchris-ai/codex_canvas_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server