Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Stylelint

FreeNot checked

Enables AI models to run Stylelint on CSS files and fix linting warnings directly through the Model Context Protocol.

GitHubEmbed

About

Enables AI models to run Stylelint on CSS files and fix linting warnings directly through the Model Context Protocol.

README

A Model Context Protocol (MCP) server for Stylelint that enables AI models to interact with Stylelint directly.

Installation

npm -D install stylelint-mcp

Note: You must have stylelint installed either globally or locally in your project.

Usage

The server is started automatically by your editor’s MCP client, but you can run it manually for testing:

npx stylelint-mcp

Editor setup examples

VS Code

Add .vscode/mcp.json:

{
  "servers": {
    "Stylelint": {
      "type": "stdio",
      "command": "npx",
      "args": ["stylelint-mcp@latest"]
    }
  }
}

Cursor

Add .cursor/mcp.json:

{
  "mcpServers": {
    "stylelint": {
      "command": "npx",
      "args": ["stylelint-mcp@latest"],
      "env": {}
    }
  }
}

Example prompts

Run Stylelint on the current file and explain the warnings

Lint #file:index.css and fix

License

MIT

from github.com/ryo-manba/stylelint-mcp

Installing Stylelint

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/ryo-manba/stylelint-mcp

FAQ

Is Stylelint MCP free?

Yes, Stylelint MCP is free — one-click install via Unyly at no cost.

Does Stylelint need an API key?

No, Stylelint runs without API keys or environment variables.

Is Stylelint hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Stylelint in Claude Desktop, Claude Code or Cursor?

Open Stylelint on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Stylelint with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs