DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to try MCP commands without setting up a project with Python SDK

Use uv to run the mcp CLI one-off, so you can test a server file without adding the SDK to a project.

Short answer: Install uv if you do not have it; then use uv run --with "mcp[cli]" mcp ... to run any mcp command without a project; open a server in the Inspector with mcp dev, or run it with mcp run. All steps.

Who it is forSomeone reviewing a colleague's server.py who does not want to create a Python project for it.

The problemInstalling the SDK into a project just to poke at one server file adds clutter.

The outcomeThe mcp dev, mcp run and mcp install commands available on demand through uv.

What you need first

  • Python 3.11 or later
  • uv or pip
  • The cli extra for the mcp command-line tool
  • Optional: the MCP Inspector, which mcp dev opens

Steps

  1. Install uv if you do not have it
  2. Use uv run --with "mcp[cli]" mcp ... to run any mcp command without a project
  3. Open a server in the Inspector with mcp dev, or run it with mcp run
  4. Use mcp install to install a server for a host, per the README's list of commands
  5. Install plain mcp instead of the cli extra in projects that do not need the command-line tool

Prompt for your agent

Without creating a project, use the modelcontextprotocol/python-sdk CLI through `uv run --with "mcp[cli]" mcp ...` to open <server file> in the MCP Inspector and list what it exposes.

Caveat. The README lists mcp install but does not say which hosts it supports, so check the docs before relying on it.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for modelcontextprotocol/python-sdk and "Try MCP commands without setting up a project"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer