メインコンテンツへスキップ
ホームPython

無料 コース

Introduction to Model Context Protocol (MCP)

中級スキルレベル
更新済み 2026/03
Integrate AI/LLM applications with APIs, databases, and filesystems easier than ever before with the Model Context Protocol (MCP).
無料コースを始める

無料で含まれています

PythonArtificial Intelligence
3 時間
11 ビデオ
34 演習
2,850 XP
2,016
修了証明書

無料アカウントを作成する

Googleで続行その他のオプションを表示

または


続行すると、弊社の利用規約プライバシーポリシーに同意し、データが米国に保存されることに同意したことになります。

数千社の学習者に愛されています

Group

チームをトレーニングしますか?

法人向けに試す

コースの説明

Why Learn the Model Context Protocol?

Large language models can't access real-time data or take actions on their own, and wiring each tool or API with custom code doesn't scale. The Model Context Protocol (MCP) solves this with a single, standardized way for AI applications to connect to external tools, data, and services—often called "the USB-C port for AI." In this course, you'll build MCP servers and clients from scratch in Python and wire them to an LLM.

How Do I Build and Connect My First MCP Server?

You'll start by learning the MCP architecture—host, client, and server—and the three primitives every server exposes: tools, resources, and prompts. Then you'll build a currency converter server using FastMCP, add docstrings and type hints so an LLM can discover your tools, and write an async Python client that lists and calls those tools over stdio transport.

How Do I Give an LLM Real-Time Tools and Context?

Tools alone aren't enough—models also need data and behavioral instructions. You'll add resources for read-only context and prompts to guide the model when inputs are vague, then wire all three primitives into an OpenAI LLM using the five-step tool-calling workflow so it can answer confidently or ask for clarification when it should.

How Do I Take MCP Servers to Production?

Real-world servers need more than happy-path code. You'll swap file-based resources for database-backed queries, add request timeouts, structured error handling, and secure API authentication that keeps keys server-side. Finally, you'll connect to a third-party MCP server and see that the same client code works with any server that speaks the protocol.

前提条件

Introduction to APIs in PythonWriting Functions in Python
1

The Building Blocks of MCP

Discover how MCP can make integrating AI applications with surrounding systems easier than ever before! Learn about how MCP works, how to define your own MCP tools, and build the bridge between client and server.
チャプターを開始
2

MCP-Enabled LLM Applications

Add resources and prompts to MCP servers to expose LLMs to read-only context and key instructions to alter its behavior. Get hands-on with LLMs and connect them to your MCP server so it can call tools and retrieve context.
3

Preparing MCP Servers for Production

Find out what it takes to get MCP servers into production by taking a deep-dive into databases and APIs in MCP servers, and the additional considerations that they bring. Finally, integrate third-party MCPs securely and reliably, so you don't have to recreate the wheel for your favorite integrations.
Introduction to Model Context Protocol (MCP)
コース完了

修了証明書を取得する

この資格をLinkedInプロフィール、履歴書、またはCVに追加する
SNSで共有し、評価面談でも活用しましょう
今すぐ登録

19百万人の学習者に加わって、今日からIntroduction to Model Context Protocol (MCP)を始めましょう!

無料アカウントを作成する

Googleで続行その他のオプションを表示

または


続行すると、弊社の利用規約プライバシーポリシーに同意し、データが米国に保存されることに同意したことになります。

DataCamp for Mobileでデータスキルを磨きましょう

モバイル コースと毎日の 5 分間のコーディング チャレンジで、外出先でも進歩できます。