rails_mcp_engine
by vrerv
Overview
A Rails engine for defining, generating, and running AI/LLM tools, integrated with Model Context Protocol (MCP) clients and a web playground/chat interface.
Installation
bundle exec rails server -p 4000Environment Variables
- OPENAI_API_KEY
- GEMINI_API_KEY
- GOOGLE_API_KEY
- ANTHROPIC_API_KEY
- RAILS_ENV
- DEFAULT_DOMAIN
Security Notes
The server explicitly allows dynamic execution of arbitrary Ruby code (via `class_eval`) provided by users through its web-based playground interface. This constitutes a severe Remote Code Execution (RCE) vulnerability if the application is exposed to untrusted users or if developers paste malicious code. The README warns about this risk, stating 'only run trusted tool source', but the capability itself is fundamentally insecure for general deployment.
Similar Servers
rails-mcp-server
Enables Large Language Models (LLMs) to interact with Rails projects for code analysis, exploration, and development assistance using the Model Context Protocol.
Polymcp
A comprehensive TypeScript framework for building and orchestrating Model Context Protocol (MCP) servers and AI agents, enabling LLMs to intelligently discover, select, and execute external tools.
action_mcp
ActionMCP is a Ruby gem providing Model Context Protocol (MCP) server capabilities to Rails applications, enabling AI assistants to connect to external data sources and tools.
mcp_rails_template
This server demonstrates integrating the ActionMCP gem into a Ruby on Rails application to expose AI-callable tools, prompts, and resource templates for language models.