mcp_rails_template
Verified Safeby seuros
Overview
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.
Installation
bin/rails sEnvironment Variables
- RAILS_MASTER_KEY
- DATABASE_URL
- RAILS_MAX_THREADS
- PORT
- SOLID_QUEUE_IN_PUMA
- RAILS_LOG_LEVEL
- API_KEY_FOR_TOOLS
Security Notes
The `ApplicationGateway` in development mode is configured with `ActionMCP::NoneIdentifier`, meaning MCP endpoints are accessible without authentication. This is suitable for local development but poses a significant security risk if deployed without implementing proper authentication (e.g., API keys, JWT, OAuth as suggested for production in `config/mcp.yml`). Tools like `rubocop_tool` and `ruby_code_analyzer_tool` process provided code snippets and project files; while they are designed for analysis rather than arbitrary code execution, care must be taken regarding the scope of code they can access if exposed without proper authorization. `fetch_weather_by_location_tool` makes external API calls to Open-Meteo, which is a known endpoint, but external network requests always carry a minimal risk. Default PostgreSQL credentials in `docker-compose.yml` are for local development only.
Similar Servers
mcp-servers
Provides a curated collection of Model Context Protocol (MCP) server configurations to enable AI agents to interact with various developer tools and services.
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.
emacs-mcp-server
Connect Large Language Models (LLMs) directly to Emacs, enabling them to interact with and control the Emacs environment for tasks like code manipulation, text editing, and executing Emacs Lisp commands.
mcp-framework
A Rust framework implementing the Model Context Protocol for building production-ready MCP servers, clients, and intelligent AI agents that integrate with LLMs for tool use and browser automation.