Back to Home
maquina-app icon

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

Run Command
rails-mcp-server

Security 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

Stats

Interest Score89
Security Score5
Cost ClassLow
Avg Tokens800
Stars451
Forks23
Last Update2025-12-11

Tags

LLMRailsDevelopmentCode AnalysisAI Agent