Script Runner MCP Server
Enables execution, listing, reading, and help retrieval of local Bash, PowerShell, and Python scripts from a specified directory.
README
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.
Installation
- First, if you haven't already, install
uv:curl -LsSf https://astral.sh/uv/install.sh | sh - 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。