Install Python & uv
Get a clean Python project with the uv package manager.
Install Python & uv is a free MCP Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the MCP Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
A Clean Start
Before you build any MCP server, you need a tidy Python project. A clean start means fewer surprises and fewer broken installs later. Let's set the foundation. 🧱
Why a Version Matters
The MCP Python SDK needs a modern interpreter, so you want Python 3.10 or newer. Older versions miss the typing features the SDK relies on.
Meet uv
Instead of juggling pip and virtualenv, you'll use uv, a single fast tool that manages Python, packages, and environments for you in one place.
One Tool, Many Jobs
uv replaces pip, pip-tools, pyenv, and virtualenv at once. Learning one command set keeps your MCP workflow simple and consistent across every project. 🚀
Install uv
On macOS or Linux you can install uv with a single curl command. It drops a tiny binary on your path, ready to use immediately.
curl -LsSf https://astral.sh/uv/install.sh | shConfirm It Works
After installing, run a quick version check. If you see a version number, uv is on your path and ready to drive the rest of your setup.
uv --versionLet uv Manage Python
You don't even need Python installed first. With uv python install you can fetch any version uv manages, so your project is never tied to the system Python.
uv python install 3.12Start a New Project
Spin up a fresh project folder with uv init. It scaffolds the files you need so you can start adding MCP code right away.
uv init mcp-server-demoWhat uv init Creates
That command writes a pyproject.toml to declare your project and its dependencies. This file becomes the single source of truth for what your server needs.
The Hidden .venv
When you add a package, uv quietly creates a .venv folder, an isolated environment just for this project. Your global Python stays untouched and clean.
Run Without Activating
You never have to activate the venv by hand. uv run executes commands inside your project's environment automatically, so the right Python is always used.
uv run python --versionQuick Check
You're setting up a fresh MCP project from zero.
You Have a Workspace
You installed uv, let it manage Python, and scaffolded a clean project. With pyproject.toml and an isolated venv ready, you can now add the MCP SDK. ✅
Frequently asked questions
Is the “Install Python & uv” lesson free?
Yes — the full text of “Install Python & uv” is free to read here on the web, and the MCP Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the MCP Academy course, upgrade to CoddyKit PRO.
What will I learn in “Install Python & uv”?
Get a clean Python project with the uv package manager. You practise MCP Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start MCP Academy?
No prior experience is required. MCP Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Install Python & uv” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this MCP Academy lesson?
Yes. Every MCP Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Install Python & uv
- Add the MCP Python SDK
- Meet the mcp CLI
- Project Layout for a Server