uvx or pipx runs whatever version is latest

Medium unpinned-uvx

Without a pinned version, uvx and pipx run the newest release from PyPI at each start, so a malicious or broken release runs with no review.

Why it matters

uvx and pipx run install the package in a temporary environment and run it. Without a version, they take the newest release on PyPI, so every start can run different code.

How to fix it

Pin the version: "mcp-server-fetch==2025.4.7" with uvx, or "pipx run --spec package==1.2.3".

Pin the version: uvx mcp-server-fetch==2025.4.7, uvx --from "package==1.2.3" command, or pipx run --spec package==1.2.3 command.

Before

"command": "uvx", "args": ["mcp-server-fetch"]

After

"command": "uvx", "args": ["mcp-server-fetch==2025.4.7"]

Applies to every MCP client that reads a JSON config: Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and others.

Other checks

Published ; awaiting review.