MCP for building, inspecting, and live-debugging Firefox CSS themes.
A toolkit for Firefox CSS theme authors to scaffold, bundle, and live-debug theme repositories. It also provides end users with an automated installer.
A Model Context Protocol (MCP) server is also available for AI-assisted DOM inspection and live styling.
Scaffold a new theme project using npx:
npx firefox-css-theme create
This interactively prompts for your theme name and stylesheet targets (userChrome.css, userContent.css, or both), creating a minimal npm package with helper scripts and dependencies.
Alternatively, add firefox-css-theme as a development dependency to an existing project:
npm install --save-dev firefox-css-theme
Add helper scripts to your package.json:
{
"scripts": {
"start": "firefox-css-theme start", // launch Firefox with live CSS hot-reloading
"install:theme": "firefox-css-theme install" // installer script for users
}
}
[!NOTE] Theme entry files (
userChrome.cssand/oruserContent.css) must be located at the repository root directory.
When users clone your theme repository, they only need to run the installer:
# Clone the repository and install dependencies
npm install
# Installer the CSS theme
npm run install:theme
If multiple Firefox profiles exist, an interactive selection list will prompt you to choose one. To skip the selection, specify the target profile directly with -p, --profile <name>.
For the full list of CLI options, run npx firefox-css-theme --help in your project.
firefox-css-theme createScaffold a new Firefox CSS theme package.
firefox-css-theme create [name] [options]
| Option | Description |
|---|---|
-t, --target <target> | Stylesheet target: both, chrome, or content |
-f, --force | Proceed without warning |
firefox-css-theme startLaunch Firefox with live stylesheet bundling and hot-reloading.
firefox-css-theme start [options]
| Option | Description |
|---|---|
-b, --binary <path> | Path to Firefox executable |
-p, --profile <name> | Firefox profile name |
--no-watch | Disable file watching |
--headless | Run in headless mode |
--nova-ui | Enable Firefox Nova UI |
firefox-css-theme installInstall compiled stylesheets into a Firefox profile.
firefox-css-theme install [options]
| Option | Description |
|---|---|
-p, --profile <name> | Firefox profile name |
-m, --merge | Merge with existing stylesheets |
-f, --force | Proceed without warning |
[!WARNING] This operation will overwrite existing CSS themes in the profile unless
--mergeis specified. A backup is advised.
firefox-css-theme mcpStart the Model Context Protocol (MCP) server.
firefox-css-theme mcp [options]
| Option | Description |
|---|---|
-b, --binary <path> | Path to Firefox executable |
-p, --profile <name> | Firefox profile name |
--headless | Run in headless mode |
--nova-ui | Enable Firefox Nova UI |
The MCP server enables AI assistants to inspect the Firefox chrome DOM, query computed styles, inject custom CSS, and capture UI screenshots in real time.

Add the server to your preferred client or development environment:
claude mcp add firefox-css-theme -- npx -y firefox-css-theme mcp --nova-ui
codex mcp add firefox-css-theme -- npx -y firefox-css-theme mcp --nova-ui
Using npx:
{
"mcpServers": {
"firefox-css-theme": {
"command": "npx",
"args": ["-y", "firefox-css-theme", "mcp", "--nova-ui"]
}
}
}
Or using a local build:
{
"mcpServers": {
"firefox-css-theme": {
"command": "node",
"args": [
"/path/to/firefox-css-theme/dist/cli.js",
"mcp",
"--nova-ui"
]
}
}
}
launch_browser: Launches Firefox with chrome debugging.close_browser: Terminates the browser instance.customize_toolbar: Toggles the Firefox "Customise Toolbar" mode.get_ui_tree: Dumps the hierarchical DOM tree of selected UI element.query_ui_elements: Queries elements matching a CSS selector in the browser chrome.get_computed_styles: Extracts computed CSS property values of a specific UI element.inject_theme_css: Injects a stylesheet in the live UI.remove_theme_css: Removes an injected stylesheet.list_theme_css: Lists all currently injected stylesheets.take_ui_screenshot: Captures a screenshot of a specific UI component.execute_chrome_javascript: Runs JavaScript in the browser chrome window context.Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y firefox-css-themeMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-easonwong-de-firefox-css-theme": {
"command": "npx",
"args": [
"-y",
"firefox-css-theme"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referencefirefox-css-themenpmio.github.easonwong-de/firefox-css-theme works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.