Script Runner MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Script Runner MCP Serverlist available scripts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Script Runner MCP Server
This MCP server runs local Bash, PowerShell, or Python scripts and returns the output. It also allows the LLM to explore the script's help if there is help text supported (pro-tip, document your scripts and create a print_help function that future you can call with a help flag when future you forgets what the script does exactly or what the arguments are), or to simply provide the full text of the script for the LLM context.
Features
Execute Local Scripts: Run scripts with
.py,.sh, and.ps1extensions.Dynamic Script Discovery: List all available scripts within a designated directory.
Inspect Scripts: Read the full source code of any script.
Get Help: Retrieve help text from scripts that support a
-hflag.
Related MCP server: Skill Management MCP Server
Installation
First, if you haven't already, install
uv:
curl -LsSf https://astral.sh/uv/install.sh | sh
2. Clone the Github repo:
git clone http://github.com/ashrobertsdragon/script-runner-mcp.git
Configuration
To use this server, you need to add its configuration to your MCP client (e.g., Claude Desktop, Cursor). The client will manage starting the server process.
Here is an example configuration for claude_desktop_config.json:
{
"mcpServers": {
"ScriptRunner": {
"command": "uv", # if uv is not in your PATH, you will need to provide the full path the the uv executabe
"args": [
"run",
"--directory",
"<repo cloned directory> # The full path to the cloned repo
"script-runner-mcp",
"-d",
"/path/to/your/scripts"
]
}
}
}Alternatively, you can have uv pull the MCP server directly from GitHub and avoid cloning:
{
"mcpServers": {
"ScriptRunner": {
"command": "uvx", # if uv is not in your PATH, you will need to provide the full path the the uvx executabe
"args": [
"--from",
"http://github.com/ashrobertsdragon/script-runner-mcp",
"-d",
"/path/to/your/scripts"
]
}
}
}If you do not provide a path to a scripts directory with the -d argument, the server will use the current working directory as a default.
Available Tools
The server exposes the following tools:
list_scripts(directory: str | None = None) -> str: Lists available scripts in the configured or passed in directory.read_script(script_name: str, directory: str | None = None) -> str: Reads the content of a specified script.call_help(script_name: str, directory: str | None = None) -> str: Calls a script with the-hflag to get its help text.call_script(script_name: str, args: list[str] | None = None, directory: str | None = None) -> str: Executes a script with the provided arguments.verify_script(script_name: str, directory: str | None = None) -> str: Verifies that a script exists in the given or configured directory.
License
This project is licensed under the MIT License.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables Claude to create, edit, run, and manage reusable skills stored locally, including executing scripts with automatic dependency management and environment variables. Works across all MCP-compatible clients like Cursor, Claude Desktop, and claude.ai.Last updated529MIT
- Alicense-qualityDmaintenanceTurns Claude-style skills (SKILL.md files with resources) into callable MCP tools for any agent. Discovers skills from a directory, exposes their instructions and resources, and can execute bundled helper scripts.Last updated398MIT
- Alicense-qualityDmaintenanceGives a Microsoft Copilot Studio agent Claude-Code-style tools to read, edit, search, and run shell commands against your local filesystem.Last updated17MIT
Related MCP Connectors
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent
Execute PowerShell commands securely with controlled timeouts and input validation. Retrieve syste…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ashrobertsdragon/script-runner-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server