Ssh Rails Runner MCP Server

MCP server for remote Rails code execution via SSH

Local serverstdio

What is the Ssh Rails Runner MCP Server?

MCP server for remote Rails code execution via SSH

What it actually does

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 environment.

  • Remote Rails console execution over SSH
  • Safe read-only operations
  • Dry-run capability for mutations
  • Execution of approved mutations
  • Resource management for code snippets

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

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

How to install the Ssh Rails Runner MCP Server

{
  "mcpServers": {
    "server-ssh-rails-runner": {
      "command": "npx",
      "args": ["-y", "npm"],
      "env": {
        "SSH_HOST": "your-value",
        "SSH_USER": "your-value",
        "SSH_PRIVATE_KEY_PATH": "your-value",
        "RAILS_WORKING_DIR": "your-value",
        "PROJECT_NAME_AS_CONTEXT": "your-value",
        "CODE_SNIPPET_FILE_DIRECTORY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
SSH_HOSTEndpoint or connection string the server talks to.Optional
SSH_USERConfiguration value read at startup.Optional
SSH_PRIVATE_KEY_PATHCredential the server authenticates with.Yes
RAILS_WORKING_DIRFilesystem location the server is allowed to use.Optional
PROJECT_NAME_AS_CONTEXTConfiguration value read at startup.Optional
CODE_SNIPPET_FILE_DIRECTORYFilesystem location the server is allowed to use.Optional

Example prompts to try

  • “Use Ssh Rails Runner to mcp ssh rails runner prepare code snippet.”

Frequently asked questions

MCP server for remote Rails code execution via SSH Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.