MCPExec
0xBruno/MCPExecUpdated 25 days ago00

Remote#cli#local command#environment setupLicense: NoneLanguage: Python

MCPExec

MCP Server to exec local cli commands

Set 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 exec

Create virtual environment and activate it

uv venv source .venv/bin/activate

Install 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"
            ]
        }
    }
}

Installation

Claude
Claude
Cursor
Cursor
Windsurf
Windsurf
Cline
Cline
Witsy
Witsy
Spin AI
Spin AI
Run locally with the following command:
Terminal
Add the following config to your client:
JSON
{
  "mcpServers": {
    "exec-cli": {
      "env": {},
      "args": [
        "--directory",
        "/Users/bruno/example/path",
        "run",
        "app.py"
      ],
      "command": "uv"
    }
  }
}

MCPLink

Seamless access to top MCP servers powering the future of AI integration.

© 2025 MCPLink. All rights reserved.
discordgithubdiscord