Introduction
By the end of this article, participants will have a solid grasp of the Model Context Protocol (MCP) and its architecture. They will learn how to build their own MCP Weather Application Server using tools like Azure AI Agent Service, Agent Mode in GitHub Copilot, and Claude Desktop clients. Additionally, they will use the MCP Inspector to test and validate their agent applications.
Large Language Models (LLMs) such as GPT-4, Claude, Gemini, and Llama 3 are highly effective at reasoning, summarization, and content generation. Yet, they function in isolation without native access to real-time data, external APIs, or local files. This gap is addressed by the Model Context Protocol (MCP).
What is Model Context Protocol?
The Model Context Protocol (MCP) is an open standard that enables Large Language Models (LLMs) to connect with external tools using structured API calls. You can think of MCP as a USB-C port for LLMs—allowing them to seamlessly plug into services such as external APIs, local databases, files, and web search.
Why MCP?
MCP offers a straightforward, standardized framework that enables LLMs to:
Discover available tools
Understand the input/output requirements of each tool
Invoke these tools through structured JSON requests and process their responses
The main advantage of MCP is that it allows LLMs to interact with external tools much like a human developer would when calling a REST API. This ensures a consistent and structured approach for models to extend their capabilities beyond their built-in knowledge.
MCP Architecture

Core Components of MCP
MCP Hosts — Applications like Claude Desktop, IDEs, or AI agents that use MCP to connect with external tools and data.
MCP Clients — Components that handle direct 1:1 communication with MCP servers, ensuring secure and structured interactions.
MCP Servers — Lightweight, modular services that expose specific functionalities—such as file access, API calls, or data analysis—through the standardized Model Context Protocol.
Local Data Sources — Files, databases, and system services on the local machine that MCP servers can securely access to execute tasks.
Remote Services — Internet-based systems or APIs (e.g., weather services, search engines, third-party data platforms) that MCP servers can connect to for external data and functionality.
How MCP Works?
At its foundation, MCP functions much like a traditional API ecosystem—only designed for LLMs instead of human developers. The typical workflow is as follows:
Tool Discovery : The model identifies the tools that are available and their capabilities.
Schema Understanding : MCP provides each tool's input/output schema in JSON format.
Structured Invocation : The model builds a JSON payload to call the tool.
Response Handling : The model processes the structured response to continue its reasoning.
Prerequisites for building MCP Server
1) Python 3.8+ installed
2) UV Setup
For Windows,
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
uv –version
uv init .
uv add "mcp[cli]"






Mahesh ChandPosted Aug 27, 2025, 12:16 PM
Nicely done!