AI / Agentic AI Interview Questions II
Explain the internal working of MCP's client-server orchestration model?
- The MCP client, which hosts the LLM runtime and agent reasoning logic, connects to one or more MCP servers
- It requests the list of available tools, and each server responds with its tool schemas, names, descriptions, and expected parameters
- The agent's planner selects a tool based purely on that returned name and description, without inspecting how the tool is actually implemented on the server side
- The client sends a tool call to the server using JSON-RPC, and because MCP supports long-lived, stateful sessions, results can stream back progressively rather than arriving only once at the very end
- The server itself typically remains stateless and reusable, with the actual decision-making and session logic living in the client
This design keeps servers simple, swappable providers of capability, while concentrating orchestration intelligence in the client, which is also why production deployments increasingly route multiple MCP servers through a centralized gateway to manage authentication, rate limiting, and tool exposure consistently.
More Related questions...