Overview
MCP Server: SSH Rails Runner is a tool that enables secure remote execution of Rails console commands via SSH, allowing for both read-only operations and managed mutations in a deployed Rails environment.
To use the MCP Server, install the package, configure the necessary environment variables, and integrate it with your Claude Desktop configuration to execute Rails commands remotely.
- Remote execution of Rails console commands over SSH - Safe read-only operations - Dry-run capability for mutations - Execution of approved mutations - Resource management for code snippets
- Executing read-only queries on a remote Rails application.
- Planning and validating database mutations without immediate execution.
- Safely executing approved changes to a Rails application database.
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": {
"tadasant-mcp-server-ssh-rails-runner-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-tadasant-mcp-server-ssh-rails-runner-mcp-mirror"
]
}
}
}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": {
"tadasant-mcp-server-ssh-rails-runner-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-tadasant-mcp-server-ssh-rails-runner-mcp-mirror"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"tadasant-mcp-server-ssh-rails-runner-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-tadasant-mcp-server-ssh-rails-runner-mcp-mirror"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"tadasant-mcp-server-ssh-rails-runner-mcp-mirror": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-tadasant-mcp-server-ssh-rails-runner-mcp-mirror"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"tadasant-mcp-server-ssh-rails-runner-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-tadasant-mcp-server-ssh-rails-runner-mcp-mirror"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"tadasant-mcp-server-ssh-rails-runner-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-tadasant-mcp-server-ssh-rails-runner-mcp-mirror"
]
}
}
}FAQ
Is it safe to use this tool for database mutations?
Yes, but ensure you review all mutations before execution and only use trusted SSH endpoints.
What are the prerequisites for using this tool?
You need to have SSH access to the remote Rails environment and the necessary environment variables configured.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1321,"uuid":"3cc775f2-ab69-485a-a429-e08fc0069e6a","name":"tadasant_mcp-server-ssh-rails-runner","title":"MCP Server: SSH Rails Runner","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2025-02-20T15:11:20.871Z","updated_at":"2025-02-23T07:21:17.424Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"ssh,rails,remote-execution","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/tadasant_mcp-server-ssh-rails-runner","target":"_self","content":"$29","summary":"$2a","img_url":"https://github.com/MCP-Mirror/tadasant_mcp-server-ssh-rails-runner/raw/main/assets/example.png","type":null,"metadata":null,"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"}]]}]