{"id":301,"date":"2025-03-23T11:17:13","date_gmt":"2025-03-23T11:17:13","guid":{"rendered":"https:\/\/ajaykumar.co.in\/?p=301"},"modified":"2025-03-24T15:31:55","modified_gmt":"2025-03-24T15:31:55","slug":"why-mcp-matters-future-proof-your-ai-workflows-today","status":"publish","type":"post","link":"https:\/\/ajaykumar.co.in\/?p=301","title":{"rendered":"Why MCP Matters: Future-Proof Your AI Workflows Today!"},"content":{"rendered":"\n<p>(<strong>Disclaimer<\/strong>: <strong>Written <\/strong>by Human with proof reading by AI. Code by Human as coding assistants are refering older API version when this blog was written \ud83d\ude42 . Architectural digrams are also from Human.) <\/p>\n\n\n\n<p>Everyone is talking about Model Context Protocol (MCP). It\u2019s rocking the industry, and everyone wants to understand what the heck this MCP is. In the next 15 minutes, I will tell you why you should really care about MCP.<\/p>\n\n\n\n<p>Should you put your energy into learning MCP in an ever-changing AI landscape where tools and technologies become outdated every 15 to 30 days? In this blog, I will cover why MCP is so important, along with an example scenario where we build an SQL query tool using the <strong>MCP Python SDK, Claude Desktop, PostgreSQL, and Northwind DB<\/strong> to query <strong>Customer Orders<\/strong>. But this is not limited to customer-related queries\u2014you can ask any kind of query to this tool. It will run on your desktop and become a valuable assistant in your day-to-day job. Using the same concept, you can build other MCP servers that provide tools and resources to assist with daily tasks. You can also leverage this for customer solutions to increase the value of AI-powered applications.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Let&#8217;s get started.<\/h3>\n\n\n\n<p>The story begins with <strong>LLMs<\/strong>, which promise to change the world and impact every job on the planet. However, if you look closely, these <strong>LLMs are Generative AIs<\/strong>. Their job is to predict the most probable token (word, phrase, etc.) based on the input provided. They excel at this because they have been trained on vast amounts of world knowledge. Given an input, they generate the most probable output. They are fantastic at what they do.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"394\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-1-1024x394.png\" alt=\"\" class=\"wp-image-303\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-1-1024x394.png 1024w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-1-300x115.png 300w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-1-768x295.png 768w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-1-750x288.png 750w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-1.png 1048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>However, to solve real-world problems, LLMs need two additional capabilities:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>It\u2019s great to have world knowledge, but can you <strong>work on my proprietary knowledge<\/strong>?<\/li>\n\n\n\n<li>Can you <strong>take some action<\/strong> based on the output?<\/li>\n<\/ol>\n\n\n\n<p>These two capabilities make LLMs truly useful in real-world scenarios\u2014exactly what our software does every day. These features have been added through two key techniques:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Retrieval-Augmented Generation (RAG):<\/strong> Provides the necessary context.<\/li>\n\n\n\n<li><strong>Action Hooks:<\/strong> Enables execution of specific actions.<\/li>\n<\/ul>\n\n\n\n<p>With <strong>RAG<\/strong>, you can provide problem-specific context, and with <strong>action hooks<\/strong>, you can execute functions like API calls, database operations, writing to files, and more. These two features make <strong>LLM-based solutions extremely powerful<\/strong>. The <strong>context<\/strong> could be anything\u2014text files, images, databases, etc. The <strong>tools<\/strong> could be API calls, DB insert execution, file writing, and more.<\/p>\n\n\n\n<p>We started integrating these enhancements, and our LLMs became very powerful.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"583\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-4-1024x583.png\" alt=\"\" class=\"wp-image-306\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-4-1024x583.png 1024w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-4-300x171.png 300w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-4-768x438.png 768w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-4-750x427.png 750w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-4.png 1104w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">The Twist<\/h3>\n\n\n\n<p>Every day\/week, we hear that a <strong>new, better model<\/strong> has been released\u2014more <strong>accurate, faster, and cheaper<\/strong>. This forces us to change models constantly. We try to make our applications loosely coupled so they don\u2019t depend on a single LLM. However, <strong>methods for providing context, integrating API calls, and internal details keep changing<\/strong>, requiring constant adaptation.<\/p>\n\n\n\n<p>In fact, <strong>there is no standard way to provide context and tools to all types of LLMs<\/strong>. This created an urgent need for a <strong>standardized approach<\/strong> to providing context to LLMs so that every LLM could receive context through predefined methods, without requiring changes every time a new model appears.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"578\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-5-1024x578.png\" alt=\"\" class=\"wp-image-307\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-5-1024x578.png 1024w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-5-300x169.png 300w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-5-768x434.png 768w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-5-750x423.png 750w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-5.png 1153w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Enter <strong>Model Context Protocol (MCP)<\/strong><\/h3>\n\n\n\n<p>Think of <strong>REST API standards<\/strong>\u2014anyone building a REST API server knows that a <strong>200 response code means success<\/strong>. This standardization allows servers and clients to interact seamlessly, regardless of implementation details.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"370\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-7-1024x370.png\" alt=\"\" class=\"wp-image-312\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-7-1024x370.png 1024w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-7-300x108.png 300w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-7-768x277.png 768w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-7-750x271.png 750w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-7.png 1138w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Similarly, <strong>MCP defines a standard way to provide context and integrate tools with LLMs<\/strong>. This protocol, developed by <strong>Anthropic<\/strong>, aims to standardize how we supply context and actions to AI models.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"557\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-6-1024x557.png\" alt=\"\" class=\"wp-image-308\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-6-1024x557.png 1024w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-6-300x163.png 300w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-6-768x418.png 768w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-6-750x408.png 750w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-6.png 1165w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Will MCP become the industry standard? <strong>Nobody knows.<\/strong> But as of today, it\u2019s the most promising approach, and it works really well.<\/p>\n\n\n\n<p>Below is high level architecture from the site of MCP with their components.&nbsp;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-8.png\"><img loading=\"lazy\" decoding=\"async\" width=\"871\" height=\"590\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-8.png\" alt=\"\" class=\"wp-image-313\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-8.png 871w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-8-300x203.png 300w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-8-768x520.png 768w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-8-750x508.png 750w\" sizes=\"auto, (max-width: 871px) 100vw, 871px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>MCP Hosts<\/strong>: Programs like Claude Desktop, IDEs, or AI tools that want to access data through MCP<\/li>\n\n\n\n<li><strong>MCP Clients<\/strong>: Protocol clients that maintain 1:1 connections with servers<\/li>\n\n\n\n<li><strong>MCP Servers<\/strong>: Lightweight programs that each expose specific capabilities through the standardized Model Context Protocol<\/li>\n\n\n\n<li><strong>Local Data Sources<\/strong>: Your computer\u2019s files, databases, and services that MCP servers can securely access<\/li>\n\n\n\n<li><strong>Remote Services<\/strong>: External systems available over the internet (e.g., through APIs) that MCP servers can connect to<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Let&#8217;s Code<\/h2>\n\n\n\n<p>Now, let\u2019s build an <strong>AI assistant<\/strong> that understands the <strong>database schema<\/strong> and executes <strong>queries<\/strong> to provide answers to key business questions. Below is the <strong>high-level architecture and design<\/strong> of our project. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"395\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-9-1024x395.png\" alt=\"\" class=\"wp-image-314\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-9-1024x395.png 1024w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-9-300x116.png 300w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-9-768x297.png 768w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-9-750x290.png 750w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-9.png 1225w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>The entire codebase is written in <strong>Python<\/strong>. Let&#8217;s setup the project<\/p>\n\n\n\n<p><strong>Step 1: Setup the Codebase<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell line-numbers\"># Init it\nuv init sampleserver\ncd sampleserver\n\n# Create Environment\nuv venv\n\n# Add dependencies\nuv add mcp[cli] httpx\n\n# Create File\nnew-item sample_server.py\n\n# Open Visual Studio Code\ncode .<\/code><\/pre>\n\n\n\n<p>Open the project in <strong>VS Code<\/strong>. Ensure you have <strong>Claude Desktop<\/strong> installed. Download it here: <a href=\"https:\/\/claude.ai\/download\">Claude Desktop<\/a> (free version available).<\/p>\n\n\n\n<p>For this experiment, we use <strong>Northwind DB<\/strong>, a well-known sample database.<\/p>\n\n\n\n<p><strong>Step 2: Implement the Server<\/strong><\/p>\n\n\n\n<pre title=\"sample_server.py\" class=\"wp-block-code\"><code lang=\"python\" class=\"language-python\">from typing import Any, List\nimport asyncpg\nfrom mcp.server import FastMCP\n\nprint(&quot;Starting Northwind Orders MCP Server...&quot;)\n\n# Initialize the FastMCP server\nmcp = FastMCP(&quot;NorthwindOrdersService&quot;)\n\n# Database configuration\nDB_CONFIG = {\n    &quot;host&quot;: &quot;localhost&quot;,\n    &quot;port&quot;: &quot;5432&quot;,\n    &quot;database&quot;: &quot;northwind&quot;,\n    &quot;user&quot;: &quot;postgres&quot;,\n    &quot;password&quot;: &quot;abc-123&quot;\n}\n\n# Database connection pool\ndb_pool: asyncpg.Pool | None = None\n\nasync def init_db_pool():\n    &quot;&quot;&quot;Initialize the database connection pool.&quot;&quot;&quot;\n    global db_pool\n    try:\n        db_pool = await asyncpg.create_pool(**DB_CONFIG)\n        print(&quot;Successfully connected to Northwind database&quot;)\n    except Exception as e:\n        print(f&quot;Error connecting to database: {e}&quot;)\n        raise\n\nasync def get_db():\n    &quot;&quot;&quot;Get database connection from pool.&quot;&quot;&quot;\n    if db_pool is None:\n        await init_db_pool()\n    return db_pool\n\n# Provide the schema of db as resource\n@mcp.resource(&quot;schema:\/\/main&quot;)\nasync def get_schema() -&gt;str:\n    &quot;&quot;&quot;Get the schema of the Northwind database after connecting to DB.&quot;&quot;&quot;\n    try:\n        pool = await get_db()\n        async with pool.acquire() as conn:\n            query = &quot;&quot;&quot;\n                SELECT table_name, column_name, data_type\n                FROM information_schema.columns\n                WHERE table_schema = &#039;public&#039;\n                ORDER BY table_name, ordinal_position\n            &quot;&quot;&quot;\n            rows = await conn.fetch(query)\n            schema = {row[&#039;table_name&#039;]: [] for row in rows}\n            return &quot;\\n&quot;.join(sql[0] for sql in schema if sql[0])\n    except Exception as e:\n        print(f&quot;Error fetching schema: {e}&quot;)\n        return f&quot;Error: {str(e)}&quot;\n\n# Execute the query query and return the result\n@mcp.tool()\nasync def execute_query(query: str) -&gt; str:\n    &quot;&quot;&quot;Execute a SQL query and return the result.&quot;&quot;&quot;\n    try:\n        pool = await get_db()\n        async with pool.acquire() as conn:\n            result = await conn.fetch(query)\n            return str(result)\n    except Exception as e:\n        print(f&quot;Error executing query: {e}&quot;)\n        return f&quot;Error: {str(e)}&quot;\n\n# Run the FastMCP server\nif __name__ == &quot;__main__&quot;:\n    mcp.run(transport=&#039;stdio&#039;)\n<\/code><\/pre>\n\n\n\n<p>Now, we need to configure <strong>Claude Desktop<\/strong> to connect to our server.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open <strong>Claude Desktop<\/strong><\/li>\n\n\n\n<li>Go to <strong>File \u2192 Settings \u2192 Developer<\/strong><\/li>\n\n\n\n<li>Click <strong>Edit Config<\/strong> (opens a JSON file)<\/li>\n<\/ol>\n\n\n\n<p>Add the following configuration:<\/p>\n\n\n\n<pre title=\"C:\\Users\\akuma\\AppData\\Roaming\\Claude\\claude_desktop_config.json\" class=\"wp-block-code\"><code lang=\"json\" class=\"language-json\">{\n    &quot;mcpServers&quot;: {\n        &quot;NorthwindOrdersService&quot;: {\n            &quot;command&quot;: &quot;uv&quot;,\n            &quot;args&quot;: [\n                &quot;--directory&quot;,\n                &quot;C:\\\\Ajay\\\\Code\\\\mcp1\\\\weather&quot;,\n                &quot;run&quot;,\n                &quot;sample_server.py&quot;\n            ]\n        }\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>Make sure to <strong>update the path<\/strong> (<code>C:\\\\Ajay\\\\Code\\\\mcp1\\\\weather<\/code>) to your correct project directory.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Restart and Test<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Relaunch <strong>Claude Desktop<\/strong><\/li>\n\n\n\n<li>If the server doesn\u2019t appear, <strong>kill the process and restart it<\/strong><\/li>\n\n\n\n<li>Once running, you should see the <strong>server listed in the UI<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-16.png\"><img loading=\"lazy\" decoding=\"async\" width=\"995\" height=\"713\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-16.png\" alt=\"\" class=\"wp-image-330\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-16.png 995w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-16-300x215.png 300w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-16-768x550.png 768w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-16-750x537.png 750w\" sizes=\"auto, (max-width: 995px) 100vw, 995px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Step 4: Interact with MCP<\/strong><\/p>\n\n\n\n<p>Click the <strong>symbol to select the context<\/strong>, then choose <strong>NorthwindOrderService<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-19.png\"><img loading=\"lazy\" decoding=\"async\" width=\"880\" height=\"463\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-19.png\" alt=\"\" class=\"wp-image-333\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-19.png 880w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-19-300x158.png 300w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-19-768x404.png 768w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-19-750x395.png 750w\" sizes=\"auto, (max-width: 880px) 100vw, 880px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-17.png\"><img loading=\"lazy\" decoding=\"async\" width=\"46\" height=\"33\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-17.png\" alt=\"\" class=\"wp-image-331\"\/><\/a><\/figure>\n\n\n\n<p>Next, check the <strong>available tools<\/strong>. You should see <code>execute_query<\/code> listed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-18.png\"><img loading=\"lazy\" decoding=\"async\" width=\"686\" height=\"327\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-18.png\" alt=\"\" class=\"wp-image-332\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-18.png 686w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-18-300x143.png 300w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Now, let\u2019s test it with some queries:<\/h2>\n\n\n\n<pre class=\"wp-block-verse\"><strong>Prompt 1:<\/strong> <em>Give me a list of customers who have placed orders.<\/em><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-10.png\"><img loading=\"lazy\" decoding=\"async\" width=\"929\" height=\"722\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-10.png\" alt=\"\" class=\"wp-image-321\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-10.png 929w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-10-300x233.png 300w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-10-768x597.png 768w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-10-750x583.png 750w\" sizes=\"auto, (max-width: 929px) 100vw, 929px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-verse\"><strong>Prompt 2:<\/strong> <em>Who placed the highest <\/em>order\n<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-11.png\"><img loading=\"lazy\" decoding=\"async\" width=\"939\" height=\"326\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-11.png\" alt=\"\" class=\"wp-image-322\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-11.png 939w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-11-300x104.png 300w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-11-768x267.png 768w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-11-750x260.png 750w\" sizes=\"auto, (max-width: 939px) 100vw, 939px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-verse\">Prompt 3: Can you provide me order details from this customer<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-12.png\"><img loading=\"lazy\" decoding=\"async\" width=\"930\" height=\"785\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-12.png\" alt=\"\" class=\"wp-image-323\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-12.png 930w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-12-300x253.png 300w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-12-768x648.png 768w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-12-750x633.png 750w\" sizes=\"auto, (max-width: 930px) 100vw, 930px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-verse\">Prompt 4: Can you do some prediction on what could be the order pattern for this customer in next 10 months<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-13.png\"><img loading=\"lazy\" decoding=\"async\" width=\"929\" height=\"644\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-13.png\" alt=\"\" class=\"wp-image-324\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-13.png 929w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-13-300x208.png 300w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-13-768x532.png 768w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-13-750x520.png 750w\" sizes=\"auto, (max-width: 929px) 100vw, 929px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-14.png\"><img loading=\"lazy\" decoding=\"async\" width=\"931\" height=\"764\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-14.png\" alt=\"\" class=\"wp-image-325\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-14.png 931w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-14-300x246.png 300w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-14-768x630.png 768w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-14-750x615.png 750w\" sizes=\"auto, (max-width: 931px) 100vw, 931px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-15.png\"><img loading=\"lazy\" decoding=\"async\" width=\"919\" height=\"762\" src=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-15.png\" alt=\"\" class=\"wp-image-326\" srcset=\"https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-15.png 919w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-15-300x249.png 300w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-15-768x637.png 768w, https:\/\/ajaykumar.co.in\/wp-content\/uploads\/2025\/03\/image-15-750x622.png 750w\" sizes=\"auto, (max-width: 919px) 100vw, 919px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion: Why MCP Matters<\/strong><\/h2>\n\n\n\n<p>The <strong>Model Context Protocol (MCP)<\/strong> is <strong>a game-changer in AI development<\/strong>. It provides a <strong>standardized way to integrate context and tools<\/strong>, making it easier to work with multiple LLMs without rewriting integration logic every time a new model arrives.<\/p>\n\n\n\n<p>We have built a <strong>practical AI assistant<\/strong> using MCP, which allows us to query <strong>Northwind DB<\/strong> effortlessly. But this is just the beginning. <strong>The same approach can be applied to various domains<\/strong>, from <strong>financial analysis<\/strong> to <strong>customer support<\/strong> automation.<\/p>\n\n\n\n<p>Will MCP become the industry standard? Time will tell. But for now, <strong>if you\u2019re working with LLMs, you should absolutely start experimenting with MCP<\/strong>. It might just be the foundation of the next AI revolution. \ud83d\ude80<\/p>\n\n\n\n<p>References<\/p>\n\n\n\n<p><a href=\"https:\/\/modelcontextprotocol.io\/introduction\">https:\/\/modelcontextprotocol.io\/introduction<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/pthom\/northwind_psql\">https:\/\/github.com\/pthom\/northwind_psql<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/akumaramar\/mcpserver\">https:\/\/github.com\/akumaramar\/mcpserver<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>(Disclaimer: Written by Human with proof reading by AI. Code by Human as coding assistants are refering older API version [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":308,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[24],"tags":[22,21,19,20],"class_list":["post-301","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","tag-agenticflow","tag-aiagent","tag-mcp","tag-modelcontextprotocol"],"_links":{"self":[{"href":"https:\/\/ajaykumar.co.in\/index.php?rest_route=\/wp\/v2\/posts\/301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ajaykumar.co.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ajaykumar.co.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ajaykumar.co.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ajaykumar.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=301"}],"version-history":[{"count":23,"href":"https:\/\/ajaykumar.co.in\/index.php?rest_route=\/wp\/v2\/posts\/301\/revisions"}],"predecessor-version":[{"id":346,"href":"https:\/\/ajaykumar.co.in\/index.php?rest_route=\/wp\/v2\/posts\/301\/revisions\/346"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ajaykumar.co.in\/index.php?rest_route=\/wp\/v2\/media\/308"}],"wp:attachment":[{"href":"https:\/\/ajaykumar.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ajaykumar.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ajaykumar.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}