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
agentor
Deploy scalable AI agents with tool integrations (weather, email, GitHub, etc.) and support for A2A and MCP communication protocols.
action_mcp
Provides Model Context Protocol (MCP) server capabilities to Ruby on Rails applications, enabling AI assistants to interact with external data sources and tools via JSON-RPC over HTTP/SSE.
Polymcp
A comprehensive toolkit and agent framework for building Model Context Protocol (MCP) servers and orchestrating them with Large Language Models (LLMs) across Python and TypeScript environments.
mcp_rails_template
A Ruby on Rails application template demonstrating the integration and usage of the ActionMCP gem, providing various AI components like prompts, resource templates, and tools for LLMs.