Audit CSS with MDN-backed browser checks
An MCP add-on let Claude Code look up MDN guidance and browser support while reviewing CSS for likely issues.
- What they did
- They installed an MCP server through an npx command and connected it with Claude Code, VS Code, or a similar client. From there, the agent could fetch MDN documentation for a CSS feature, read browser compatibility data, and scan either pasted styles or a project’s built CSS output. They could request a short summary by default by asking in normal language.
- How it went
- The README did not show a real-world deployment. It did mention rough speed numbers: initial lookups landed around 400-500ms, while cached ones were about 100ms. A summary run used roughly 1-2k tokens, and the full 150+ metric mode could use 10k+ tokens.
- Tips
- Use the default summary mode unless you specifically need the full metric report. You’ll need Node 20+ and native build tools so the SQLite cache can work.
Try it yourself with Claude Code
Look over [path to CSS file or pasted CSS] and compare any doubtful properties or features with MDN guidance and browser support for [browser targets]. Point out anything that may not work, anything redundant, and anything that should fall back to a safer option, then explain each suggested edit. Before any step that would send, delete, submit, or overwrite something, stop and ask for my approval. End with a brief compatibility note that separates safe-to-ship changes from items that still need a fallback.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Use Claude Code to refactor a monorepo in phases
A developer used Claude Code to swap tooling, reorganize features, and refresh a site by checking each step in a tight validation loop.
Use Claude Code to spot macOS layout bugs
A developer let Claude Code compile a Mac app, open it, and click through screens to find visual problems.
Keep many coding agents moving with local context cache
A developer ran several Claude Code sessions at once on local RTX 3090 hardware and avoided reloading long contexts after idle periods.
Match a pull request to repo style
A developer used Claude Code to bring a pull request in line with a repo’s style, but it only altered comments and left the code unchanged.
Move Claude Code skills into Codex
Charlie Hills used Claude Code and Codex to migrate 201 skills in an afternoon, then checked which parts worked in both tools and which still needed fixes.
Let an agent turn browser edits into code
A designer changed a local site in the browser while a coding agent wrote the matching CSS updates into the codebase.