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…
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.
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.
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.
Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What 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 |
{
"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.
| Variable | Description | Required |
|---|---|---|
| SSH_HOST | Declared in the maintainer’s client configuration. | Check documentation |
| SSH_USER | Declared in the maintainer’s client configuration. | Check documentation |
| SSH_PRIVATE_KEY_PATH | Declared in the maintainer’s client configuration. | Check documentation |
| RAILS_WORKING_DIR | Declared in the maintainer’s client configuration. | Check documentation |
| PROJECT_NAME_AS_CONTEXT | Declared in the maintainer’s client configuration. | Optional |
| CODE_SNIPPET_FILE_DIRECTORY | Declared in the maintainer’s client configuration. | Check documentation |
Give your assistant a real code sandbox — isolated cloud VMs for actually running the code it writes.
Runs Python code locally within an interactive REPL environment.
Executes Python code within ephemeral Daytona sandboxes, facilitating tasks such as code execution, file manipulation, and web server previewing.
Enables Claude to manage software development projects with project context awareness and code execution via Docker.
Give your agent a persistent workspace: files, a code sandbox and a public URL to publish to.
Build Apps and run code in 30 languages — sandboxed, with persistent sessions for agent loops.