rails-mcp-server
by maquina-app
Overview
A Ruby implementation of a Model Context Protocol (MCP) server for Rails projects, allowing LLMs to interact with Rails codebases for analysis, exploration, and development assistance.
Installation
rails-mcp-serverSecurity Notes
The server uses `eval` in the `get_schema` analyzer on introspection results from ActiveRecord, which carries inherent risks if the Rails project or its ActiveRecord extensions are compromised. It also executes direct shell commands (`git ls-files`, `bin/rails runner`) via `Open3.capture3` and backticks. While `execute_ruby` employs extensive sandboxing to restrict file I/O, network, and system calls, this sandboxing does not apply to other analyzers, leaving potential attack vectors. Operating in HTTP mode with `--bind-all` increases the network attack surface, although built-in security features are claimed. The security relies heavily on the trustworthiness of the target Rails project being analyzed.
Similar Servers
boost
Laravel Boost is an MCP server designed to accelerate AI-assisted development by providing context and specialized tools for Laravel-specific code generation.
code-assistant
An AI coding assistant that autonomously analyzes and modifies code, supporting integration with clients like Claude Desktop via MCP server mode.
action_mcp
Provides a Model Context Protocol (MCP) server for Ruby on Rails applications, enabling them to expose structured data, tools, and prompts to Large Language Models (LLMs) for context-aware AI interactions.
mcp_rails_template
A Ruby on Rails application demonstrating how to integrate and use the ActionMCP gem to expose AI-enabled tools, prompts, and resource templates for language models.