Learn Model Context Protocol with Python: Build agentic systems in Python with the new standard for AI capabilities
暫譯: 使用 Python 學習模型上下文協議:以 Python 建立具代理性的系統,掌握 AI 能力的新標準
Noring, Christoffer, Wahlin, Dan
- 出版商: Packt Publishing
- 出版日期: 2025-10-27
- 售價: $1,660
- 貴賓價: 9.5 折 $1,577
- 語言: 英文
- 頁數: 304
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1806103230
- ISBN-13: 9781806103232
-
相關分類:
AI Coding
海外代購書籍(需單獨結帳)
相關主題
商品描述
Get to grips with the Model Context Protocol (MCP) and learn how to build scalable, intelligent web applications with AI-ready architecture in Python
Key Features:
- The only resource you'll need to build, test, and deploy MCP servers and clients
- Take a modern approach toward building, testing, and securing distributed agentic AI apps
- Get clear, professional guidance on developing for both LLM and non-LLM clients
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description:
Learn Model Context Protocol with Python introduces developers, architects, and AI practitioners to the transformative capabilities of Model Context Protocol (MCP), an emerging protocol designed to standardize, distribute, and scale AI-driven applications. Through the lens of a practical project, the book tackles the modern challenges of resource management, client-server interaction, and deployment at scale.
Drawing from Christoffer's expertise as a published author and tutor at the University of Oxford, you'll explore the components of MCP and how they streamline server and client development. Next, you'll progress from building robust backends and integrating LLMs into intelligent clients to interacting with servers via tools such as Claude for desktop and Visual Studio Code agents. The chapters help you understand how to describe the capabilities of hosts, clients, and servers, facilitating better interoperability, easier integration, and clearer communication between different components.
The book also covers security best practices and building for the cloud, ensuring that you're ready to deploy your MCP-based apps. Each chapter enables you to develop hands-on skills for building and operating MCP-based agentic apps. The Python primer at the end rounds out the practical toolkit, making this book essential for any team building AI-native applications today.
What You Will Learn:
- Understand the MCP protocol and its core components
- Build MCP servers that expose tools and resources to a variety of clients
- Test and debug servers using the interactive inspector tools
- Consume servers using Claude Desktop and Visual Studio Code Agents
- Secure MCP apps, as well as managing and mitigating common threats
- Build and deploy MCP apps using cloud-based strategies
Who this book is for:
This book is ideal for web developers, software architects, AI practitioners, and tech leads looking to build scalable AI-integrated applications using MCP. Product managers overseeing AI initiatives will also find this book valuable. A basic understanding of web development and AI concepts is needed to make the most of this book.
Table of Contents
- Introduction to the Model Context Protocol
- Explaining the Model Context Protocol
- Building and Testing Servers
- Building SSE Servers
- Streamable HTTP
- Advanced Servers
- Building Clients
- Consuming Servers
- Sampling
- Elicitation
- Securing Your Application
- Bringing MCP Apps to Production
- Appendix
商品描述(中文翻譯)
掌握模型上下文協議 (MCP),學習如何使用 Python 建立可擴展的智能網頁應用程式,並具備 AI 準備架構
主要特點:
- 建立、測試和部署 MCP 伺服器和客戶端所需的唯一資源
- 採用現代方法來建立、測試和保護分散式智能 AI 應用程式
- 獲得針對 LLM 和非 LLM 客戶端開發的清晰專業指導
- 購買印刷版或 Kindle 書籍可獲得免費 PDF 電子書
書籍描述:
《使用 Python 學習模型上下文協議》向開發人員、架構師和 AI 從業者介紹模型上下文協議 (MCP) 的變革性能力,這是一種新興的協議,旨在標準化、分發和擴展 AI 驅動的應用程式。通過實際專案的視角,本書解決了資源管理、客戶端-伺服器互動和大規模部署的現代挑戰。
借助 Christoffer 作為牛津大學出版作者和導師的專業知識,您將探索 MCP 的組件以及它們如何簡化伺服器和客戶端的開發。接下來,您將從建立穩健的後端和將 LLM 整合到智能客戶端開始,然後使用 Claude 等工具與伺服器互動,適用於桌面和 Visual Studio Code 代理。各章節幫助您理解如何描述主機、客戶端和伺服器的能力,促進不同組件之間更好的互操作性、更容易的整合和更清晰的溝通。
本書還涵蓋了安全最佳實踐和雲端建設,確保您準備好部署基於 MCP 的應用程式。每一章都使您能夠發展實作技能,以建立和運行基於 MCP 的智能應用程式。最後的 Python 入門為實用工具包畫上句號,使本書成為當今任何團隊建立 AI 原生應用程式的必備資源。
您將學到的內容:
- 理解 MCP 協議及其核心組件
- 建立 MCP 伺服器,向各種客戶端公開工具和資源
- 使用互動檢查工具測試和調試伺服器
- 使用 Claude Desktop 和 Visual Studio Code 代理消費伺服器
- 確保 MCP 應用程式的安全,並管理和減輕常見威脅
- 使用基於雲的策略建立和部署 MCP 應用程式
本書適合誰:
本書非常適合希望使用 MCP 建立可擴展 AI 整合應用程式的網頁開發人員、軟體架構師、AI 從業者和技術負責人。負責 AI 項目的產品經理也會發現本書的價值。需要對網頁開發和 AI 概念有基本了解,以充分利用本書。
目錄
- 模型上下文協議介紹
- 解釋模型上下文協議
- 建立和測試伺服器
- 建立 SSE 伺服器
- 可串流的 HTTP
- 進階伺服器
- 建立客戶端
- 消費伺服器
- 取樣
- 引導
- 確保您的應用程式安全
- 將 MCP 應用程式投入生產
- 附錄