MCP server for executing command line scripts

MCP server for executing command line scripts

script-mcp•bynguyenvanduocit

An MCP server that safely runs command line scripts with configurable interpreters, timeout protection, and output and error capture.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Executes command line scripts safely through MCP.
  • •Supports multiple interpreters and configurable working directories for script execution.
  • •Captures output and errors and enforces timeout protection.
  • •Works across Linux, macOS, and Windows.

BEST FOR

  • •Running shell or interpreter-based scripts programmatically from an MCP client.
  • •Executing scripts in a specified working directory with captured stdout and stderr.

ABOUT SCRIPT-MCP

MCP server for executing command line scripts is cataloged as an MCP server attributed to nguyenvanduocit. An MCP server that safely runs command line scripts with configurable interpreters, timeout protection, and output and error capture. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for executing command line scripts are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What interpreters can be used to execute scripts?

The interpreter path is configurable, defaulting to /bin/sh, allowing other interpreters such as Python to be specified.

Do scripts have a time limit?

Yes, scripts time out after 30 seconds.

Upstream README

View this exact version on GitHub

README.md · 9a67cba57ca7 · Fetched 2026-11-13 13:44:14 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Script Tool

A tool for executing command line scripts through MCP.

Features

  • Execute command line scripts safely
  • Support for different interpreters
  • Timeout protection
  • Output and error capture
  • Cross-platform support (Linux, macOS, Windows)

Installation

There are several ways to install the Script Tool:

Option 1: Download from GitHub Releases

  1. Visit the GitHub Releases page
  2. Download the binary for your platform:
    • script-mcp_linux_amd64` for Linux
    • script-mcp_darwin_amd64 for macOS
    • script-mcp_windows_amd64.exe for Windows
  3. Make the binary executable (Linux/macOS):
    chmod +x script-mcp_*
    
  4. Move it to your PATH (Linux/macOS):
    sudo mv script-mcp_* /usr/local/bin/script-mcp@latest
    

Option 2: Go install

go install github.com/nguyenvanduocit/script-mcp

Config

Claude

{
  "mcpServers": {
    "script": {
      "command": "/path-to/script-mcp"
    }
  }
}

CLI Usage

In addition to the MCP server, script-mcp ships a standalone CLI binary (script-cli) for direct terminal use — no MCP client needed.

Installation

just install-cli
# or
go install github.com/nguyenvanduocit/script-mcp/cmd/script-cli@latest

Quick Start

No credentials required. The CLI executes scripts locally.

script-cli execute --content "echo Hello, World!"

Commands

CommandDescription
execute (or exec, run)Safely execute a script with timeout

Examples

# Run a shell command
script-cli execute --content "ls -la"

# Run with a specific interpreter
script-cli execute --content "print('Hello')" --interpreter /usr/bin/python3

# Run with a working directory
script-cli execute --content "pwd" --working-dir /tmp

# Run a multi-line script
script-cli execute --content "#!/bin/bash
echo 'Starting...'
date
echo 'Done'"

# JSON output (captures stdout/stderr separately)
script-cli exec --content "echo hello" --output json

Flags

FlagDescription
--contentScript content to execute (required)
--interpreterInterpreter path (default: /bin/sh)
--working-dirWorking directory for execution
--envPath to .env file
--outputOutput format: text (default) or json

Note: Scripts time out after 30 seconds.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Installation

Homebrew (macOS/Linux)

brew install nguyenvanduocit/tap/script-mcp

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for executing command line scripts from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/script-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools