Model Context Protocol
Plug any AI agent into the M2 canvas
M2 ships a hosted MCP server. Add one URL to your agent and it can read, write, capture, and orchestrate live UI on the infinite canvas.
Endpoint
https://mcp.m2ui.ai/mcpConnect your agent
Pick your client. Sign in once via OAuth — no manual API key needed.
Every client on this machineRun in a terminal: finds Claude Code, Codex, Cursor, OpenCode and Qoder, adds M2 to each and opens the sign-in
npx -y @m2canvas/connect@latest
Claude CodeAdd the server with the CLI
claude mcp add --transport http --scope user m2 https://mcp.m2ui.ai/mcp
CodexAdd with the CLI, then authorize over OAuth
codex mcp add m2 --url https://mcp.m2ui.ai/mcp codex mcp login m2
CursorDrop into ~/.cursor/mcp.json
{
"mcpServers": {
"m2": {
"url": "https://mcp.m2ui.ai/mcp"
}
}
}Any MCP clientStandard streamable HTTP transport
transport: streamable-http url: https://mcp.m2ui.ai/mcp auth: OAuth (browser)
Client only speaks stdio — bridge it with npx mcp-remote https://mcp.m2ui.ai/mcp.