AI Hints
Home›MCP Tutorial›Your First Server
MCP · Lesson 7 of 120

Installing the SDK

Mcp for Python.

⏱ 2 min read▶ Video at 5:28🎓 Free
Watch this lesson in the MCP courseWatch on YouTube ↗Full MCP course

The official Python SDK is a package called m c p. It has everything for building servers and clients. In this course we use version two, which has some new names compared with older tutorials.

Installing the SDK
From the video: Installing the SDK
  • Official SDK
  • Servers and clients
  • Version 2

Checking the install

We install it with pip install m c p. Then we import it, and print its version. Run it. We have version two point three.

check.pypython
# pip install mcp
from importlib.metadata import version
import mcp

print("mcp version:", version("mcp"))
Output
mcp version: 2.3.0
Also uses sitecustomize.py
import logging, warnings
logging.disable(logging.INFO)
warnings.filterwarnings("ignore")

Names in version 2

Older tutorials use Fast MCP. In version two, it's called MCP server. Clients use one simple class, called Client. Field names use snake case, like input schema.

keyvalue
Server classMCPServer
Old nameFastMCP
Client classClient
Fieldssnake_case

Summary

Install the m c p package. In version two, servers use MCP server, and clients use Client. Next, your first server.

Key takeaways
  • pip install mcp
  • MCPServer
  • Client
Next up: Your First Server — one tool