style-agent
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@style-agentcheck computed styles for the primary button against spec"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
style-agent
Portable style verification toolkit (Chrome CDP + JSON specs).
Works as a CLI, and optionally as an MCP server for any MCP client (Cursor, Claude Code, etc.). Not a Cursor-only plugin.
You: define acceptance + final review
Agent / you: find → inspect → fix CSS → re-check
Channel: Chrome DevTools Protocol (no browser extension required)Quick start (CLI)
git clone https://github.com/jtrslar/style-agent.git
cd style-agent
npm install
chmod +x launch-chrome.sh
# 1) Start debug Chrome (independent profile)
./launch-chrome.sh http://127.0.0.1:8080/your-page
# or: ./launch-chrome.sh then navigate manually
# 2) Probe CDP / run a demo spec (adapt selectors to your DOM)
node cli.mjs status
node cli.mjs inspect demo-modal-shell.jsonDemo specs under specs/examples/ use neutral class names (.demo-modal, …). Copy them into your app repo and edit selectors — do not treat examples as a product baseline.
Related MCP server: Chrome DevTools MCP
Optional: MCP client
Register the server with your client. Cursor example:
See examples/mcp.cursor.json.example (replace the absolute path).
Optional Cursor rule sample: examples/cursor/style-agent.mdc.
Then refresh MCP in the client settings.
MCP tools
Tool | Purpose |
| CDP + open tabs |
| JSON spec check (failures only by default) |
| text / css / testid / role → uid |
| computed-style subtree |
| interact then measure |
| helpers |
| advanced page expressions |
No screenshots in the default path — structured JSON only.
Where specs live
Kind | Location |
Project specs | Your app repo, e.g. |
This repo | Format demos only |
Details: SPECS.md.
node cli.mjs inspect /absolute/path/to/your-app/style-specs/foo.json
# or
export STYLE_AGENT_SPECS_DIR="/absolute/path/to/your-app/style-specs"Layout
index.mjs MCP server entry (optional)
cli.mjs CLI
launch-chrome.sh debug Chrome on CDP
lib/cdp.js CDP connect
inject/page-runtime.js page-side find + inspect
SPECS.md project vs example specs
UPGRADE.md optional Pixelmatch roadmap
specs/examples/ neutral demos only
examples/ MCP / Cursor samplesEnvironment (optional)
Variable | Default | Meaning |
|
| CDP endpoint |
|
| Spec search dir (point at your app in real use) |
Upgrade path
UPGRADE.md: optional Pixelmatch gate + style-agent targeted fixes.
When style_status reports upgradeStatus=proposed, ask once whether to adopt it.
Notes
Log in / CAPTCHA in the debug Chrome window yourself when needed
Does not replace human visual taste checks; it provides structured diffs for fixing CSS
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceControls Chrome browser with debugging capabilities, allowing page automation, extension management, and userscript injection through the Model Context Protocol.Last updated44
- Alicense-qualityDmaintenanceEnables AI coding assistants to control and inspect a live Chrome browser for automation, debugging, performance analysis, network monitoring, and DOM interaction through Chrome DevTools Protocol.Last updated1,408,230Apache 2.0
- AlicenseAqualityAmaintenanceEnables direct browser control via Chrome DevTools Protocol, supporting navigation, interaction, content extraction, and screenshots through a single MCP tool.Last updated1336MIT
- Alicense-qualityCmaintenanceEnables CSS analysis with 150+ metrics, MDN documentation retrieval, and browser compatibility checks for CSS properties.Last updated1BSD 3-Clause
Related MCP Connectors
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
On-demand drift checks: declared CSS color, radius, spacing & type vs your own tokens or a pack
Live browser debugging for AI assistants — DOM, console, network via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jtrslar/style-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server