Перейти к содержимому

MCP Explained: How AI Actually Connects to Your Tools and Data (Part 1)

LogicandLoops

0:00 / 0:00

MCP Explained: How AI Actually Connects to Your Tools and Data (Part 1)

135 просмотров · 5 дн. назад
LogicandLoops
160 подписчиков
135 просмотров · 5 дн. назад
Your AI can chat, but how does it actually DO things, like check the weather, read your files, or query a database? The answer is MCP, the Model Context Protocol. In this video, we explain MCP from scratch, with diagrams and one simple restaurant analogy that carries you from start to finish. 📌 This is PART 1 of 2: ▶ Part 1 (this video): MCP in detail, covering the concepts, the diagrams, and the security risks ▶ Part 2: A complete hands-on implementation, where we build an MCP server on Windows with all the code, line by line → [coming soon..] No prior knowledge needed. We build everything up slowly. 🔹 What you'll learn: What MCP is, and the problem it solves The three roles: Host, Client, and Server (the customer, the waiter, and the kitchen) How they talk to each other (JSON-RPC, and why you don't write it yourself) The three things an MCP server can offer: Tools, Resources, and Prompts What's inside a tool: name, description, and input schema A full walkthrough of one request: "Will I need an umbrella in Delhi?" What MCP is NOT (three common misunderstandings) The 7 steps behind every MCP request The method names you'll see everywhere (tools/list, tools/call, resource/read and more) Why hosts cache the tool list instead of asking every time The "one client, one server" rule, and why it exists A real multi-server architecture 5 security risks: prompt injection, tool poisoning, excessive permissions, confused deputy, and OAuth/token attacks, each with an example and a defense ⏱️ Timestamps: 00:00 Intro 01:13 What is MCP? 02:38 The Three Roles: Host, Client, Server 04:34 How They Talk: JSON-RPC 06:00 The Full Picture 06:47 Three Things a Server Can Expose 08:01 Walkthrough: "I Want a List of Tools" 11:04 A Tool's Anatomy 12:06 Full Example: The Umbrella Question 13:00 Resources & Prompts, in Practice 14:11 What MCP is NOT 15:08 How a Request Actually Works: The 7 Steps 16:10 The Method Names Cheat Sheet 17:20 Why Hosts Cache Instead of Asking Every Time 18:05 One Client, One Server 19:18 A Real Multi-Server Architecture 20:14 MCP Security: Why This Matters 20:44 Risk 1: Prompt Injection 22:00 Risk 2: Tool Poisoning 22:35 Risk 3 & 4: Excessive Permissions & Confused Deputy 23:42 Risk 5: OAuth & Token Attacks 24:28 Recap & Outro 📚 Earlier videos in this series: ▶ LLM Foundations:    • How LLMs Actually Work — Tokens, Embedding...   ▶ RAG Explained:    • How RAG Actually Works: The Full Pipeline,...   ▶ AI Agents Explained:    • AI Agents Explained: ReAct, Memory, MCP & ...   📋 A glossary of every term in this video is in the pinned comment. If this made MCP click for you, subscribe to LogicAndLoops. Part 2 is where we turn all of this into working code. #MCP #ModelContextProtocol #AI #AIAgents #LLM #Claude