Command Palette

Search for a command to run...

Home / Servers

rails-mcp-insight

by aditya-8108

🔍 rails-mcp-insight

Deep Rails introspection MCP server for AI assistants

Gem Version License Downloads


Give your AI assistant (Claude Desktop, Cursor, VS Code / Roo Code / Cline) deep, intelligent understanding of your Ruby on Rails application through the open Model Context Protocol (MCP).

Unlike basic tools that dump raw files or schema definitions, rails-mcp-insight provides cross-referenced, contextual intelligence — tracing the full request lifecycle from route → controller → model → callbacks → background jobs → mailers.


✨ Available Tools (15)

ToolDescriptionExample Prompt
stats_overviewProject dashboard: versions, counts, LOC, test coverage"Give me an overview of this Rails project."
search_routesSmart route search with HTTP method & path filtering"Find all POST routes in config/routes.rb"
analyze_modelDeep dive: columns, associations, validations, callbacks, scopes"Analyze the Order model."
analyze_controllerActions, filters, strong params, rescue handlers"Show details for OrdersController."
search_codeRegex code search with surrounding context lines"Search for stripe_customer_id across the codebase."
find_definitionLocate where any class, module, method, or constant is defined"Where is OrderService defined?"
list_modelsList all models with table names & metadata at a glance"List all models in this application."
trace_request🔥 Full request lifecycle tracing (killer feature!)"Trace what happens when POST /orders is called."
analyze_migration_historyChronological schema evolution & migration timeline"Show migration history for the users table."
audit_gemsDependency health check from Gemfile / Gemfile.lock"Audit our installed gems."
check_securityStatic analysis for SQL injection, mass assignment, XSS, etc."Scan this project for security vulnerabilities."
find_testsMap source files → test/spec files + factories"Find test files for app/models/user.rb"
analyze_jobActiveJob queue, retry/discard config, callbacks, triggers"Analyze OrderConfirmationJob."
explain_association_chainFind all association paths between two models"How does User relate to Product?"
generate_erdMermaid Entity Relationship Diagrams"Generate an ERD for User, Order, Product."

🎯 The Killer Feature: trace_request

Ask your AI: "What happens when a user submits POST /orders?"

rails-mcp-insight traces the full request path statically:

Related servers

n8n

Updated today

by n8n-io

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

199,260

mcp-server-git

OfficialUpdated today

by modelcontextprotocol

A Model Context Protocol server providing tools to read, search, and manipulate Git repositories programmatically via LLMs

89,176

mcp-server-fetch

OfficialUpdated today

by modelcontextprotocol

A Model Context Protocol server providing tools to fetch and convert web content for usage by LLMs

89,176

@modelcontextprotocol/server-everything

OfficialUpdated today

by modelcontextprotocol

MCP server that exercises all the features of the MCP protocol

89,176