Skip to main content
Glama
stylelint-mcp

stylelint-mcp

by ryo-manba

stylelint-mcp

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.

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-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

Available Tools

1 tool
lint-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

    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.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI assistants with the ability to lint, validate, and auto-fix Markdown files to ensure compliance with established Markdown standards and best practices.
      6
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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.
      1
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to lint API artifacts (OpenAPI, AsyncAPI, Arazzo) and manage rulesets conversationally via the Model Context Protocol.
      4
      Apache 2.0