Skip to main content
Glama
rog0x

mcp-lint-tools

by rog0x

@rog0x/mcp-lint-tools

Code linting and style checking tools for AI agents, exposed as an MCP (Model Context Protocol) server.

All analysis is performed via regex and text parsing — no AST libraries required.

Tools

check_code_style

Check code style issues with configurable rules:

  • Indentation — tabs vs spaces, configurable indent size

  • Line length — flag lines exceeding a maximum length

  • Trailing whitespace — detect trailing spaces/tabs

  • Final newline — require a newline at end of file

  • Quotes — enforce single or double quote consistency

  • Semicolons — enforce always or never semicolon usage

check_naming_conventions

Analyze identifier naming conventions:

  • Detect camelCase, PascalCase, snake_case, UPPER_CASE

  • Language-aware rules for TypeScript, JavaScript, Python, Go

  • Flag mixed conventions within the same identifier kind

  • Suggest fixes with automatic name conversion

analyze_complexity

Measure code complexity metrics:

  • Cyclomatic complexity per function

  • Lines per function count

  • Nesting depth measurement

  • Configurable thresholds for flagging

find_dead_code

Detect potential dead code:

  • Unused variables — declared but never referenced

  • Unreachable code — statements after return/throw/break

  • Empty catch blocks — silently swallowed errors

  • Commented-out code — blocks of commented code

  • TODO/FIXME/HACK — annotation comments

analyze_imports

Analyze import statements:

  • Unused imports — imported names not referenced in code

  • Import ordering — enforce group ordering (builtin > external > internal > relative)

  • Duplicate imports — same module imported multiple times

  • Circular dependency hints — basic detection of potential cycles

Related MCP server: code-guardian

Installation

npm install
npm run build

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "lint-tools": {
      "command": "node",
      "args": ["path/to/mcp-lint-tools/dist/index.js"]
    }
  }
}

Development

npm install
npm run build
npm start

License

MIT

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    An MCP server that performs comprehensive Python code analysis using Ruff, ty, and Vulture for linting, type checking, and dead code detection.
    8
    11
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    An MCP server that provides code quality checks for AI coding assistants, including file size limits, ESLint, architecture compliance, anti-pattern scanning, and comment compliance.
    127
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    MCP server providing codebase analysis tools for AI assistants, including line counts, function metrics, threshold checks, and code quality detection.
    8
    241
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    MCP server for static code analysis using AST parsing and linters, providing tools to detect syntax errors, type issues, typos, and incorrect variable usage across multiple languages. It supports headless linting with tools like ast_check, lint_check, and health.

View all related MCP servers

Related MCP Connectors

  • MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.

  • Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.

  • An MCP server that gives your AI access to the source code and docs of all public github repos

View all MCP Connectors

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/rog0x/mcp-lint-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server