MCP Dev Setup: Anaconda, uv, and Claude

Set up a complete MCP development environment on Windows — Anaconda, Ollama, Node.js, Claude Desktop, and the uv package manager — with Linux/macOS notes.

Jun 17, 202619 min readFollow

Topics You Will Master

Installing Anaconda, Ollama, Node.js, and Claude Desktop on Windows (with Linux/macOS equivalents)
Why uv replaces pip + venv and how to run an MCP project with it
Creating a reproducible MCP project with pyproject.toml and a lockfile
Wiring API keys through a .env file for Claude, OpenAI, and LangSmith

The Model Context Protocol (MCP) lets AI models talk to external tools, files, and APIs through a single open standard. Before building MCP servers and clients, you need a dependable local toolchain: a Python distribution, a local LLM runtime, a JavaScript runtime for the many npm-based MCP servers, the Claude Desktop host, and a fast package manager.

This guide installs Anaconda, Ollama, Node.js, Claude Desktop, and uv — defaulting to Windows commands with clearly labeled Linux/macOS equivalents. It finishes with a reproducible uv project that loads API keys from a .env file.

The MCP toolchain: Anaconda, Ollama, Node.js, Claude Desktop, and uv

Note

If you have already configured Ollama and pulled local models, you can skim the Ollama section here and follow the deeper Ollama Setup Guide instead.

95% OFF

MCP Mastery: Build AI Apps with Claude, LangChain and Ollama

Build MCP servers and clients with Python, Streamlit, ChromaDB, LangChain, LangGraph agents, and Ollama — from your first tool to cloud deployment.

Enroll Now — 95% OFF →

Installing Anaconda

Anaconda is a Python/R data-science distribution with built-in package and environment management. It gives you conda, a clean way to isolate the Python version this course uses (3.11+).

Download the installer for your operating system from the official Anaconda download page.

Tip

Search "Anaconda Distribution download" to reach the official page, or visit anaconda.com/download.

System requirements: Windows 10+ (64-bit), macOS 10.13+, or 64-bit Linux, each needing about 5 GB of free space.

Windows installation

  1. Run the downloaded .exe file (right-click → Run as administrator if prompted).
  2. Follow the installation wizard.
  3. When offered, check Add Anaconda to PATH so conda works from any terminal.
  4. Complete the installation (10–15 minutes).

On macOS: open the downloaded .pkg file and follow the installer prompts.

On Linux: run the installer script and accept the license terms.

BASH
bash ~/Downloads/Anaconda3-2024.02-1-Linux-x86_64.sh

Verify and create an environment

BASH
conda --version
conda list

Create and activate a dedicated environment for this course:

BASH
conda create -n ml python=3.11
conda activate ml

Important

Keep this ml environment active in every terminal where you install course packages or run MCP servers. Mixing environments is the most common cause of "module not found" errors later.


Installing Ollama

Ollama runs large language models locally on your machine, so you can build private MCP agents without sending data to a cloud API. This course uses local models such as qwen3, gpt-oss, and the nomic-embed-text embedding model.

Windows installation

Download the installer from the official Ollama site and run the .exe. On Windows and macOS, Ollama runs as a background service automatically after install.

Tip

The official site is ollama.com, and the full model catalog is at ollama.com/library.

On macOS: download from ollama.com, or use Homebrew:

BASH
brew install ollama

On Linux:

BASH
curl -fsSL https://ollama.com/install.sh | sh

Pull and run models

BASH
ollama pull llama3.2:3b
ollama pull qwen3
ollama pull nomic-embed-text

Run a model interactively and list what you have installed:

BASH
ollama run llama3.2:3b
ollama list

Verify the local API is responding (Ollama serves on port 11434):

BASH
ollama --version
curl http://localhost:11434/api/generate -d "{\"model\": \"llama3.2:3b\", \"prompt\": \"Why is the sky blue?\"}"

On Linux/macOS: the same curl works with single quotes around the JSON body:

BASH
curl http://localhost:11434/api/generate -d '{"model": "llama3.2:3b", "prompt": "Why is the sky blue?"}'

Note

Models need disk space and RAM — budget roughly 4 GB+ per model and 16 GB system RAM for comfortable use. A GPU is optional but speeds up generation significantly.


Installing Node.js

Many MCP servers ship as npm packages and run with npx (for example the filesystem, Playwright, and Airbnb servers used later in this course). Node.js provides that JavaScript runtime.

Tip

Install the LTS (Long Term Support) version for stability. The official site is nodejs.org.

Windows installation

Download the LTS installer from nodejs.org and run it, or use a Windows package manager:

POWERSHELL
winget install OpenJS.NodeJS

On macOS:

BASH
brew install node

On Linux (Ubuntu/Debian):

BASH
sudo apt update
sudo apt install nodejs npm

Verify

BASH
node --version
npm --version
node -e "console.log('Hello Node.js!')"

Installing Claude Desktop

Claude Desktop is Anthropic's desktop app, and it doubles as an MCP host — it can connect to multiple MCP servers at once and call their tools directly inside a conversation. You will use it heavily in the data-analysis and Claude Desktop sections of this course.

Download it from the official Claude download page.

Tip

The official download is at claude.ai/download.

Windows installation

  1. Download Claude-Setup.exe.
  2. Run the installer and follow the wizard.
  3. Launch Claude from the Start Menu, sign in with your Anthropic account, and accept the terms.

On macOS: open the downloaded .dmg, drag Claude into your Applications folder, and launch it.

Warning

Claude Desktop is officially available for Windows and macOS. If you are on Linux, you can still complete the LangChain/LangGraph and deployment sections, which do not depend on Claude Desktop.


uv vs pip: a faster package manager

The pip-plus-venv workflow versus the streamlined uv init and uv sync workflow

uv is a modern, ultra-fast Python package installer and project manager written in Rust. It is a drop-in replacement for pip and pip-tools and is the tool this course uses to manage dependencies.

Why uv over pip:

  • 10–100× faster installs and dependency resolution.
  • Built-in virtual environment management — no separate venv step.
  • Lockfiles by default (uv.lock) for reproducible builds.
  • Smarter dependency resolution for complex conflicts.
  • Consistent behavior across Windows, macOS, and Linux.

Installing uv on Windows

POWERSHELL
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

On Linux/macOS:

BASH
curl -LsSf https://astral.sh/uv/install.sh | sh

You can also install it with pip into your active environment:

BASH
pip install uv

Tip

The official uv documentation is at docs.astral.sh/uv.

pip workflow vs uv workflow

The old pip workflow requires you to create and activate a virtual environment by hand:

BASH
python -m venv myenv
myenv\Scripts\activate
pip install requests numpy
pip freeze > requirements.txt

On Linux/macOS: activate with source myenv/bin/activate instead of myenv\Scripts\activate.

The uv workflow creates the project, environment, and lockfile for you:

BASH
uv init myproject
cd myproject
uv add requests numpy
uv sync

uv add records the dependency in pyproject.toml and updates uv.lock automatically. uv sync installs exactly what the lockfile pins.


Creating the course project with uv

A uv project where pyproject.toml, the lockfile, and .env drive a reproducible run

Initialize a project for the course and add the libraries you will need across every section:

BASH
uv init mcp-mastery-claude-and-langchain
cd mcp-mastery-claude-and-langchain

This scaffolds a project:

PLAINTEXT
mcp-mastery-claude-and-langchain/
├── pyproject.toml    # Project configuration
├── uv.lock           # Lockfile (auto-generated)
├── main.py
└── README.md

Add the full dependency set used throughout the course:

BASH
uv add fastmcp "mcp[cli]" mcp-use langchain langchain-community langchain-ollama langchain-openai langchain-chroma langchain-mcp-adapters langgraph chromadb faiss-cpu streamlit fastapi pandas numpy scipy matplotlib pypdf2 requests python-dotenv

Note

uv add pins minimum versions into pyproject.toml (for example fastmcp>=2.12.3, langchain>=0.3.27, langgraph>=0.6.7). Commit both pyproject.toml and uv.lock so collaborators reproduce your exact environment with a single uv sync.

Run a Python script inside the project environment without manually activating anything:

BASH
uv run python main.py

Loading API keys from a .env file

Some sections use cloud services (the Claude API, OpenAI embeddings for the deployed server, and optional LangSmith tracing). Store secrets in a .env file at the project root and load them with python-dotenv. Never hard-code keys in source.

Create a .env file:

BASH
OPENAI_API_KEY=your-openai-key-here
CLAUDE_API_KEY=your-anthropic-key-here
LANGSMITH_API_KEY=your-langsmith-key-here

Important

Add .env to your .gitignore so secrets are never committed. Replace each your-...-key-here value with your real key from the provider's dashboard.

A minimal main.py that loads and verifies the keys:

PYTHON
import os
from dotenv import load_dotenv
load_dotenv()

def main():
    print("OPENAI_API_KEY:", os.getenv("OPENAI_API_KEY"))
    print("CLAUDE_API_KEY:", os.getenv("CLAUDE_API_KEY"))
    print("LANGSMITH_API_KEY:", os.getenv("LANGSMITH_API_KEY"))
    print("Hello from mcp-mastery-claude-and-langchain!")

if __name__ == "__main__":
    main()

Run it:

BASH
uv run python main.py
OUTPUT
OPENAI_API_KEY: your-openai-key-here
CLAUDE_API_KEY: your-anthropic-key-here
LANGSMITH_API_KEY: your-langsmith-key-here
Hello from mcp-mastery-claude-and-langchain!

Tip

load_dotenv() reads .env from the current working directory by default. If you run scripts from a subfolder, pass an explicit path, e.g. load_dotenv("../.env").


Setup checklist

You now have the full toolchain installed and verified:

  • Anacondaconda --version works; an ml environment is active.
  • Ollamaollama list shows qwen3 / nomic-embed-text; the API answers on port 11434.
  • Node.jsnode --version and npm --version print versions.
  • Claude Desktop — installed and signed in (Windows/macOS).
  • uv — a project with pyproject.toml + uv.lock runs uv run python main.py.

With the environment ready, the next step is understanding what MCP actually is and how its client, host, and server pieces fit together in Introduction to Model Context Protocol.

Found this useful? Keep building with me.

New tutorials every week on YouTube — or go deeper with a full structured course.

Find this tutorial useful?

Subscribe to our YouTube channels for more practical production walk-throughs.

Discussion & Comments