Developer Tools · Security

MCP Server Ssh Rails Runner logo

MCP Server Ssh Rails Runner

tadasant/mcp-server-ssh-rails-runner

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.

Install

npx mcp-server-ssh-rails-runner

Client configuration

{
  "mcpServers": {
    "ssh-rails-runner": {
      "command": "npx",
      "args": [
        "mcp-server-ssh-rails-runner"
      ],
      "env": {
        "SSH_HOST": "<SSH_HOST>",
        "SSH_USER": "<SSH_USER>",
        "SSH_PRIVATE_KEY_PATH": "<SSH_PRIVATE_KEY_PATH>",
        "RAILS_WORKING_DIR": "<RAILS_WORKING_DIR>",
        "PROJECT_NAME_AS_CONTEXT": "<PROJECT_NAME_AS_CONTEXT>",
        "CODE_SNIPPET_FILE_DIRECTORY": "<CODE_SNIPPET_FILE_DIRECTORY>"
      }
    }
  }
}

Environment variables

SSH_HOSTSSH_USERSSH_PRIVATE_KEY_PATHRAILS_WORKING_DIRPROJECT_NAME_AS_CONTEXTCODE_SNIPPET_FILE_DIRECTORY
GitHub stars
7
Author
@tadasant
Category
Developer Tools, Security
License
MIT
Updated
Oct 6, 2026

About MCP Server Ssh Rails Runner

This works great with Cursor. You can use Cursor Composer to pull in your Rails model files as context and then use the execute_read_only, dry_run_mutate, and execute_mutate tools to make changes to the database. No need to trudge through complicated Admin UI's to get your data wrangling and analysis done.

Features

  • Remote Rails console execution over SSH

  • Safe read-only operations

  • Dry-run capability for mutations

  • Execution of approved mutations

  • Resource management for code snippets

Tools (3)

  • mcp_ssh_rails_runner_prepare_code_snippet

  • mcp_ssh_rails_runner_execute_code_snippet_read_only

  • mcp_ssh_rails_runner_execute_code_snippet_mutate

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Claude Desktop logo

Claude Desktop

Desktop · Freemium · Proprietary

Anthropic's official Claude AI desktop application. Supports MCP servers to extend functionality.

WindowsMacOS
Cursor logo

Cursor

Desktop · Freemium · Proprietary

The first agentic IDE. The Cursor editor truly merges how developers and AI work together, delivering a magical coding experience.

WindowsMacOSLinux

Related MCP servers

More servers
Playwright logo

Playwright

microsoft/playwright

72.2k

Playwright is a framework for web automation and testing. It drives Chromium, Firefox, and WebKit with a single API — in your tests, in your scripts, and as a tool for AI agents.

Developer Tools
repomix logo

repomix

yamadashy/repomix

15.2k

Repomix is a tool that packs a codebase into an AI-friendly format, supporting local and remote repository processing and providing code compression, security checks and multiple output formats.

Developer Tools
UI-TARS-desktop logo

UI-TARS-desktop

bytedance/UI-TARS-desktop

12.9k

TARS is ByteDance's multimodal AI agent stack, shipping two projects: Agent TARS (a CLI and Web UI agent built on MCP) and UI-TARS-desktop (a desktop GUI agent).

Developer Tools
blender logo

blender

ahujasid/blender-mcp

10.6k

formerly blender-mcp — the PyPI package is now mcp-for-blender. Existing setups keep working; no config change is required. Read more.

Developer Tools
Playwright Browser Automation logo

Playwright Browser Automation

microsoft/playwright-mcp

9.2k

A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.

Developer Tools
2344 logo

2344

comet-ml/opik

7k

Opik is the open-source LLM observability and evaluation platform for AI agent tracing, LLM evaluation, prompt management, and production monitoring. Built by Comet. Apache-2.0 licensed, free to self-host the full platform, with 20,000+ GitHub stars.

Developer Tools