About MCPExec
MCPExec is an MCP server that lets MCP clients run local CLI commands. The README provides setup and Claude for Desktop configuration guidance.
Key features
- 01Execute local CLI commands
- 02Python setup with uv
- 03Claude for Desktop configuration
Use cases
- 01Run CLI commands through an MCP client
- 02Configure MCPExec in Claude for Desktop
MCP support
It exposes local CLI command execution to MCP clients as an MCP server.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCPExec
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"
]
}
}
}
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.