<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Node.js on </title>
    <link>/tags/node.js/</link>
    <description>Recent content in Node.js on </description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Sat, 14 Mar 2026 10:00:00 +0800</lastBuildDate><atom:link href="/tags/node.js/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>深入理解 Model Context Protocol (MCP)：从概念到实践</title>
      <link>/posts/mcp-introduction/</link>
      <pubDate>Sat, 14 Mar 2026 10:00:00 +0800</pubDate>
      
      <guid>/posts/mcp-introduction/</guid>
      <description>通过构建一个 SQLite MCP 服务器的完整案例，来学习 MCP 的核心概念和开发流程
引言 在 AI 应用开发中，如何让大语言模型（LLM）安全、可靠地与外部数据和工具交互，是一个关键挑战。Model Context Protocol (MCP) 正是在这个背景下出现的一种开放协议。
本文将通过一个实际项目——MCP SQLite Server，从零开始理解 MCP 的核心概念，并掌握完整的开发流程。
什么是 MCP？ Model Context Protocol (MCP) 是一个开放协议，旨在标准化 AI 模型与外部数据源、工具之间的交互。到 2026 年，MCP 已经成为连接 LLM 与本地/远程资源时经常被讨论的一套接口约定，类似于为 AI 提供统一的“外设接口”。
MCP 的核心架构 ┌─────────────────┐ │ AI Client │ ← 你的 IDE (Cursor/VSCode)、Claude Desktop 或自定义应用 │ (MCP Client) │ └────────┬────────┘ │ MCP Protocol (JSON-RPC) │ (stdio / HTTP + SSE) ▼ ┌─────────────────┐ │ MCP Server │ ← 你构建的服务，暴露工具、资源和提示词 │ - Tools │ │ - Resources │ │ - Prompts │ └─────────────────┘ 三大核心概念 1.</description>
    </item>
    
  </channel>
</rss>
