Build, run, debug, test and ship Chrome, Firefox, Edge and Safari extensions from your AI agent.
extension.dev MCP is the MCP server for building browser extensions in Claude Code, Cursor, VS Code, Codex and any MCP client. Your agent creates an extension, runs it, proves it works and ships it to four stores.
Documentation · Tools · Skill · Changelog · Troubleshooting · Discord
claude mcp add extension-dev -- npx -y @extension.dev/mcp --features=local,platformOr install the extension-dev plugin, the MCP server pinned to one published version plus the browser-extension skill, in one step:
/plugin marketplace add extensiondev/skill
/plugin install extension-dev@extensiondev
Other clients take the same server as .mcp.json; every client's block, with a local-only form, is on Install in your client.
{
"mcpServers": {
"extension-dev": {
"command": "npx",
"args": [
"-y",
"@extension.dev/mcp",
"--features=local,platform"
]
}
}
}The local tools need no account; the platform tools, on with --features=local,platform, ask for a login the first time they reach extension.dev. Add extras (--features=local,platform,extras) to list extension_theme_verify, extension_network_read and extension_network_stub.
Build it and prove it works
Create a Chrome and Firefox extension that highlights external links, run it, and prove the content script injected.
The agent scaffolds from a template, starts the dev session, a browser opens with the extension loaded, and extension_assert answers with a verdict instead of a guess.
Then ship it
Submit this build to the Chrome Web Store and Firefox Add-ons as a dry run and tell me what is missing.
extension_submit defaults to a dry run, so nothing goes into review until a workspace owner approves the real submit.
extension_submit sends a built extension into review at the four stores through extension.dev, which holds your store credentials. It defaults to a dry run, and a real submit waits for a workspace owner to approve that exact act on extension.dev: the server never submits or publishes on its own. Reaching the App Store needs no Mac: the Safari lane signs with keys the platform holds encrypted at rest, under the same approval.
The platform tools need a login once. You approve a code at extension.dev/device; the project-scoped token stays on this machine, is never returned to the agent, and lives at most 7 days. No project yet? Request access at extension.dev.
npx -y @extension.dev/mcp login --project <workspace>/<project>Details under Platform tools.
Extensions fail silently, with content scripts that never inject and panels that never open, so these tools give the agent eyes on the live browser.
- Ship: validate the manifest cross-browser, build, share a preview, promote, submit
- Scaffold from 50+ templates, or add a popup, sidebar or content script
- Run the dev server with HMR in every browser below
- See the live DOM, logs from every context,
chrome.storage, the loaded extensions - Act: evaluate code in any context, trigger the action button and commands, reload
- Test:
extension_assertanswerspass,failorinconclusive, the last naming the evidence that would settle it
Every engine command runs the project's own engine when it has one, else the version this server pins (Engine pinning).
| Works in | How it connects | |
|---|---|---|
| Claude Code | claude mcp add or the extension-dev plugin, Install |
|
| Cursor | One-click link, Install | |
| VS Code | One-click link for Copilot agent mode, Install | |
| Codex | codex mcp add or ~/.codex/config.toml, Install in your client |
Any other MCP client takes the same .mcp.json block.
Every template builds for Chrome, Edge and Firefox, and the same project ships to Safari through the App Store lane.
- Node 22.12 or later.
- A Chromium or Firefox browser, or
extension_browsers_installinstalls one. - macOS with Xcode only for a local Safari session; the App Store lane needs no Mac.
- An extension.dev login only for the platform tools.
extension_dev opens the extension in the browser you name. The Chromium family and Firefox get HMR, control, eval, inspect and assert, and so does any Chromium or Gecko binary by path. On macOS with Xcode, browser: "safari" builds the app, opens it, reloads it on every save and streams its logs; no eval, no extension_inspect, limits under Safari.
-
Local by default. Every local tool runs on your machine. The control channel (
extension_storage_read,extension_storage_write,extension_reload,extension_open,extension_dom_snapshot) is same machine, same user, on unlessextension_devis called withallowControl: false. -
The eval gate.
extension_evalstays off untilextension_devis called withallowEval: true. A session never grows a gate on a second call: callextension_devagain withreplace: true(Session gates).Input that needs no gate
extension_element_actclicks and fills one element and sends trusted mouse and keyboard input (move, press, release, type, key, scroll) that pages read asisTrusted: true, over the debug port with no gate, since it runs no caller code;extension_element_readreads one element's text or waits until it is visible. -
What leaves the machine. Nothing until you ask, and docs/network.json lists every host, what each receives and how to turn it off. A platform tool is answered by extension.dev's hosted lane at
mcp.extension.dev, which gets a credential that lasts ten minutes, never the login.--no-shiprefuses every call that puts something in front of other people.The full list
Nothing until you ask. Of the local tools,
extension_docs_searchsends the query text to www.extension.dev with no login, the template tools read the catalog at registry.extension.land and the template files at raw.githubusercontent.com, api.github.com and codeload.github.com, andextension_browsers_installdownloads a browser. A platform tool is answered by extension.dev's hosted lane atmcp.extension.dev: this server exchanges the stored login at www.extension.dev for a credential that lasts ten minutes and sends the lane that credential, the tool's arguments and the project ref, never the login, a file path or theapioverride. A store check or a listing sync also sends what it read from the project (the text ofSTORE.md, the manifest's name and description in each_localeslanguage, the icon and screenshot sizes and digests, the git HEAD); a listing image is uploaded to www.extension.dev only when the listing write needs it. A shared preview uploads the build it just made, a project created from a folder uploads that folder, a capture sync uploads the capture files, and a login stores a project-scoped token locally. Signing in and out, a create and its device approval, a preview, a build download, a capture sync and a share create run on this machine.--no-shiprefuses every call that puts something in front of other people. -
Approvals stay human. A real submit, a channel promotion, a public visibility or channel, a slug rename and a share revoke are asked for with
extension_approvals_request, which answersapproval-required; a workspace owner approves the exact act on extension.dev, the act tool is called with the returnedapprovalId, and the server never approves anything itself.extension_approvals_requestasks for the approval and runs nothing, annotated non-destructive;extension_submitand the other act tools run only the call that carries the approved id, annotated destructive. -
Untrusted text from pages comes back inside an
<untrusted-data-ID>fence, and every tool carries MCP annotations. -
Report a vulnerability. Use private vulnerability reporting on this repository, not a public issue. It reaches the maintainer directly.
extension_create sends one draft_seeded event to us.i.posthog.com after a scaffold (template slug, source and commit, a random per-process id, never a path or a name), and the platform tools send a per-install id header. EXTENSION_DEV_NO_TELEMETRY=1 or DO_NOT_TRACK=1 stops both (payload).
https://mcp.extension.dev/mcp serves the platform reads and promotions over Streamable HTTP: a client connects with the URL alone, signs in at www.extension.dev through OAuth, and gets extension_workspace_read, extension_project_create, extension_builds_read, extension_builds_act, extension_release_status, extension_release_promote and extension_auth_read. Local tools, publish, submit and share links stay on the stdio server.
claude mcp add --transport http extension-dev https://mcp.extension.dev/mcp| Flag | Environment variable | Default | Effect |
|---|---|---|---|
--features=<groups> |
EXTENSION_DEV_FEATURES |
local |
local,platform adds the platform group; extras, off unless named, adds the theme check and the network stubs; a group named alone lists only its tools |
--no-ship |
EXTENSION_DEV_NO_SHIP=1 |
off | Refuses publish, promote, a real submit, a store act (the listing sync included), a shared preview, a share create or revoke |
--project <workspace>/<project> |
EXTENSION_DEV_PROJECT |
unset | Refuses any call that names another project |
| none | EXTENSION_DEV_TOKEN |
unset | An access token in place of the device login, for CI |
| none | EXTENSION_DEV_NO_AUTO_OPEN=1 |
off | Never opens the approval page in the default browser |
| none | EXTENSION_DEV_NO_TELEMETRY=1 or DO_NOT_TRACK=1 |
off | Turns off the draft_seeded event and the per-install id header |
| none | EXTENSION_MCP_CLI_VERSION |
this release's pin | The engine version run when the project has none of its own |
| none | EXTENSION_MCP_ENGINE_DIR or EXTENSION_MCP_ENGINE_BIN |
unset | Runs every engine command from a compiled engine checkout or one bin file |
| none | EXTENSION_DEV_API_URL |
https://www.extension.dev |
The extension.dev platform the platform tools and docs search call, an extension.dev host or a local development server |
| none | EXTENSION_HEADLESS=1 |
off | Launches every browser headless unless a call passes headless: false |
| none | EXTENSION_BROWSER_FLAGS |
unset | Extra flags for every browser the engine starts; a --headless here counts as EXTENSION_HEADLESS=1 |
| none | EXT_BROWSERS_CACHE_DIR |
per-user cache | The folder that holds the managed browsers |
| none | EXTENSION_MCP_SESSION_DIR |
system temporary folder | The folder for the running sessions' state files |
| none | EXTENSION_TRY_DIR |
system temporary folder | The folder where extension_try unpacks a published build |
| none | EXTENSION_ISOLATED_DIR |
system temporary folder | The folder for isolated runs |
| none | EXTENSION_KEEP_SOCKET_PROCESS=1 |
off | On Linux, keeps Firefox's socket process with an engine older than 4.3.0 |
Internal overrides for development and tests, not for normal use: EXTENSION_DEV_CONSOLE_URL, EXTENSION_DEV_INSPECT_URL, EXTENSION_DEV_PREVIEW_URL, EXTENSION_DEV_USERLAND_URL, EXTENSION_DEV_REGISTRY_URL, EXTENSION_DEV_FORWARD_URL, EXTENSION_MEDIA_ORIGIN, EXTENSION_DEV_POSTHOG_HOST, EXTENSION_DEV_POSTHOG_KEY, EXTENSION_DEV_POSTHOG_KEY_NONPRODUCTION, EXTENSION_TEMPLATES_CATALOG_URL, EXTENSION_TEMPLATES_COMMIT, EXTENSION_DEV_APPROVAL_GATE, EXTENSION_MCP_BUILD_ID, EXTENSION_OUTPUT, EXTENSION_CREATE_TEMPLATE_REF.
login, logout, whoami and release promote run headless; see Server flags.
The local group scaffolds, builds, runs, inspects, drives and asserts; the platform group logs in, shares, promotes, submits, reads builds, releases and approvals, and runs a published build with extension_try; the extras group, off unless named, verifies a Chrome theme and stubs network responses. Every tool has a page under the tool reference, generated from the schema the server registers, with its inputs, whether it only reads, the gate it needs and a prompt that reaches for it.
The server lists four prompts, starting points a client shows in its prompt menu. Each one tells the agent which tools to call, in order, and to call a change done only after seeing it work in a real browser.
| Prompt | Arguments | What it starts |
|---|---|---|
create-extension |
idea, browser (optional) |
A new extension from a template, run and proven in a browser |
verify-change |
change, projectPath and browser (optional) |
A verdict on an edit, read from a live session |
debug-extension |
symptom, projectPath and browser (optional) |
The cause of a content script, popup or background script that does nothing |
prepare-store-submission |
stores and projectPath (optional) |
A store checklist that stops before anything goes to review |
It also serves four read-only documents from its own package, never from your project or the network.
| Resource | What it is |
|---|---|
extension-dev://reference/tools |
Every tool with its inputs, types and defaults |
extension-dev://reference/store-md |
The fields a STORE.md may carry |
extension-dev://reference/security |
The Security section of this file |
extension-dev://changelog/current |
The changelog section of the running version |
This server gives agents hands; @extension.dev/skill gives them judgment: cross-browser rules, silent-failure gotchas, debugging playbooks and the store checklist.
npx skills add extensiondev/skillHow do I publish a Chrome extension from Claude Code or Cursor?
Add the server with the line under Install, then ask the agent to submit the build. extension_submit defaults to a dry run, and a real submit waits for a workspace owner to approve it on extension.dev.
Can an AI agent submit to the App Store without a Mac?
Yes. The Safari lane signs with keys the platform holds encrypted at rest; only a local Safari session needs macOS with Xcode.
Does it need an account?
The local tools need none. The platform tools ask for an extension.dev login the first time they reach extension.dev.
Every refusal carries an error code and a hint (error.hint) naming what to change or the next call. The five most common:
E_TOOL_DISABLED: the tool's group is off, or the call reaches outside this machine in no-ship mode. Add the group the hint names (platformorextras) to--features, or drop--no-ship, in the client's config, then call again.approval-required: have a workspace owner approve the act at the link, then repeat the call with the same arguments and the returnedapprovalId.E_AUTH_REQUIREDorE_AUTH_EXPIRED: the login lives at most 7 days. Runextension_auth_login(project: "<workspace>/<project>"), then call again.E_NO_SESSION: nothing is running. Startextension_dev, thenextension_waitfor ready.extension_evalrefused: the session started without the gate. Callextension_devagain withallowEval: trueandreplace: true; reads need no eval.
extension_doctor names the broken leg of a session. After a new version lands a tool may answer E_SERVER_STALE: run /mcp, pick extension-dev, and call again. More under When it fails.
Help and feedback on Discord; templates at templates.extension.dev; issues at extensiondev/mcp.
Apache-2.0 (c) 2026 Cezar Augusto and the extension.dev collaborators. See LICENSE.


