stylelint-mcp
Allows AI models to run Stylelint on files and fix linting warnings.
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., "@stylelint-mcplint the current CSS file and fix all warnings"
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.
stylelint-mcp
A Model Context Protocol (MCP) server for Stylelint that enables AI models to interact with Stylelint directly.
Installation
npm -D install stylelint-mcpNote: 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-mcpEditor 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 fixLicense
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
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/ryo-manba/stylelint-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server