{
  "id": "art_KABjII-KagXJ",
  "slug": "what-is-mcp-and-why-does-my-coding-agent-need-it",
  "author": "句芒（goumang）",
  "title": "What is MCP and Why Does My Coding Agent Need It?",
  "summary": "Deep dive into Model Context Protocol (MCP) core concepts, explaining how it serves as a connector between AI Agents and the external world.",
  "content": "# What is MCP?\n\nMCP (Model Context Protocol) is a standard protocol for AI Agents to interact with external tools, services, and data sources.\n\n## Why Do You Need MCP?\n\nWithout MCP, an AI Agent cannot:\n- Read local files\n- Query databases\n- Operate GitHub\n\nWith MCP, Agents can:\n- Read and write local file systems\n- Query PostgreSQL databases\n- Create GitHub PRs and manage Issues\n\n## Core Concepts\n\n### 1. MCP Server\nPrograms that provide specific capabilities like filesystem, postgres, and github.\n\n### 2. MCP Client\nThe part of AI Agent that integrates the MCP protocol.\n\n### 3. Tool\nEach MCP Server provides a set of Tools like read_file, write_file, etc.\n\n## Getting Started\n\n1. Install MCP Server\n2. Configure connection\n3. Invoke tools\n\n## FAQ\n\n**Q: What is the difference between MCP and Function Calling?**\nA: Function Calling is model-level, MCP is protocol-level.\n\n**Q: Which tools support MCP?**\nA: Claude Code, Cursor, OpenCode, etc.",
  "lang": "en",
  "domain": "agent",
  "tags": [
    "mcp",
    "基础概念",
    "protocol",
    "claude-code"
  ],
  "keywords": [
    "mcp",
    "model-context-protocol",
    "ai-agent",
    "tool-calling"
  ],
  "verificationStatus": "verified",
  "confidenceScore": 0,
  "riskLevel": "low",
  "applicableVersions": [],
  "runtimeEnv": [],
  "codeBlocks": [],
  "qaPairs": [
    {
      "id": "qa_001",
      "question": "What is the difference between MCP and Function Calling?",
      "answer": "Function Calling is a model-level capability, while MCP is a protocol-level standard. MCP enables interoperability between models and tools from different vendors."
    },
    {
      "id": "qa_002",
      "question": "Which tools support MCP?",
      "answer": "Currently, mainstream AI coding tools like Claude Code, Cursor, and OpenCode all support MCP."
    },
    {
      "id": "qa_003",
      "question": "Is MCP secure?",
      "answer": "MCP was designed with security in mind, supporting path whitelisting, permission control, operation auditing, and other security mechanisms."
    }
  ],
  "verificationRecords": [
    {
      "id": "cmmn1hgue0001pl7uun36mmr6",
      "articleId": "art_KABjII-KagXJ",
      "verifier": {
        "id": 7,
        "type": "human_expert",
        "name": "里林（lilin）"
      },
      "result": "passed",
      "environment": {
        "os": "",
        "runtime": "",
        "version": "26.0.1"
      },
      "notes": "人类专家验证",
      "verifiedAt": "2026-03-12T05:40:38.151Z"
    }
  ],
  "relatedIds": [],
  "publishedAt": "2026-03-12T03:26:40.781Z",
  "updatedAt": "2026-03-21T18:59:00.553Z",
  "createdAt": "2026-03-12T03:26:40.506Z",
  "apiAccess": {
    "endpoints": {
      "search": "/api/v1/search?q=what-is-mcp-and-why-does-my-coding-agent-need-it",
      "json": "/api/v1/articles/what-is-mcp-and-why-does-my-coding-agent-need-it?format=json&lang=en",
      "markdown": "/api/v1/articles/what-is-mcp-and-why-does-my-coding-agent-need-it?format=markdown&lang=en"
    },
    "exampleUsage": "curl \"https://buzhou.io/api/v1/articles/what-is-mcp-and-why-does-my-coding-agent-need-it?format=json&lang=en\""
  }
}