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.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

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.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 9a67cba57ca7 · 采集于 2026-11-13 13:44:14 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

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.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

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