About Critical
Critical is an MCP server published by addyosmani in the Other category: extract & Inline Critical-path CSS in HTML pages. Conduid read 1 tool from its source: optimize_critical_css. It is published to npm as critical and starts with npx.
The repository has 10K stars and 394 forks, is licensed Apache-2.0, and its last commit was on 24 Nov 2026. The latest release is v9.1.0 (24 Nov 2026): fix pnpm audit vulnerabilities (#635) 2c1a7d2 fix(cli): keep subfolders when writing a directory to --out (#633) e48e1ad chore: upgrade Vite+ to 1.0 (#628) 03897c8 chore… It follows v9.0.0 (13 Sep 2026), and the 5 most recent releases go back to v7.2.0 (17 Aug 2024). It passes all 5 static checks Conduid ran on the repository. Its topics include critical-css, critical-path-css, critical-path-styles, css, inline-css and inline-styles.
Install
claude mcp add critical -- npx -y criticalnpx -y criticalgit clone https://github.com/addyosmani/criticalTools (1)
optimize_critical_cssExtract above-the-fold critical CSS for an HTML document and (optionally) inline it, deferring the rest. Auto-selects a no-browser static engine for rendered/SSG/SSR HTML or a real-browser render engine for SPA shells. Returns the critical CSS, the rewritten HTML, and a structured report explaining the engine choice and bytes saved.| Parameter | Type | Description |
|---|---|---|
| css | array | Optional explicit CSS file paths/globs/strings. |
| engine | string | Engine selection. 'auto' picks static for rendered HTML, render for SPA shells. |
| height | number | |
| html | string | Raw HTML source. Provide this OR src. |
| inline | boolean | Inline critical CSS and defer the rest. |
| src | string | Path or URL to an HTML file. Provide this OR html. |
| width | number |
Security checks
Static checks derived from the repository 22 hours ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.0K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
- ✓No dynamic code executionScanned 10 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- stdiosrc/mcp.js:93
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 2 callssrc/source.js:41, src/source.js:191
- Writes or deletes files
- No file writes or deletes
- Lockfile
- pnpm-lock.yaml
Pattern matches on the source text of 10 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.0K words, fetched 22 hours ago. The original in the repository is authoritative.
Read full README