maquina-app avatar

Rails

maquina-app/rails-mcp-server

The Rails MCP Server is a Ruby implementation that enables Large Language Models to interact with Rails projects through the Model Context Protocol, providing code analysis, exploration, and development assistance. It offers tools for browsing project structures, viewing routes, inspecting models and database schemas, analyzing controller-view relationships, executing sandboxed code, and accessing Rails documentation. The server solves the problem of giving AI models structured, programmatic access to Rails project information for intelligent code assistance and analysis.

GitHub stars
551
tools
3
last updated
Dec 15, 2025

Tools

3 tools

Public tool metadata for what this MCP can expose to an agent.

switch_projectChange the active Rails project. Must be called before using other tools.

Change the active Rails project. Must be called before using other tools.

No parameter schema in public metadata yet.

search_toolsDiscover available tools by category or keyword.

Discover available tools by category or keyword.

No parameter schema in public metadata yet.

execute_toolInvoke internal analyzers by name.

Invoke internal analyzers by name.

No parameter schema in public metadata yet.

Sponsors

Readme

Rails MCP Server

A Ruby implementation of a Model Context Protocol (MCP) server for Rails projects. This server allows LLMs (Large Language Models) to interact with Rails projects through the Model Context Protocol, providing capabilities for code analysis, exploration, and development assistance.

What is MCP?

The Model Context Protocol (MCP) is a standardized way for AI models to interact with their environment. It defines a structured method for models to request and use tools, access resources, and maintain context during interactions.

This Rails MCP Server implements the MCP specification to give AI models access to Rails projects for code analysis, exploration, and assistance.

Features

  • Manage multiple Rails projects
  • Browse project files and structures
  • View Rails routes with filtering options
  • Inspect model information and relationships (with Prism static analysis)
  • Get database schema information
  • Analyze controller-view relationships
  • Analyze environment configurations
  • Access comprehensive Rails, Turbo, Stimulus, and Kamal documentation
  • Context-efficient architecture with progressive tool discovery
  • Seamless integration with LLM clients

View the full README on GitHub

Details

Repository
github.com/maquina-app/rails-mcp-server