CLI Executor
About
Provides a tool for executing local CLI commands asynchronously using FastMCP and asyncio, handling command arguments securely and offering error handling for failed commands.
Details
- Author
- 0xbruno
- Repository
- 0xBruno/MCPExec
- GitHub stars
- 1
- Downloads
- 168
- Categories
- Design, Developer Tools, AI, Infrastructure, Frontend, Other
Jump to
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
CLI ExecutorCommand (node, npx, python, etc.)/Users/bruno/.local/bin/uvArguments-
Argument 1
--directory -
Argument 2
/Users/bruno/example/path -
Argument 3
run -
Argument 4
app.py
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Set up a Python
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"cli executor": {
"cwd": "optional",
"env": {},
"args": [
"--directory",
"/Users/bruno/example/path",
"run",
"app.py"
],
"shell": false,
"command": "/Users/bruno/.local/bin/uv"
}
}
}
Linux
{
"cwd": "optional",
"env": [],
"args": [
"--directory",
"/Users/bruno/example/path",
"run",
"app.py"
],
"shell": false,
"command": "/Users/bruno/.local/bin/uv"
}
Macos
{
"cwd": "optional",
"env": [],
"args": [
"--directory",
"/Users/bruno/example/path",
"run",
"app.py"
],
"shell": false,
"command": "/Users/bruno/.local/bin/uv"
}
Windows
{
"cwd": "optional",
"env": [],
"args": [
"--directory",
"/Users/bruno/example/path",
"run",
"app.py"
],
"shell": false,
"command": "/Users/bruno/.local/bin/uv"
}
MCPExec
MCP Server to exec local cli commandsSet up your environment
First, let’s install uv and set up our Python project and environment:
curl -LsSf https://astral.sh/uv/install.sh | sh
Make sure to restart your terminal afterwards to ensure that the uv command gets picked up.
Now, let’s create and set up our project:
Create a new directory for our project
uv init exec cd execCreate virtual environment and activate it
uv venv source .venv/bin/activateInstall dependencies
uv add "mcp[cli]"Add MCP Server
For Claude for Desktop:{
"mcpServers": {
"exec-cli": {
"command": "/Users/bruno/.local/bin/uv",
"args": [
"--directory",
"/Users/bruno/example/path",
"run",
"app.py"
]
}
}
}
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




