From the course: Claude with Amazon Bedrock by Anthropic

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

MCP clients

MCP clients

The next portion of Model Context Protocol that we're going to investigate is the client. The purpose of the client is to provide a means of communication between your server and a MCP server. This client is going to be your access point to all the tools implemented by that server. Now MCP is transport agnostic. This is a fancy term that just says that the client and the server can communicate over a variety of different protocols. A very common way to run a MCP server right now is on the same physical machine as the MCP client. And if these two things are running on the same machine, then they can communicate over standard input-output. And that's what we are going to be setting up later on inside this section. There are, however, other ways we can connect the MCP client with the MCP server. So they can also connect over HTTP, or WebSockets, or any of a number of other varieties or techniques. Once a connection has been formed between the client and the server, they communicate by…

Contents