Loading video player...
MCP V2 - Build your first MCP Server using the new MCPServer class in Model Context Protocol Version 2 (Python SDK). In this video, we dive into the latest updates to the Model Context Protocol (MCP) Python SDK. With the migration from Version 1 to Version 2, the FastMCP class has been renamed to MCPServer. I will walk you through exactly how to adapt to this change and build a fully functional "Terminal Server" from scratch using the latest v2 standards. We will cover how to set up your environment, write the server code using the stdio transport, and integrate your new server directly into Claude Desktop to execute shell commands using AI. Note: As of Feb 2026, MCP v2 is in pre-alpha on the main branch, with a stable release expected in Q1 2026. This guide ensures you are ready for the future of MCP. In this tutorial, you will learn: - The key differences in FastMCP between MCP v1 and v2 (Migration Guide). - Why FastMCP is gone and how to use the MCPServer class. - How to build a Terminal Server to execute local commands safely. - Setting up stdio transport for local communication. - Configuring claude_desktop_config.json to connect your server to Claude. 👉 Code used in this video (01_terminal_server): https://theailanguage.com/onlySubscribers?id=mcp-v2-server-examples_vid_t6x6BkVm_No_list_PL6tW9BrhiPTCDteflzehKS6Cn3a79-iCs&site=github *Please subscribe, allow pop-ups, and log in to access our GitHub repos.* CHAPTERS: 00:00 Introduction 01:47 MCP Version 2 - Breaking Changes to FastMCP 03:26 Overview of the Terminal MCP Server We’ll Build 04:59 Accessing the Online MCP Server Builder with Code 05:27 Directory Structure Walkthrough 07:31 Code Walkthrough 1 - Server Definition in main.py file 10:40 Code Walkthrough 2 - Tools Code in tools.py file 15:35 Code Walkthrough 3 - claude_desktop_config.json file 18:05 Code Walkthrough 4 - .env file 18:31 Export the code to your own Github (optional) 20:02 Clone the repo code 21:08 Setup claude_desktop_config.json file 24:47 Testing the MCP Server with Claude Desktop 26:58 Conclusion Resources Mentioned: Model Context Protocol GitHub Claude Desktop App The AI Language MCP Builder If you found this guide on Model Context Protocol V2 helpful, please drop a like and subscribe for more AI engineering tutorials! #theailanguage #MCPServer, #MCPV2, #MCP #ModelContextProtocol #PythonSDK #ClaudeDesktop #AIglanguage #LLMdev #PythonTutorial #ArtificialIntelligence #DevTutorial #Anthropic #SoftwareEngineering #Coding #Version2 #2026Tech