RuboCop MCP Server
Provides RuboCop and Rails linting capabilities, including auto-correction, pagination, and gradual adoption configuration.
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., "@RuboCop MCP ServerLint app/models/user.rb"
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.
RuboCop MCP Server
A Model Context Protocol (MCP) server that provides RuboCop and Rails linting capabilities to AI assistants like Claude and Cursor.
Features
RuboCop Integration: Run RuboCop linting with Rails-specific cops
Auto-correction: Automatically fix style violations
Smart Pagination: Handle large cop lists efficiently
Auto-lint Mode: Automatic linting reminders for AI assistants
Flexible Filtering: Run specific cops or departments
Gradual Adoption: Generate
.rubocop_todo.ymlfor existing projects
Related MCP server: Vale MCP Server
Quick Start
Prerequisites
# Install RuboCop
gem install rubocop rubocop-rails
# Or add to your Rails Gemfile
# gem 'rubocop', require: false
# gem 'rubocop-rails', require: falseInstallation
# 1. Clone and build
git clone https://github.com/yourusername/rubocop-mcp.git
cd rubocop-mcp
yarn install && yarn build
# 2. Add to Claude CLI
claude mcp add --transport stdio rubocop -- node $(pwd)/build/index.js
# 3. Verify
claude mcp listUsage
Start Claude in your Rails project and ask:
Lint app/models/user.rbCheck app/controllers for Rails violations and auto-fix themList all available Rails copsThat's it! See Installation Guide for detailed setup instructions.
Available Tools
Tool | Description |
| Run RuboCop on files with auto-correction support |
| List available cops with pagination |
| Show detailed cop information |
| Generate |
| Enable/disable automatic linting reminders |
| Check auto-lint configuration |
See API Reference for complete documentation.
Documentation
Installation Guide - Complete installation instructions
Configuration - Configure for different environments
Usage Guide - Examples and workflows
API Reference - Complete tool reference
Auto-Lint Feature - Automatic linting reminders
Pagination Guide - Handle large result sets
Development Guide - Contributing and testing
Troubleshooting - Common issues and solutions
Project Structure
rubocop-mcp/
├── src/ # TypeScript source code
├── build/ # Compiled JavaScript
├── docs/ # Documentation
├── examples/ # Configuration examples
├── test/ # Test files
└── package.json # Project configurationContributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
License
MIT
Support
This server cannot be deployed
Maintenance
Related MCP Connectors
Research-backed linting + generation for agent context files (CLAUDE.md, AGENTS.md, Cursor rules).
Lints + auto-fixes how AI coding agents discover any new product. 24 rules, 6 tools, score 0-100.
Persistent memory for Claude Code and Cursor. Stop re-explaining your project every session.
Run SEO + AI-visibility (GEO) audits from Claude, Cursor & other AI clients.
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
- AlicenseAqualityFmaintenanceIntegrates Vale prose linting into AI coding assistants, enabling users to check text files for style and grammar issues using Vale's powerful linting engine. Provides automated style feedback with smart configuration discovery and rich formatted results.318MIT
- AlicenseAqualityDmaintenanceEnables AI coding assistants like Claude Code to perform real-time code linting and get violation summaries from tools such as ESLint, Stylelint, P3C, and Checkstyle via a local server.36 npmApache 2.0
- FlicenseNot gradedqualityDmaintenanceTurns Claude Desktop into a Cursor-like assistant for code browsing, editing, searching, linting, formatting, and version control.-