← Back to guides
2026-04-29beginner11 min

03 | MCP Setup and First Connectivity Check

Configure cwprep MCP with uvx (without requiring pip install first) and set it up in Claude Code, Cursor, and VS Code.

What You Will Learn

After this article, your AI client can call MCP tools directly instead of returning text-only suggestions.

Prerequisites

  • Python, uv, IDE, and agent basics already completed
  • uv --version works in terminal

Important: This Guide Uses uvx (pip install not required first)

This guide uses uvx to run MCP server:

uvx --from "cwprep[mcp]" cwprep-mcp

So you do not need global pip install before MCP setup. pip install is still useful in some scenarios (offline/fixed environments), but it is optional here.

Step 1: Configure Three MCP Clients

This article uses cwprep as the example. cwtwb is configured in the same pattern (replace command/args).

1) Claude Code (CLI)

claude mcp add cwprep -- uvx --from "cwprep[mcp]" cwprep-mcp

Claude Code MCP setup example

2) Cursor

Edit ~/.cursor/mcp.json (or add in Settings -> MCP):

{
  "mcpServers": {
    "cwprep": {
      "command": "uvx",
      "args": ["--from", "cwprep[mcp]", "cwprep-mcp"]
    }
  }
}

Cursor MCP setup example

3) VS Code

Create .vscode/mcp.json in project root:

{
  "servers": {
    "cwprep": {
      "command": "uvx",
      "args": ["--from", "cwprep[mcp]", "cwprep-mcp"]
    }
  }
}

VS Code MCP setup example

Step 2: Restart Clients and Validate Connectivity

  • Restart Claude Code / Cursor / VS Code
  • Confirm cwprep appears in tool list (you can add cwtwb the same way)

Step 3: Validate with Reusable Prompt Examples

Use official prompt examples directly:

We validate with cwprep first in this article; cwtwb validation flow is very similar.

Optional video supplement:

Validation Checklist

  • A real MCP tool call is triggered
  • Structured output or output file path is returned
  • No more “I can only give suggestions, cannot call local tools”

If You Still Cannot Configure It

Paste your OS info, config file, and error logs to your AI agent and ask it to fix step by step. Best prompt pattern: Here is my config + here is the error + this is my target result, give me the smallest next fix.

Next Step

Continue with 04 | cwprep and cwtwb Basic Cases: Script + MCP.