MCP Learning Series - Part 4
Now that we have an idea on what is MCP and how to create a simple MCP server and add it to AI Application like Claude. But, Do we really need a AI Application to access MCP Server? Answer is NO AI Applications like Claude are using LLM for thinking, reasoning and acting. MCP is a Client - Server architecture. Where the client is your AI application. But, to be precise these AI Applications are called "MCP Host". These MCP host contains inbuild MCP client. The above diagram explains the architecture of MCP. 1) After we add the weather MCP server to the AI Application - MCP Host. 2) MCP Client creates a dedicated connection (1:1) with the weather MCP Server. 3) This connection exist, regardless of the MCP Server is used or not. 4) When the user enters the prompt, "What is the weather in Chennai?" 5) The LLM discovers the tools available and based on the input context and tool description. It uses the weather tool. 6) This call is forwarded from the MCP Host (LLM) -...