stylelint-mcp
Allows AI models to run Stylelint on files and fix linting warnings.
Click on "Deploy 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-mcp lint 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.
Related MCP server: MCP Python Linter
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
Available Tools
1 toollint-filesA
Lint files using Stylelint. You must provide a list of absolute file paths to the CSS files you want to lint. The absolute file paths should be in the correct format for your operating system.
Inputs: filePaths (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
Only one tool exists, so there is no ambiguity between tools. The tool's purpose is clearly defined.
With a single tool, naming is trivially consistent. The name 'lint-files' follows a clear verb_noun pattern.
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.
The core linting operation is covered. Missing features like fixing or config management are minor gaps, but the tool fulfills its stated purpose.
Related MCP Connectors
Run accessibility, contrast, and design token audits and file QA issues from your AI coding tool.
Research-backed lint + generation for agent context files (CLAUDE.md, AGENTS.md) + prompt enhancer.
Enforces architectural invariants and code quality rules inside your AI agent's edit loop.
Give AI coding agents access to your Vynix visual feedback, bug reports, and AI diagnosis.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with the ability to lint, validate, and auto-fix Markdown files to ensure compliance with established Markdown standards and best practices.6MIT
- FlicenseNot gradedqualityDmaintenanceEnables Python code linting by integrating the Model Context Protocol with tools like pylint and the OpenAI API. It allows for dynamic tool discovery and uses LLMs to orchestrate tool selection and provide refined analysis of linting results.-
- AlicenseNot gradedqualityCmaintenanceEnables smart contract security auditing using Slither, Aderyn, and custom pattern analysis through the Model Context Protocol, allowing AI assistants to run static analysis and vulnerability checks on Solidity and Vyper contracts.1Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI agents to lint API artifacts (OpenAPI, AsyncAPI, Arazzo) and manage rulesets conversationally via the Model Context Protocol.4Apache 2.0