Skip to content

References: How MCP connects AI to tools

Source material:
• Stanford CME 295: Transformers & Large Language Models, Autumn 2025
Instructor: Afshine Amidi & Shervine Amidi, Stanford University
Course site: https://cme295.stanford.edu/syllabus/2025/
Cheatsheet: https://cme295.stanford.edu/cheatsheet/
Source lecture (Lecture 7, Agentic LLMs):
see the Autumn 2025 syllabus at https://cme295.stanford.edu/syllabus/2025/ for the lecture URL
License (lecture videos): as published on Stanford's public YouTube channel
License (Amidi cheatsheets): MIT
This lesson adapts the standardization (MCP) section of Stanford CME 295 Lecture 7,
covering [01:28:50-01:29:18] the duplication problem (each model expecting tools
specified its own way), [01:29:18-01:30:39] MCP as a standard for exposing tools to models
and its vocabulary (server, tools, prompts, resources, client in the LLM host),
and [01:30:39-01:31:52] the teddy bear poetry-book example (book provider runs
the server). Clawdemy provides original notes, summaries, and quizzes derived
from this material for educational purposes. All rights to the original
lectures remain with Stanford and the instructors.

The official documentation behind every MCP claim in the lesson that is not attributed to the lecturer. These addresses redirect to the current versioned pages of the documentation.

  • What is the Model Context Protocol (MCP)?, the official introduction. Source for MCP as an open-source standard linking AI apps with outside systems, the USB-C comparison, the example uses (calendars, note-taking workspaces, databases, design files), and the statement that many different apps support MCP. Start here.

  • Architecture overview. Source for the host, client, and server roles, the one-client-per-server rule, local versus remote servers, the three server primitives, the list-then-call flow (a client lists tools, gives them to the model, and runs the ones the model calls), and the note that MCP covers context exchange without dictating how an app uses its model. Read this if you want the next level of detail.

  • Understanding MCP servers. Source for the tools, resources, and prompts definitions and for who controls each (model, application, user). It is also the source for the point that apps can let users approve some actions ahead of time. Its travel-planning example shows all three working together.

  • MCP specification overview, section "Security and Trust & Safety." Source for the lesson's safety claims and its one quoted sentence on tool safety: hosts must get the user's explicit permission before running a tool, users should know what a tool does before allowing it, a tool's own description should not be trusted unless its server is, and the protocol cannot enforce any of this by itself.

  • Security Best Practices, section "Local MCP Server Compromise." Source for the point that a server on your own machine may have direct access to your system. The rest of the page is written for implementers and goes well beyond this lesson.

  • Playwright MCP, the project's official README. Source for what Playwright MCP is (an MCP server providing browser automation through Playwright, using structured accessibility snapshots rather than screenshots), its tool list (navigate, snapshot, click, and more), the note on the command-line route for coding agents, and the line "Playwright MCP is not a security boundary."

  • Playwright, the project's home page. Source for the quoted one-line description of Playwright, the languages it supports, and the fact that the Playwright project lists Playwright MCP among its own products.

  • Understanding MCP clients. The other side of the connection: what a client can offer a server, such as asking the user for more information mid-task. Useful once the three roles feel solid.

  • The MCP specification. The full requirements for anyone building a client or server. Dense, and written for developers, but the overview page is readable and is where the safety principles live.

  • MCP reference servers. Example servers maintained by the MCP project, linked from the architecture overview. Browsing the list is a quick way to see what kinds of systems people put the standard plug on.

  • Function calling. The previous lesson (How models call functions) covers the three stages a single tool call goes through. MCP standardizes where Stage 2 can live; the model's part is unchanged.

  • Agent loops and prompt injection. The next lesson (How agent loops work) chains tool calls into a loop and covers prompt injection, the attack that hides instructions in text the model reads.

  • Stanford CME 295 cheatsheet by the Amidi twins. MIT-licensed. A dense visual study reference for the course, worth using alongside the lessons from Lecture 7.

None selected for this lesson. The official MCP documentation and the Playwright MCP README are the better entry points right now. Durable community references will be added at a future quarterly review if any consolidate.