rails-mcp-server
The Rails MCP Server allows Large Language Models to interact with Rails projects through a standardized protocol.
The Rails MCP Server is a Ruby gem that implements the Model Context Protocol (MCP) to facilitate interactions between AI models and Rails applications. It provides a structured method for models to request and utilize tools, access resources, and maintain context during their operations. This server is designed to enhance code analysis, exploration, and development assistance within Rails projects. With features such as managing multiple Rails projects, browsing project files, viewing Rails routes, inspecting model relationships, and executing sandboxed Ruby code, the Rails MCP Server empowers developers and AI models alike. It also offers access to comprehensive documentation for Rails, Turbo, Stimulus, and Kamal, ensuring that users have the resources they need for effective development and collaboration.
Compatible with
Install
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"rails-mcp-server": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-rails-mcp-server"
]
}
}
}Config File Location
Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/claude/claude_desktop_config.json
Some servers require additional setup - check the GitHub README for specific instructions.
Permissions