stylelint-mcp
by ryo-manba
README.md
# stylelint-mcp
A [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server for Stylelint that enables AI models to interact with Stylelint directly.
## Installation
```shell
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:
```shell
npx stylelint-mcp
```
## Editor setup examples
### VS Code
Add `.vscode/mcp.json`:
```json
{
"servers": {
"Stylelint": {
"type": "stdio",
"command": "npx",
"args": ["stylelint-mcp@latest"]
}
}
}
```
### Cursor
Add `.cursor/mcp.json`:
```json
{
"mcpServers": {
"stylelint": {
"command": "npx",
"args": ["stylelint-mcp@latest"],
"env": {}
}
}
}
```
## Example prompts
```text
Run Stylelint on the current file and explain the warnings
Lint #file:index.css and fix
```
## License
[MIT](./LICENSE)
TDQS
A4.2/5.0
Scored across 1 tool
Disambiguation5/5
Only one tool exists, so there is no ambiguity between tools. The tool's purpose is clearly defined.
Naming Consistency5/5
With a single tool, naming is trivially consistent. The name 'lint-files' follows a clear verb_noun pattern.
Tool Count3/5
A single tool feels thin for a linter server; additional tools like fixing or configuration would be expected. However, it may suffice for a minimal integration.
Completeness4/5
The core linting operation is covered. Missing features like fixing or config management are minor gaps, but the tool fulfills its stated purpose.
Maintenance
ActivityInactive
ResponsivenessNo issues