MCP Script Runner
@ktrysmt
About MCP Script Runner
A mcp server that executes shell scripts in a designated folder as tools.
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-script-runner": {
"command": "uv",
"args": [
"--directory",
"/path/to/mcp-script-runner",
"run",
"main.py"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP Script Runner?
MCP Script Runner is an MCP server that executes shell scripts as tools. It integrates with the Model Context Protocol and requires Python 3.13 and the uv package manager. The server is intended for developers who want to run local, trusted scripts through an MCP client.
How to use MCP Script Runner?
Clone the repository, run uv sync to install dependencies, then add a JSON configuration to your MCP client. The configuration specifies the command as uv with arguments pointing to main.py. Optionally, set the COMMAND_DIRECTORY environment variable to change the working directory, or use a .env file for additional environment variables.
Key features of MCP Script Runner
- Runs shell scripts as MCP tools.
- Customizable command directory via
COMMAND_DIRECTORYenv var. - Supports dotenv files for environment variables.
- Simple tool addition by placing scripts in
./commands/. - Automatically adjusts file execution permissions.
Use cases of MCP Script Runner
- Execute local automation scripts from any MCP client.
- Run system maintenance commands through an AI assistant.
- Integrate custom shell scripts into AI‑powered workflows.
- Safely run only scripts you understand in a local environment.
FAQ from MCP Script Runner
What are the prerequisites?
Python 3.13 (e.g., via mise) and uv (e.g., via Homebrew).
How do I add a new tool?
Create a shell script in the ./commands/ directory (e.g., command_name.sh) and reload the MCP server.
What precautions should I take?
Each script must include a shebang, have execute permission (auto‑adjusted), and be intended for local use only. Only place scripts you fully understand.
How do I change the working directory for script execution?
Set the COMMAND_DIRECTORY environment variable in your MCP client’s configuration for the server entry.
More Other MCP servers
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
ghidraMCP
LaurieWiredMCP Server for Ghidra
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Comments