drio
Open app

MCP Server: SSH Rails Runner

Source

MCP server that facilitates an SSH connection to a deployed Rails app so you can run Rails REPL commands

Catalog onlyCatalog onlySTDIO

Overview

MCP Server: SSH Rails Runner is a tool that enables secure remote execution of Rails console commands via SSH, allowing users to run Rails REPL commands on a deployed Rails application.

To use the MCP Server, install the package, configure the necessary environment variables, and integrate it with your desired application, such as Claude Desktop, to execute commands remotely.

  • Remote execution of Rails console commands over SSH - Safe read-only operations to prevent unintended changes - Dry-run capability for testing mutations before execution - Execution of approved mutations with user consent - Resource management for code snippets
  1. Running read-only queries on a Rails application database.
  2. Testing potential database mutations without affecting live data.
  3. Executing approved changes to the database securely.

Add to your AI client

Use these steps to connect MCP Server: SSH Rails Runner in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server-ssh-rails-runner-tadasant": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-ssh-rails-runner-tadasant"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-server-ssh-rails-runner-tadasant": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-ssh-rails-runner-tadasant"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-ssh-rails-runner-tadasant": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-ssh-rails-runner-tadasant"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-server-ssh-rails-runner-tadasant": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-ssh-rails-runner-tadasant"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-ssh-rails-runner-tadasant": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-ssh-rails-runner-tadasant"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-ssh-rails-runner-tadasant": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-ssh-rails-runner-tadasant"
      ]
    }
  }
}

FAQ

Is it safe to use this tool?

Yes, as long as you connect to trusted SSH endpoints and review all mutations before execution.

What are the prerequisites for using this tool?

You need to have SSH access to the Rails application and the necessary environment variables configured.

Can I use it with any Rails application?

Yes, as long as you have the correct SSH access and configuration.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1469,"uuid":"1347cadf-68e9-4c27-b977-60cd7ab5f96d","name":"mcp-server-ssh-rails-runner","title":"MCP Server: SSH Rails Runner","description":"MCP server that facilitates an SSH connection to a deployed Rails app so you can run Rails REPL commands","avatar_url":"https://avatars.githubusercontent.com/u/3900899?v=4","created_at":"2025-02-20T15:56:57.464Z","updated_at":"2025-02-23T07:12:47.258Z","status":"created","author_name":"tadasant","author_avatar_url":"https://avatars.githubusercontent.com/u/3900899?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/tadasant/mcp-server-ssh-rails-runner","target":"_self","content":"$29","summary":"$2a","img_url":"https://github.com/tadasant/mcp-server-ssh-rails-runner/raw/main/assets/example.png","type":null,"metadata":"{\"star\":\"7\",\"license\":\"MIT license\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-04-17 16:13:00\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]

MCP Server: SSH Rails Runner — MCP Registry