liveBook · Manning

Mcp client

As explained in Build a Multi-Agent System (from Scratch)

An MCP client is a software component that connects an AI application to capabilities exposed through the Model Context Protocol.

An MCP client connects an AI application to an MCP server and forwards requests to execute tools hosted there. In an LLM application, the host creates clients to access tools from external systems. section 5.1.3 section 5.5

A typical integration involves:

  • Establish a connection to an MCP server; the described architecture calls this connection a session. section 5.1.3
  • Discover server tools with MCPToolProvider.get_tools(); MCPTool represents an available server tool on the client side. section 5.5
  • Forward tool-call requests to the server, where the corresponding tool definitions execute. section 5.1.3
  • Connect to local servers over stdio or remote servers over streamable HTTP. section 5.1.3
Figure 5.4 The MCP architecture integrated into LLM agents and our framework

Use the architecture diagram to follow how MCP clients connect agent applications to server-hosted tools. section 5.1.3

Figure 5.5 An LLM agent with tools coming from the two different types of MCP servers: stdio and streamable HTTP.

Compare the two supported transport types for servers supplying tools to an LLM agent. section 5.1.3

How Build a Multi-Agent System (from Scratch) covers it

How deep it goes
Traces connection, discovery, and execution through MCPToolProvider and MCPTool without detailing their implementations.
Examples
Uses an LLM agent with tools from local stdio and remote streamable HTTP servers.
What it assumes
Builds on existing LLM-agent and tool infrastructure while introducing MCP clients, servers, and primitives.
What you can do after
Apply MCPToolProvider and LLMAgentBuilder to discover server tools and construct an agent that uses them.
How it connects
Links MCP clients to MCP servers, MCP hosts, MCPToolProvider, MCPTool, and LLM agents.

Also explained in

Compare how 10 books explain mcp client →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Multi-Agent System (from Scratch). The section links point to the parts of the book it draws on.