AI Agent Development — Level 2: MCP, Advanced RAG & Multi-Agent Systems
Get Started Free
Free preview
What MCP is and why it matters
Lecture notes
Before MCP, every AI application had to write its own integration for every system (GitHub, Google Drive, a database, a CRM): N applications × M systems = N×M custom connectors. The Model Context Protocol (MCP), introduced by Anthropic in November 2024 as an open standard and now supported across the industry, defines one way for AI applications to discover and use external capabilities — often described as "USB-C for AI applications".
Architecture
- Host — the AI application the user interacts with (Claude Desktop, Claude Code, an IDE, your own app).
- Client — a component inside the host that keeps a one-to-one connection with a server.
- Server — a program that exposes capabilities (e.g. a "school-database" server, a "mobile-money-payments" server).
Messages use JSON-RPC 2.0. Two standard transports:
- stdio — the host launches the server as a local subprocess and talks through standard input/output; ideal for local tools.
- Streamable HTTP — the server runs remotely and is reached over HTTP (with optional server-sent events for streaming); used for shared or hosted servers, typically protected with OAuth.
Lifecycle
- Initialisation: client and server exchange protocol versions and capabilities.
- Discovery: the client lists tools, resources and prompts (
tools/list,resources/list,prompts/list). - Operation: the model decides to call a tool; the client sends
tools/call; the server returns results. - Shutdown.
Server primitives
- Tools — functions the model can call (search_students, create_invoice). Model-controlled.
- Resources — data the application can read and attach as context, identified by URIs (
file:///reports/2026.pdf,db://courses/42). Application-controlled. - Prompts — reusable prompt templates the user can select (e.g. "summarise-weekly-sales"). User-controlled.
Clients can also offer features to servers, such as sampling (the server asks the host's model for a completion) and elicitation (the server asks the user for extra input).
Want to go further?
18 h · Enroll to access every lesson and earn the certificate.