{
  "source_file": "0930",
  "source_platform": "Ghost",
  "author": "Deep Learning Nerds",
  "title_listed": "MCP vs API: What Is the Difference?",
  "keywords": "",
  "domain": "大模型算法",
  "content_type": "技术教程",
  "is_paid_flag": "否",
  "url": "https://www.deeplearningnerds.com/mcp-vs-api-what-is-the-difference/",
  "publish_date": "2026-06",
  "corpus_stage": "",
  "notes": "",
  "id": "cc6caacab371",
  "collected_at": "2026-10-02T12:25:05",
  "title": "MCP vs API: What Is the Difference?",
  "body_markdown": "📘 Introduction\nAPIs and MCP are both about connecting systems. That is why they can sound similar at first.\nBut they solve different problems. An API is a general interface that lets software interact with other software. MCP, short for Model Context Protocol, is a protocol designed specifically to connect AI applications to external tools, data sources, and workflows.\nIn this beginner guide, you will learn the difference between an API and MCP, why both matter, and when you would use one instead of the other.\n💡 The short answer\nAn API is a way for software to expose functionality.\nMCP is a standardized way for AI applications to discover and use external context, tools, and actions.\nAPI: App -> Service\nMCP: AI App -> MCP Server -> Tools, data, or services\nThe important idea is this: MCP does not replace APIs everywhere. In many cases, an MCP server uses existing APIs behind the scenes and exposes them in a way that an AI application can understand.\n🔌 What is an API?\nAn API, short for Application Programming Interface, is an interface that lets one piece of software interact with another piece of software.\nFor example, a weather app might call a weather API to get the current temperature. A payment page might call a payment API to create a checkout session. A dashboard might call a database API to fetch data.\nA simple API request can look like this:\nGET https://api.example.com/customers/123\nThe API defines what you can ask for, how to ask for it, and what kind of response you should expect.\n🤖 What is MCP?\nMCP, short for Model Context Protocol, is an open standard for connecting AI applications to external systems.\nYou can view this post with the tier:\n      Academy Membership\nJoin academy now to read the post and get access to the full library of premium posts for academy members only.\nJoin Academy\nAlready have an account?\nSign In",
  "metadata": {
    "title": "MCP vs API: What Is the Difference?",
    "description": "Learn the difference between MCP and APIs in beginner-friendly language, with simple examples, practical use cases, and a clear mental model.",
    "keywords": null,
    "author": null,
    "og:site_name": "Deep Learning Nerds | The ultimate Learning Platform for AI and Data Science",
    "og:type": "article",
    "og:title": "MCP vs API: What Is the Difference?",
    "og:description": "Learn the difference between MCP and APIs in beginner-friendly language, with simple examples, practical use cases, and a clear mental model.",
    "og:url": "https://www.deeplearningnerds.com/mcp-vs-api-what-is-the-difference/",
    "og:image": "https://storage.ghost.io/c/5b/26/5b26e983-a59f-4f4b-a5f2-bd8c5a0a38e2/content/images/size/w1200/2026/06/Post---MCP-vs-API-What-Is-the-Difference.png",
    "og:image:width": "1200",
    "og:image:height": "839",
    "twitter:card": "summary_large_image",
    "twitter:title": "MCP vs API: What Is the Difference?",
    "twitter:description": "Learn the difference between MCP and APIs in beginner-friendly language, with simple examples, practical use cases, and a clear mental model.",
    "twitter:url": "https://www.deeplearningnerds.com/mcp-vs-api-what-is-the-difference/",
    "twitter:image": "https://storage.ghost.io/c/5b/26/5b26e983-a59f-4f4b-a5f2-bd8c5a0a38e2/content/images/size/w1200/2026/06/Post---MCP-vs-API-What-Is-the-Difference.png",
    "twitter:label1": "Written by",
    "twitter:data1": "AI Developer",
    "twitter:label2": "Filed under",
    "twitter:data2": "Artificial Intelligence, Agentic AI, MCP, API",
    "twitter:site": "@DLNerds",
    "article:published_time": "2026-06-01T10:59:35.000Z",
    "article:modified_time": "2026-06-01T10:59:35.000Z",
    "article:tag": "API",
    "article:publisher": "https://www.facebook.com/deeplearningnerds/",
    "article:author": "https://www.facebook.com/deeplearningnerds/"
  },
  "paywall": {
    "listed_paid": false,
    "detected": false,
    "marker": "",
    "public_only": false,
    "policy": "付费/会员内容只保留页面公开可见部分，不绕过付费墙"
  },
  "crawl": {
    "success": true,
    "status_code": 200,
    "error": ""
  },
  "code_blocks": [
    {
      "file": "attachments/cc6caacab371/code/body-000.txt",
      "chars": 73,
      "language": "text"
    },
    {
      "file": "attachments/cc6caacab371/code/body-001.txt",
      "chars": 41,
      "language": "text"
    }
  ],
  "images": [],
  "audio": [],
  "videos": [],
  "links": [
    {
      "href": "https://www.deeplearningnerds.com/membership/",
      "label": "Join Academy",
      "type": "a"
    },
    {
      "href": "https://www.deeplearningnerds.com/signin/",
      "label": "Sign In",
      "type": "a"
    }
  ],
  "repair_version": 2,
  "repaired_at": "2026-10-14T10:47:43Z",
  "source_url": "https://www.deeplearningnerds.com/mcp-vs-api-what-is-the-difference/",
  "papers": [],
  "actual_video_files": [],
  "body_chars": 1862,
  "expected_body_images": 0,
  "discovery_status": "ok",
  "delivery_status": "ok",
  "missing_reason": "",
  "raw_html": "attachments/cc6caacab371/pages/source.html",
  "local_html": "attachments/cc6caacab371/pages/article.html",
  "body_base_path": "attachments/cc6caacab371/pages/",
  "body_markdown_path": "attachments/cc6caacab371/pages/article.md"
}