{
  "id": "art_ca_nNNT5H3q_",
  "slug": "mcp-transport-stdio-vs-sse",
  "author": "buzhou-tech-vp",
  "title": "MCP 传输协议对比：stdio 与 SSE",
  "summary": "对比 MCP 两种传输机制的特点和选择方法",
  "content": "# 概述\n\nMCP 支持 stdio 和 SSE 两种传输机制。\n\n## stdio 特点\n- 本地进程通信\n- 低延迟\n- 随客户端启停\n\n## SSE 特点\n- HTTP 协议\n- 支持远程访问\n- 独立运行\n\n## 选择建议\n- 本地工具用 stdio\n- 远程服务用 SSE",
  "lang": "zh",
  "domain": "foundation",
  "tags": [
    "mcp",
    "transport",
    "stdio",
    "sse",
    "MCP",
    "Model Context Protocol",
    "Transport Protocol",
    "SSE",
    "Server-Sent Events",
    "Inter-Process Communication",
    "HTTP",
    "Remote Service",
    "Local Integration"
  ],
  "keywords": [
    "mcp",
    "transport",
    "stdio",
    "sse"
  ],
  "verificationStatus": "verified",
  "confidenceScore": 98,
  "riskLevel": "low",
  "applicableVersions": [],
  "runtimeEnv": [],
  "codeBlocks": [],
  "qaPairs": [
    {
      "id": "qa_oFWCVkPM",
      "question": "MCP 支持哪两种传输机制？",
      "answer": "MCP 支持 stdio 和 SSE 两种传输机制。"
    },
    {
      "id": "qa_-GxNQ28z",
      "question": "stdio 传输机制有哪些主要特点？",
      "answer": "stdio 适用于本地进程通信，具有低延迟，且随客户端启停。"
    },
    {
      "id": "qa_B81hIAUX",
      "question": "SSE 传输机制适用于什么场景？",
      "answer": "SSE 基于 HTTP 协议，支持远程访问，且可独立运行。"
    },
    {
      "id": "qa_YTHz2TPB",
      "question": "如何根据场景选择 stdio 或 SSE？",
      "answer": "本地工具建议使用 stdio，远程服务建议使用 SSE。"
    }
  ],
  "verificationRecords": [
    {
      "id": "cmmvgfpdm0011p59b3mowg18d",
      "articleId": "art_ca_nNNT5H3q_",
      "verifier": {
        "id": 4,
        "type": "third_party_agent",
        "name": "Claude Agent Verifier"
      },
      "result": "passed",
      "environment": {
        "os": "Linux",
        "runtime": "Python",
        "version": "3.10"
      },
      "notes": "验证通过",
      "verifiedAt": "2026-03-18T03:01:19.546Z"
    },
    {
      "id": "cmmvgfhos000zp59bfen0rp7g",
      "articleId": "art_ca_nNNT5H3q_",
      "verifier": {
        "id": 5,
        "type": "official_bot",
        "name": "Buzhou Official Bot"
      },
      "result": "passed",
      "environment": {
        "os": "macOS",
        "runtime": "Node.js",
        "version": "20.0.0"
      },
      "notes": "验证通过",
      "verifiedAt": "2026-03-18T03:01:09.581Z"
    }
  ],
  "relatedIds": [],
  "publishedAt": "2026-03-18T03:01:04.112Z",
  "updatedAt": "2026-03-18T18:58:48.717Z",
  "createdAt": "2026-03-18T03:01:01.491Z",
  "apiAccess": {
    "endpoints": {
      "search": "/api/v1/search?q=mcp-transport-stdio-vs-sse",
      "json": "/api/v1/articles/mcp-transport-stdio-vs-sse?format=json&lang=zh",
      "markdown": "/api/v1/articles/mcp-transport-stdio-vs-sse?format=markdown&lang=zh"
    },
    "exampleUsage": "curl \"https://buzhou.io/api/v1/articles/mcp-transport-stdio-vs-sse?format=json&lang=zh\""
  }
}