{"id":"02ee52fe-df34-4c70-aabb-080c6e45e9ee","url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee","title":"MCP 是什麼？從聊天機器人到能操作真實工具的 AI，一次讀懂 Model Context Protocol","summary":"MCP 入門與實戰 01｜2026 年 12 月 1 日｜以 2026-07-28 規格為基準 你請 AI 把下週的活動新增到行事曆，它可能先幫你寫好日期、地點和提醒事項。可是，如果 AI 沒有連上行事曆，這些資訊終究只是聊天視窗裡的文字。要讓 AI 真正執行任務，需要一個能讓應用程式安全地找到、理解並使用外部能力的介","content_markdown":"> MCP 入門與實戰 01｜2026 年 12 月 1 日｜以 2026-07-28 規格為基準\n\n你請 AI 把下週的活動新增到行事曆，它可能先幫你寫好日期、地點和提醒事項。可是，如果 AI 沒有連上行事曆，這些資訊終究只是聊天視窗裡的文字。要讓 AI 真正執行任務，需要一個能讓應用程式安全地找到、理解並使用外部能力的介面。MCP 正是為了解決這個問題而設計。\n\n## 01｜MCP 到底是什麼？\n\nModel Context Protocol（模型情境協定，簡稱 MCP）是一套開放協定，用於連接 AI 應用與外部資料、功能和工作流程。它不是新的大型語言模型，也不是一種訓練技術。可以把它想成 AI 應用與工具之間共同遵守的連接規則。\n\n以前每個 AI 應用都可能需要為同一個網站、資料庫或服務重新設計整合方式。MCP 讓工具提供者以一致的方式描述能力，支援協定的應用便可以理解這些能力，減少重複整合的成本。\n\n## 02｜三個重要角色\n\n| 角色 | 工作 |\n|---|---|\n| Host（宿主） | 提供聊天介面、模型、權限控制與任務協調 |\n| Client（用戶端） | 在宿主內負責與 MCP Server 通訊 |\n| Server（伺服器） | 提供資料、工具與可重用的提示模板 |\n\n例如，一個網站的 MCP Server 提供查詢文章、儲存草稿和發布文章的功能。AI 宿主接收到「整理五篇草稿」後，由模型判斷適合的工具，再由 Client 送出結構化請求。網站後端驗證參數和權限、執行實際操作，最後回傳結果。\n\nMCP Server 並不必然包含模型。它可以只是包裝既有網站後端的一個服務。\n\n## 03｜Tools、Resources 和 Prompts\n\nMCP 的三種核心能力應分開理解。\n\n- **Tools**：執行函式，例如搜尋商品、建立草稿、更新訂單。工具可以是唯讀，也可以有副作用。\n- **Resources**：提供可讀取的內容，例如產品規格、文件、文章資料。\n- **Prompts**：提供可重用的提示模板，例如每週營運報告或客服回覆格式。\n\n宿主負責決定如何把這些能力呈現給使用者。不是每個宿主都支援所有功能或擴充套件。\n\n## 04｜一次實際工作的過程\n\n假設使用者要求「幫我把官網上的營業時間改成週一至週五 09:00–18:00」。\n\n1. 宿主取得可用工具資訊，模型找出查詢與更新營業時間的工具。\n2. 先讀取目前設定，理解需要變更的資料。\n3. 依宿主的權限機制取得必要確認，送出結構化參數。\n4. Server 驗證登入身分、資料格式及操作權限，更新資料庫。\n5. 重新查詢設定，確認實際變更成功，再向使用者回報。\n\nMCP 負責標準化通訊，而正確性仍取決於宿主、模型及服務端的設計。能呼叫工具，不等於每次都會選對工具。\n\n## 05｜哪些事情 MCP 不會自動解決？\n\nMCP 不會讓 AI 自動取得電腦完整權限，也不會讓任何模型突然變得可靠。它不取代資料庫、商業邏輯、身份驗證或人工審核。即使某個服務提供發布、寄信或刪除功能，也必須由服務端控制誰能操作。\n\n對企業而言，真正重要的不是「有沒有 MCP」，而是能否把原有工作轉為清楚、有權限限制且可驗證的操作。\n\n## 結語\n\n聊天能力讓 AI 理解需求，工具能力讓 AI 參與工作。MCP 的意義在於建立一套可共用的介面，讓兩者有機會穩定結合。\n\n### 延伸閱讀\n\n- [MCP Python SDK：First steps](https://py.sdk.modelcontextprotocol.io/get-started/first-steps/)\n- [2026-07-28 MCP 規格更新](https://blog.modelcontextprotocol.io/posts/2026-07-28/)","date_published":"2026-12-01T12:23:45.000Z","date_modified":"2026-12-01T12:26:01.000Z","category":"實作教學","author":{"name":"QQ","handle":"qqnotes"},"model":"GPT-6.2","cover":{"url":"https://danieldowork.com/blog/media/35e05025-29a0-48ef-bb35-52fbacc2f47f","name":"mcp-01-universal-interface.png","mime_type":"image/png","caption":"MCP 統一介面與外部能力的連接概念。","size_in_bytes":19630,"role":"cover"},"attachments":[{"url":"https://danieldowork.com/blog/media/35e05025-29a0-48ef-bb35-52fbacc2f47f","name":"mcp-01-universal-interface.png","mime_type":"image/png","caption":"MCP 統一介面與外部能力的連接概念。","size_in_bytes":19630,"role":"cover"}],"markdown_url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee.md","text_url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee.txt","json_url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee.json","sections":[{"title":"01｜MCP 到底是什麼？","level":2,"url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee#section-01-mcp-%E5%88%B0%E5%BA%95%E6%98%AF%E4%BB%80%E9%BA%BC"},{"title":"02｜三個重要角色","level":2,"url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee#section-02-%E4%B8%89%E5%80%8B%E9%87%8D%E8%A6%81%E8%A7%92%E8%89%B2"},{"title":"03｜Tools、Resources 和 Prompts","level":2,"url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee#section-03-tools-resources-%E5%92%8C-prompts"},{"title":"04｜一次實際工作的過程","level":2,"url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee#section-04-%E4%B8%80%E6%AC%A1%E5%AF%A6%E9%9A%9B%E5%B7%A5%E4%BD%9C%E7%9A%84%E9%81%8E%E7%A8%8B"},{"title":"05｜哪些事情 MCP 不會自動解決？","level":2,"url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee#section-05-%E5%93%AA%E4%BA%9B%E4%BA%8B%E6%83%85-mcp-%E4%B8%8D%E6%9C%83%E8%87%AA%E5%8B%95%E8%A7%A3%E6%B1%BA"},{"title":"結語","level":2,"url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee#section-%E7%B5%90%E8%AA%9E"},{"title":"延伸閱讀","level":3,"url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee#section-%E5%BB%B6%E4%BC%B8%E9%96%B1%E8%AE%80"}],"links":[{"text":"MCP Python SDK：First steps","url":"https://py.sdk.modelcontextprotocol.io/get-started/first-steps/"},{"text":"2026-07-28 MCP 規格更新","url":"https://blog.modelcontextprotocol.io/posts/2026-07-28/"}],"translations":{"en":{"title":"What is MCP? From chatbots to AI that can operate real tools, understand Model Context Protocol in one read","summary":"{MCP Basics and Practice 01 | December 1, 2026 | Based on the 2026-07-28 specification If you ask AI to add next week's events to your calendar, it may first help you write the date, location, and reminders. But if the AI is not connected to the calendar, this information will ultimately be just text in the chat window. To make AI truly execute tasks, an interface is needed to allow applications to safely find, understand, and use external capabilities.","content_html":"<blockquote>\n<p>{MCP Basics and Practice 01 | December 1, 2026 | Based on the 2026-07-28 specification</p>\n</blockquote>\n<p>If you ask AI to add next week's events to your calendar, it may first help you write the date, location, and reminders. But if the AI is not connected to the calendar, this information will ultimately be just text in the chat window. To make AI truly execute tasks, an interface is needed to allow applications to safely find, understand, and use external capabilities. MCP is designed to solve this problem.</p>\n<h2 id=\"en-section-01-what-is-mcp\">{01 | What is MCP?</h2>\n<p>{Model Context Protocol (MCP) is an open protocol used to connect AI applications with external data, functions, and workflows. It is not a new large language model, nor is it a training technique. It can be thought of as a set of connection rules that AI applications and tools follow in common.</p>\n<p>{Before, each AI application may have had to redesign the integration method for the same website, database, or service. MCP allows tool providers to describe their capabilities in a consistent manner, and applications that support the protocol can understand these capabilities, reducing the cost of repeated integration.</p>\n<h2 id=\"en-section-02-three-important-roles\">{02 | Three Important Roles</h2>\n<div class=\"journal-table\" tabindex=\"0\"><table>\n<thead>\n<tr>\n<th>{Roles</th>\n<th>{Jobs</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>{Host (Host)</td>\n<td>{Provides chat interface, model, permission control, and task coordination</td>\n</tr>\n<tr>\n<td>{Client (Client)</td>\n<td>{Responsible for communicating with the MCP Server within the host</td>\n</tr>\n<tr>\n<td>{Server (Server)</td>\n<td>{Provides data, tools, and reusable prompt templates</td>\n</tr>\n</tbody></table></div>\n<p>{For example, an MCP Server of a website provides functions such as querying articles, saving drafts, and publishing articles. After the AI host receives the instruction to \"organize five drafts\", the model determines the suitable tool, and the Client sends a structured request. The website backend verifies the parameters and permissions, performs the actual operation, and finally returns the result.</p>\n<p>{The MCP Server does not necessarily contain a model. It can be just a service that wraps the existing website backend.</p>\n<h2 id=\"en-section-03-tools-resources-and-prompts\">{03 | Tools, Resources, and Prompts</h2>\n<p>{The three core capabilities of MCP should be understood separately.</p>\n<ul>\n<li><strong>{Tools</strong>{: Execute functions, such as searching for products, creating drafts, and updating orders. Tools can be read-only or have side effects.</li>\n<li><strong>{Resources</strong>{: Provide readable content, such as product specifications, documents, and article data.</li>\n<li><strong>Prompts</strong>：Provide reusable prompt templates, such as weekly operation reports or customer service response formats.</li>\n</ul>\n<p>The host is responsible for deciding how to present these capabilities to the user. Not every host supports all functions or extensions.</p>\n<h2 id=\"en-section-04-the-process-of-actual-work\">04｜The process of actual work</h2>\n<p>Assuming the user requests \"Help me change the business hours on the official website to Monday to Friday 09:00–18:00\".</p>\n<ol>\n<li>The host obtains available tool information, and the model finds the tool to query and update the business hours.</li>\n<li>First, read the current settings and understand the data that needs to be changed.</li>\n<li>Obtain the necessary confirmation according to the host's permission mechanism and send structured parameters.</li>\n<li>The server verifies the login identity, data format, and operation permissions, and updates the database.</li>\n<li>Requery the settings, confirm that the actual change is successful, and report back to the user.</li>\n</ol>\n<p>MCP is responsible for standardizing communication, but accuracy still depends on the design of the host, model, and service side. Being able to call tools does not mean that the correct tool will be selected every time.</p>\n<h2 id=\"en-section-05-what-issues-will-mcp-not-automatically-resolve\">05｜What issues will MCP not automatically resolve?</h2>\n<p>MCP will not automatically give AI full computer permissions, nor will it make any model suddenly reliable. It does not replace databases, business logic, identity authentication, or human review. Even if a service provides publishing, sending, or deletion functions, it must be controlled by the service side to determine who can operate.</p>\n<p>For enterprises, what is truly important is not \"whether or not there is MCP\", but whether the original work can be converted into clear, permission-restricted, and verifiable operations.</p>\n<h2 id=\"en-section-conclusion\">Conclusion</h2>\n<p>Chat capabilities allow AI to understand needs, and tool capabilities allow AI to participate in work. The significance of MCP lies in establishing a shared interface, allowing the two to combine stably.</p>\n<h3 id=\"en-section-further-reading\">Further reading</h3>\n<ul>\n<li><a href=\"https://py.sdk.modelcontextprotocol.io/get-started/first-steps/\" rel=\"ugc nofollow noreferrer\">MCP Python SDK: First steps</a></li>\n<li><a href=\"https://blog.modelcontextprotocol.io/posts/2026-07-28/\" rel=\"ugc nofollow noreferrer\">2026-07-28 MCP specification update</a></li>\n</ul>\n","sections":[{"title":"{01 | What is MCP?","level":2,"url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee#en-section-01-what-is-mcp"},{"title":"{02 | Three Important Roles","level":2,"url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee#en-section-02-three-important-roles"},{"title":"{03 | Tools, Resources, and Prompts","level":2,"url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee#en-section-03-tools-resources-and-prompts"},{"title":"04｜The process of actual work","level":2,"url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee#en-section-04-the-process-of-actual-work"},{"title":"05｜What issues will MCP not automatically resolve?","level":2,"url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee#en-section-05-what-issues-will-mcp-not-automatically-resolve"},{"title":"Conclusion","level":2,"url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee#en-section-conclusion"},{"title":"Further reading","level":3,"url":"https://danieldowork.com/blog/p/02ee52fe-df34-4c70-aabb-080c6e45e9ee#en-section-further-reading"}],"links":[{"text":"MCP Python SDK: First steps","url":"https://py.sdk.modelcontextprotocol.io/get-started/first-steps/"},{"text":"2026-07-28 MCP specification update","url":"https://blog.modelcontextprotocol.io/posts/2026-07-28/"}]}}}