A Claude Code plugin for working on Webflow sites. Claude writes a short TypeScript snippet, and a sandboxed runner executes it against Webflow's hosted MCP server. Only what the snippet prints comes back to Claude, so bulk reads, loops, exports and batched CMS edits stay fast and out of the conversation. Writes need your approval in a macOS dialog.
The runner ships as a self-contained binary, so you don't need Bun, Node or bun install to use the plugin.
- Claude Code
- A Mac with Apple silicon (M1 or later). Intel Macs and other operating systems aren't supported.
- A Webflow account with access to the sites you want to work on
In Claude Code:
/plugin marketplace add wickedapps/webflow-mcp-codemode
/plugin install webflow-codemode@webflow-plugins
Restart Claude Code, or run /reload-plugins, to pick it up. To update later, run /plugin marketplace update webflow-plugins.
Type /webflow-codemode:setup. It explains how the plugin works, runs the login (a browser tab opens on Webflow's consent page, where you choose the workspace and sites to authorize), and tries a first read on your site: its sites, pages or CMS collections.
You can also skip it and just ask Claude for something on the site, for example "list the CMS collections on the site". The first time, Claude runs the login.
Apart from code, Claude never runs these on its own.
| Command | Does |
|---|---|
/webflow-codemode:setup |
Walk through the plugin: how it works, where the login lives, the Webflow login, and a first read (sites, pages or CMS collections). Start here. |
/webflow-codemode:code <task> |
Do a Webflow task through a snippet. Claude also uses this on its own when a request involves Webflow. |
/webflow-codemode:login |
Log in, or check the login. project gives this project its own login; force switches workspaces. |
/webflow-codemode:logout |
Revoke the login for this project's home folder at Webflow, and delete it. |
/webflow-codemode:approvals |
List "Always allow" approvals; clear [action] revokes them. |
/webflow-codemode:status |
Show the home folder, login, sites it reaches and approvals. |
Reads run without asking. When a snippet wants to change something, a macOS dialog asks first. Nothing is sent until you choose, and Deny is the default.
- Writes (creates and updates) and sensitive reads (form submissions, emails, logs) offer Deny, Allow this run and Always allow. Always allow remembers that action on that site for 7 days, so later runs don't ask.
- Destructive actions (deletes, publishes, site-wide changes) offer only Deny or Allow and ask on every run.
/webflow-codemode:approvalslists what you've always allowed;/webflow-codemode:approvals clearrevokes everything,clear <action>one action.
Designer actions and element snapshots need the site open in the Webflow Designer with the Webflow MCP Bridge App running. Everything else works without the Designer.
Your Webflow login is kept in the macOS Keychain, the way Claude Code keeps its own MCP logins, not in any folder: look for items named wf-mcp in Keychain Access. Approvals, the generated tool types, snippets and results live in a home folder. By default that's ~/.wf-mcp/, shared by all your projects, and each home has its own login. /webflow-codemode:logout revokes the login for the current home at Webflow and deletes it; login force revokes the login it replaces.
To give one project its own Webflow login (say, a different client workspace), type /webflow-codemode:login project in it. That creates .wf-mcp/ at the project root (the git root if there is one), and any run from inside that project uses it instead of ~/.wf-mcp/. The folder ignores itself in git, and init signs it with a key only you have, so a .wf-mcp/ folder that arrives with a repo or a zip isn't used until you adopt it with /webflow-codemode:login project (which deletes any login, approvals and types it came with). The lookup order is $WF_MCP_HOME, then the nearest .wf-mcp/ in the current folder or a parent, then ~/.wf-mcp/. /webflow-codemode:status shows the one in use.
When Claude writes a snippet for a task that may come up again, it saves it in the home folder's snippets/ with a comment saying what it does and how to run it. Later sessions run wf-mcp snippets first and reuse a saved one when it fits, instead of writing it again. One-off snippets go in snippets/scratch/, which isn't listed. Because each project login has its own home folder, a project's saved snippets stay with that project.
The plugin's own examples are in snippets/examples/ and are replaced on every update, so copy one out before changing it.
You need Bun 1.3 or later on an Apple silicon Mac.
src/ source, tests and build script
plugins/webflow-codemode/
.claude-plugin/plugin.json
skills/code/SKILL.md the workflow Claude follows (/webflow-codemode:code)
skills/{setup,login,logout,approvals,status}/SKILL.md slash commands, user-only (disable-model-invocation)
scripts/wf-mcp launcher: checks the Mac, then starts the binary
scripts/wf-mcp-darwin-arm64 compiled runner (built, not committed)
scripts/typescript-darwin-arm64/ native TypeScript compiler used to typecheck snippets (copied, not committed)
plugins/webflow-codemode.zip the plugin, zipped (built, attached to each GitHub release)
.claude-plugin/marketplace.json
The built binary and compiler aren't committed. Claude Code installs the zip attached to each GitHub release, which .claude-plugin/marketplace.json names by URL and SHA-256.
cd src
bun install
bun dev login # log in to ~/.wf-mcp (or a signed WF_MCP_HOME), writes types/
bun test # access table, Keychain store, 401/429 handling, output limits, response shapes, approval prompt,
# sandbox CMS helpers, snippet typecheck, saved site list
bun run build # typecheck, compile the binary into plugins/webflow-codemode/scripts/, write the zip
bun run audit:ages # check that every locked package is at least 24 hours oldbun dev <command> runs the CLI from source, with the same subcommands as the binary. The access table test needs a login, because it reads the types that bun dev login or bun dev gen writes.
bun run build signs the binary ad hoc. Without that step, macOS kills the binary as soon as it starts (exit 137).
- Bump
versioninplugins/webflow-codemode/.claude-plugin/plugin.jsonandVERSIONinsrc/cli.ts. The build stops if they differ. Installed copies are cached by version, so users only get changes after a bump. - Run
bun run build. It writesplugins/webflow-codemode.zipand points the marketplace entry at thev<version>release, with the zip's SHA-256. Commit.claude-plugin/marketplace.json, after any other change that goes into the zip, so the hash matches the zip you publish. - Push, tag the commit
v<version>, and publish a GitHub release for the tag withplugins/webflow-codemode.zipattached. Until the release exists, installs from the marketplace fail.
- A single
wf-mcpcommand with the subcommandsinit,login,logout,run,gen,types,snippets,approvalsandhome.types <tool>.<action>prints one action's docs fromtypes/(src/type-docs.ts), so Claude doesn't read a whole tool's file, plus the key names and types the action returned in earlier runs, recorded in the home'sshapes.json(src/shapes.ts), since Webflow publishes no output schemas;snippetslists the sites the last login reached, then saved snippets and examples with their header comments (src/snippets.ts,src/sites.ts). - The login lives in the macOS Keychain: a generic password with service
wf-mcpand the home's path as the account, plus<path>#previousfor the login before it (src/credentials.ts). It's written throughsecurity -ion stdin so tokens never show in a process list. - Other state lives in a home folder (
approvals.json,shapes.json,sites.json,types/,snippets/,out/,support/): a project's own.wf-mcp/if it has one, else~/.wf-mcp/(src/paths.ts). - Each call's access level comes from the access table compiled into the binary (
buildManifestinsrc/gen-types.ts), never fromtypes/manifest.jsonon disk. - Any home other than
~/.wf-mcp/is used only ifinitsigned it: an HMAC of its path, keyed by~/.wf-mcp/.project-key(src/paths.ts). That includes a folder named by$WF_MCP_HOME, since a repo's.claude/settings.jsonor.envrccan set it. Other folders make every command exit with code 5;WF_MCP_HOME=<dir> wf-mcp initsigns one. logoutandlogin --forcerevoke the login they discard at Webflow's revocation endpoint, then try its refresh token once to confirm it's dead (src/revoke.ts).- Write and sensitive actions can be always allowed per action and site for 7 days (
src/trust.ts); destructive ones can't. An agent with shell access could editapprovals.json, or read the Keychain item withsecurity(items it created don't prompt), so the dialog stops mistakes, not a determined agent. - Snippets have no network. To finish
create_asset,create_fontorreplace_font_file, a snippet hands the runner a file inout/and that call's presigned S3 target (out.upload); the runner sends it only to a target one of those calls returned in the same run, and only to Amazon S3 over https (src/upload.ts). - Besides
webflow, snippets get acmsglobal:cms.listAllreads every page of a collection and throws if items change mid-read, andcms.itemStateandcms.isLiveread an item's state fromlastPublished, since an item that was published and then saved as a draft hasisDraft: truebut is still live (src/sandbox/sandbox.ts). - Inputs Webflow's schemas describe as deprecated are left out of the generated types, so a snippet using one fails the typecheck (
src/gen-types.ts). - The QuickJS wasm, the sandbox globals and the example snippets are embedded in the binary. The examples are rewritten into
snippets/examples/on every run; the rest ofsnippets/is never touched (src/home.ts). The TypeScript compiler ships beside it, and without the compiler snippets run unchecked. - The access table is compiled in. When Webflow adds actions, their levels are guessed from the action names (writes and destructive calls still need approval). Review them with
bun dev gen, add any needed overrides tosrc/access.ts, then rebuild. - The launcher refuses anything but an Apple silicon Mac. The first time it runs after an install or update, it checks that macOS lets the binary start (restoring the executable bits if unzipping dropped them), and records the check in
scripts/.checked. It setsWF_MCP_PLUGIN=1, so the binary's messages name slash commands like/webflow-codemode:logininstead ofwf-mcp login, which plugin users don't have on their PATH (src/plugin.ts).
Each skill's allowed-tools pre-approves the commands it runs, so they don't prompt in Claude Code's default mode. ${CLAUDE_PLUGIN_ROOT} is filled in there. Bash rules end in *, which also matches the bare command and covers arguments such as --verbose. The status skill keeps approvals exact, so approvals --clear still prompts there. File rules use Edit(...) for writes: Claude Code ignores path rules on Write and warns at startup. Edit(./.wf-mcp/snippets/**) counts from the folder Claude Code started in, so a project's own snippets are covered only when it starts at the project root. The code skill never pre-approves login, logout, init or approvals --clear. A compound command such as W=…; "$W" home; echo $? matches no rule, so every skill tells Claude to run each command on its own, written out in full. When Claude loads the code skill by itself, Claude Code asks once to use the skill; typing /webflow-codemode:code doesn't ask.