AI Hints
Home›MCP Tutorial›What Is MCP
MCP · Lesson 3 of 120

Hosts, Clients and Servers

Who talks to whom.

⏱ 2 min read▶ Video at 1:55🎓 Free
Watch this lesson in the MCP courseWatch on YouTube ↗Full MCP course

MCP has three roles. The host is the AI app the person uses. Inside it, a client talks to one server. And the server offers the tools and data.

Hosts, Clients and Servers
From the video: Hosts, Clients and Servers
  • Host
  • Client
  • Server

The three roles

At the top is the host, like a chat app or a code editor. The host creates one client for each server it connects to. Each client keeps one connection open. And each server offers its tools, resources, and prompts.

  1. Host: the AI app
  2. Client: one per server
  3. Connection
  4. Server: tools and data

Who does what

The host runs the model and shows the chat. The client speaks the protocol. The server does the real work, like querying a database. A host can connect to many servers at once.

keyvalue
Hostruns the model
Clientspeaks MCP
Serverdoes the work
Many serversone client each

Summary

The host is the app, a client connects to each server, and servers offer tools and data. Next, the three building blocks.

Key takeaways
  • Host
  • Client per server
  • Server
Next up: Tools, Resources and Prompts — three building blocks