TokenToSeaMCP Hub
中文 Console

Rails SSH Runner MCP

tadasant

Opens an SSH connection to a deployed Rails app so the agent can run Rails console commands, from read-only checks to approved changes.

Setup

Choose your client, copy the config, then fill in any required environment variables.

Add to CursorAdd to VS Code

claude mcp add rails-ssh-runner --env RAILS_WORKING_DIR='<RAILS_WORKING_DIR>' --env SSH_HOST='<SSH_HOST>' --env SSH_PRIVATE_KEY_PATH='<SSH_PRIVATE_KEY_PATH>' --env SSH_USER='<SSH_USER>' -- npx mcp-server-ssh-rails-runner

Environment variables

  • RAILS_WORKING_DIR
  • SSH_HOST
  • SSH_PRIVATE_KEY_PATH
  • SSH_USER

Replace the placeholders with your own credentials and keep them out of version control.