SSH Rails Runner logo

SSH Rails Runner

by MCP-Mirror

An MCP server that enables secure remote execution of Rails console commands via SSH. It provides tools for both read-only operations and carefully managed mutations in a deployed Rails environment.

View on GitHub

Last updated: N/A

What is SSH Rails Runner?

This server is an MCP server designed to allow secure remote execution of Rails console commands over SSH. It provides a controlled environment for interacting with a Rails application, including read-only operations and managed mutations.

How to use SSH Rails Runner?

  1. Install the server using npm install and npm run build. 2. Configure environment variables such as SSH_HOST, SSH_USER, SSH_PRIVATE_KEY_PATH, and RAILS_WORKING_DIR. 3. Integrate with Claude Desktop by adding the server configuration to the mcpServers section. 4. Use the available tools: run_read_only, dry_run_mutate, and execute_mutate to interact with the Rails application.

Key features of SSH Rails Runner

  • Remote Rails console execution over SSH

  • Safe read-only operations

  • Dry-run capability for mutations

  • Execution of approved mutations

Use cases of SSH Rails Runner

  • Data wrangling

  • Data analysis

  • Remote debugging

  • Remote configuration management

FAQ from SSH Rails Runner

What is the purpose of this server?

To securely execute Rails console commands remotely via SSH.

How do I install the server?

Use npm install and npm run build.

What environment variables are required?

SSH_HOST, SSH_USER, SSH_PRIVATE_KEY_PATH, and RAILS_WORKING_DIR.

What are the available tools?

run_read_only, dry_run_mutate, and execute_mutate.

What are the security considerations?

Only use with trusted SSH endpoints and review all mutations before execution.