mcp-server-ssh-rails-runner MCP Server

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

Local serverstdioMIT

What is the mcp-server-ssh-rails-runner MCP Server?

mcp-server-ssh-rails-runner is an MCP project maintained in the tadasant/mcp-server-ssh-rails-runner repository. The maintainer describes its purpose as “An MCP server that enables secure remote execution of Rails console commands via SSH. This server provides tools for both read-only operations and carefully managed…”. Read the project documentation for the complete scope.

Installation

The documented npm package is mcp-server-ssh-rails-runner. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares SSH_HOST, SSH_USER, SSH_PRIVATE_KEY_PATH, RAILS_WORKING_DIR, PROJECT_NAME_AS_CONTEXT, CODE_SNIPPET_FILE_DIRECTORY. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
mcp_ssh_rails_runner_prepare_code_snippet
mcp_ssh_rails_runner_execute_code_snippet_read_only
mcp_ssh_rails_runner_execute_code_snippet_mutate

How to install the mcp-server-ssh-rails-runner MCP Server

{
  "mcpServers": {
    "ssh-rails-runner": {
      "command": "npx",
      "args": [
        "mcp-server-ssh-rails-runner"
      ],
      "env": {
        "SSH_HOST": "your.remote.host",
        "SSH_USER": "your_ssh_user",
        "SSH_PRIVATE_KEY_PATH": "YOUR_SSH_PRIVATE_KEY_PATH",
        "RAILS_WORKING_DIR": "/path/to/rails/app/root",
        "PROJECT_NAME_AS_CONTEXT": "Name that shows up in tool descriptions to help the LLM describe what kind of Rails project we're working with.",
        "CODE_SNIPPET_FILE_DIRECTORY": "/path/to/store/code/snippets/locally"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
SSH_HOSTDeclared in the maintainer’s client configuration.Check documentation
SSH_USERDeclared in the maintainer’s client configuration.Check documentation
SSH_PRIVATE_KEY_PATHDeclared in the maintainer’s client configuration.Check documentation
RAILS_WORKING_DIRDeclared in the maintainer’s client configuration.Check documentation
PROJECT_NAME_AS_CONTEXTDeclared in the maintainer’s client configuration.Optional
CODE_SNIPPET_FILE_DIRECTORYDeclared in the maintainer’s client configuration.Check documentation