RuboCop MCP Server
Provides RuboCop and Rails linting capabilities, including auto-correction, pagination, and gradual adoption configuration.
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., "@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
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/ishtiaque05/rubocop-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server