Back to Home
sh1nj1 icon

rails_mcp_engine

by sh1nj1

Overview

A Rails engine for building and managing LLM tools, unifying Sorbet-typed service classes into both RubyLLM and FastMCP tool definitions.

Installation

Run Command
bundle exec rails server -p 4000

Environment Variables

  • OPENAI_API_KEY
  • GEMINI_API_KEY
  • GOOGLE_API_KEY
  • ANTHROPIC_API_KEY
  • RAILS_ENV
  • DEFAULT_DOMAIN

Security Notes

CRITICAL: The application uses `Object.class_eval` to execute arbitrary Ruby code provided by the user in the playground (e.g., for registering new tools dynamically). This is explicitly noted in the README as a feature for trusted sources, but it presents a severe code execution vulnerability if exposed to untrusted input. Additionally, the FastMCP server is configured with `localhost_only: false`, allowing remote connections to the MCP endpoint, which could expose the `eval`-capable tools to network access.

Similar Servers

Stats

Interest Score32
Security Score2
Cost ClassHigh
Avg Tokens2000
Stars1
Forks0
Last Update2025-12-04

Tags

RailsMCPLLM IntegrationToolingSorbet