Understanding the difference between the Host, Client, and Server is critical when debugging MCP setups.
| Component | Role | Examples |
|---|---|---|
| Host | User interface and LLM communication. Manages multiple clients. | Claude Desktop, VS Code, Cursor |
| Client | Protocol-level state machine. Sends requests, parses responses. | @modelcontextprotocol/sdk/client |
| Server | Executes code, talks to databases/APIs, provides data. | mcp-server-postgres, mcp-github |