Back to Home
maquina-app icon

rails-mcp-server

Verified Safe

by maquina-app

Overview

Enables Large Language Models (LLMs) to interact with Rails projects for code analysis, exploration, and development assistance using the Model Context Protocol.

Installation

Run Command
rails-mcp-server

Environment Variables

  • RAILS_MCP_PROJECT_PATH
  • XDG_CONFIG_HOME

Security Notes

The server implements robust security measures including a strong sandboxing mechanism for `execute_ruby` with static code analysis (forbidden patterns) and runtime method overrides (blocking file writes, system calls, network access). Path validation prevents directory traversal, and sensitive file patterns (e.g., .env, master.key, SSH keys) are explicitly blocked. Input validation using strict regex for model/table names helps prevent injection attacks. The `RunProcess` uses `Shellwords.escape` for paths and constructs internal commands carefully to mitigate shell injection.

Similar Servers

Stats

Interest Score87
Security Score9
Cost ClassMedium
Avg Tokens1000
Stars477
Forks27
Last Update2026-01-12

Tags

RailsMCPLLMCode AnalysisDevelopment Assistance