This repository provides a Rails MCP server, enabling AI models to interact with Rails projects using the Model Context Protocol for code analysis, exploration, and assistance. It manages projects, browses
A Ruby implementation of a Model Context Protocol (MCP) server for Rails projects, enabling LLMs to interact with Rails projects. MCP standardizes AI model interaction with environments, defining structured methods for requesting tools, accessing resources, and maintaining context.
This Rails MCP Server implements the MCP specification, granting AI models access to Rails projects for code analysis, exploration, and assistance.
Install the gem using gem install rails-mcp-server
. Configure projects by editing the projects.yml
file in the XDG config directory. The server supports Claude Desktop integration via a setup script or manual configuration. It provides tools like switch_project
, get_project_info
, list_files
, get_file
, get_routes
, get_models
, and get_schema
for interacting with Rails projects. The server communicates via JSON-RPC over stdio.
maquina-app/rails-mcp-server
March 20, 2025
March 28, 2025
Ruby