remote-mcp

3
0
Source

Control remote machines via MCP using terminator CLI. Auto-activates when user says "remote MCP", "connect to machine", "execute on remote", or wants to run commands on remote VMs.

Install

mkdir -p .claude/skills/remote-mcp && curl -L -o skill.zip "https://mcp.directory/api/skills/download/3054" && unzip -o skill.zip -d .claude/skills/remote-mcp && rm skill.zip

Installs to .claude/skills/remote-mcp

About this skill

Remote MCP Control Skill

Control remote MCP-enabled machines using the terminator CLI.

Prerequisites

  1. Terminator CLI installed: cargo install terminator-cli or npx @mediar-ai/cli
  2. MCP endpoint URL from target machine (e.g., http://<IP>:8080/mcp)
  3. Auth token (if required): Set via MCP_AUTH_TOKEN env var

Basic Usage

# Set auth token if required
export MCP_AUTH_TOKEN="your-token-here"

# Execute a command on remote machine
terminator mcp exec --url "http://<IP>:8080/mcp" run_command '{
  "run": "node -e \"console.log(JSON.stringify({cwd: process.cwd()}))\"",
  "timeout_seconds": 10
}'

Common Commands

1. Run Shell Command

terminator mcp exec --url "http://<IP>:8080/mcp" run_command '{
  "run": "tasklist /FI \"IMAGENAME eq chrome.exe\" /FO TABLE",
  "timeout_seconds": 10
}'

2. Run JavaScript

terminator mcp exec --url "http://<IP>:8080/mcp" run_command '{
  "run": "console.log(JSON.stringify({user: process.env.USERNAME, cwd: process.cwd()}))",
  "engine": "javascript",
  "timeout_seconds": 10
}'

3. Check File Exists

terminator mcp exec --url "http://<IP>:8080/mcp" run_command '{
  "run": "dir \"C:\\Users\\vmuser\\Desktop\"",
  "timeout_seconds": 5
}'

4. Get Desktop UI Tree

terminator mcp exec --url "http://<IP>:8080/mcp" get_desktop_elements '{
  "depth": 1
}'

5. Get Process-Specific UI Tree

# Chrome UI tree
terminator mcp exec --url "http://<IP>:8080/mcp" get_desktop_elements '{
  "selector": "process:chrome",
  "depth": 3
}'

6. Take Screenshot

terminator mcp exec --url "http://<IP>:8080/mcp" take_screenshot '{}'

7. Run PowerShell Script

terminator mcp exec --url "http://<IP>:8080/mcp" run_command '{
  "run": "powershell -Command \"Get-Process | Select-Object ProcessName, Id | ConvertTo-Json\"",
  "timeout_seconds": 15
}'

MCP Tool Reference

ToolDescriptionArgs
run_commandExecute shell/JS/Python{"run": "...", "engine": "javascript", "timeout_seconds": N}
get_desktop_elementsGet UI tree{"selector": "...", "depth": N}
take_screenshotCapture screen{"selector": "..."} (optional)
click_elementClick UI element{"selector": "process:App >> role:Button && name:OK"}
type_textType into element{"selector": "...", "text": "..."}
press_keyPress keyboard key{"key": "enter"} or {"key": "ctrl+a"}
wait_for_elementWait for element{"selector": "...", "timeout_seconds": N}
open_applicationLaunch app{"path": "C:\\path\\to\\app.exe"}

run_command Args

ArgDescription
runCommand/code to execute (required unless script_file used)
script_filePath to script file to execute
engineScript engine: javascript, typescript, python, node, bun
shellShell to use: bash, sh, cmd, powershell, pwsh
envEnvironment variables as JSON object
timeout_secondsExecution timeout

Selector Syntax

Operators:

  • >> - Chain/descendant (scope into process, then find element)
  • && - AND (element must match ALL conditions)
  • || - OR (element matches ANY condition)
  • ! - NOT (element must NOT match)
  • () - Grouping

Examples:

# Scope to process, then find button with specific name
process:chrome >> role:Button && name:Submit

# Window matching both role AND name
role:Window && name:Settings

# Multiple conditions
process:notepad >> role:Edit && visible:true

# OR conditions
role:Button && (name:OK || name:Cancel)

# Complex chain
process:explorer >> role:Window && name:Downloads >> role:ListItem

Selector Types:

  • process:NAME - Target specific application (use as chain start)
  • role:TYPE - UI Automation role (Button, Edit, Window, Text, ListItem)
  • name:TEXT - Element name (supports wildcards: name:*partial*)
  • nativeid:ID - Native automation ID
  • classname:CLASS - Window class name
  • visible:true/false - Filter by visibility
  • nth:N - Select nth match (0-indexed)

CRITICAL: For actions (click, type), always scope with process: first!


Troubleshooting

"401 Unauthorized"

  • Set MCP_AUTH_TOKEN environment variable
  • Verify token matches server configuration

"Element not found"

  • Element not visible on screen
  • Wrong process name (case-sensitive!)
  • Take screenshot to see current state

"Connection refused"

  • MCP server not running on VM
  • Check health: curl http://<IP>:8080/health

Example Session

# Set up
export MCP_AUTH_TOKEN="your-token"
export MCP_URL="http://<IP>:8080/mcp"

# 1. Check what's running
terminator mcp exec --url "$MCP_URL" run_command '{"run": "tasklist", "timeout_seconds": 5}'

# 2. Get desktop UI tree
terminator mcp exec --url "$MCP_URL" get_desktop_elements '{"depth": 1}'

# 3. Take screenshot
terminator mcp exec --url "$MCP_URL" take_screenshot '{}'

# 4. Launch an app
terminator mcp exec --url "$MCP_URL" open_application '{"path": "notepad.exe"}'

# 5. Wait for window
terminator mcp exec --url "$MCP_URL" wait_for_element '{"selector": "process:notepad >> role:Window", "timeout_seconds": 10}'

# 6. Type text
terminator mcp exec --url "$MCP_URL" type_text '{"selector": "process:notepad >> role:Edit", "text": "Hello from remote!"}'

# 7. Click a button
terminator mcp exec --url "$MCP_URL" click_element '{"selector": "process:notepad >> role:MenuItem && name:File"}'

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

641968

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

590705

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

339397

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

318395

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

450339

fastapi-templates

wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

304231

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.