A structured Python learning journey for a senior TypeScript/Angular engineer building MCP agents with the Anthropic SDK.
Learn enough Python to confidently build production-quality MCP (Model Context Protocol) servers and Anthropic SDK integrations — not Python in general, but Python for this specific use case.
Core language mechanics for someone who already knows TypeScript well. Focus on what's different, not what's familiar.
- Type hints vs. TypeScript generics
- Dataclasses vs. interfaces
- List/dict comprehensions
async/await(same concept, different runtime model)- Exceptions and context managers
Building and consuming HTTP APIs the Python way.
httpxfor async HTTP requests (thefetch/axiosequivalent)- FastAPI for building typed REST endpoints
- Pydantic models for runtime validation (think Zod + types in one)
Direct SDK usage before abstracting to MCP.
anthropicSDK basics: messages, streaming- Tool use / function calling
- Prompt caching
- Multi-turn conversations
Putting it all together.
- MCP server scaffolding with
mcpSDK - Exposing tools, resources, and prompts
- Connecting to Claude Desktop / Claude Code
- Testing MCP servers locally
# Install dependencies (uses uv)
uv sync
# Copy and fill in your API key
cp .env.example .env
# Run the phase 1 starter
uv run phase1-basics/hello.py- Python 3.11+
- uv for package management
- Anthropic API key (needed from phase 3 onward)