<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dharshini Thiyagarajan on Medium]]></title>
        <description><![CDATA[Stories by Dharshini Thiyagarajan on Medium]]></description>
        <link>https://medium.com/@dharshinithiyagarajan.work?source=rss-7031c0e57744------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_ZLiGkMQ_yh99HWI</url>
            <title>Stories by Dharshini Thiyagarajan on Medium</title>
            <link>https://medium.com/@dharshinithiyagarajan.work?source=rss-7031c0e57744------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 12:07:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dharshinithiyagarajan.work/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Creating your custom MCP server isn't that tedious? NaHH]]></title>
            <link>https://medium.com/@dharshinithiyagarajan.work/creating-your-custom-mcp-server-isnt-that-tedious-nahh-a2e534830627?source=rss-7031c0e57744------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2e534830627</guid>
            <category><![CDATA[mcp-inspector]]></category>
            <category><![CDATA[fastmcp]]></category>
            <category><![CDATA[mcps]]></category>
            <dc:creator><![CDATA[Dharshini Thiyagarajan]]></dc:creator>
            <pubDate>Sun, 01 Mar 2026 06:40:22 GMT</pubDate>
            <atom:updated>2026-03-01T07:29:18.717Z</atom:updated>
            <content:encoded><![CDATA[<h3>Create your custom MCP Server</h3><p>TODO:</p><ul><li>Verify Python version</li><li>Install FastMCP</li><li>Create a simple MCP server</li><li>Run the MCP server</li><li>Validate the server using MCP Inspector</li></ul><p><strong><em>Python version check:</em></strong></p><p>Python version <strong>3.12 or higher</strong> is required to install the FastMCP package successfully.</p><p><strong><em>FastMCP Installation:</em></strong></p><pre>pip install fastmcp<br>fastmcp version</pre><p>FastMCP version: 3.0.0rc2<br>MCP version: 1.26.0<br>Python version: 3.12.12<br>Platform: macOS-26.2-arm64-arm-64bit</p><p>🎉 FastMCP update available: 3.0.2</p><p><strong><em>MCP Server creation:</em></strong></p><p>We will create a basic MCP server that retrieves weather information based on the provided latitude and longitude.</p><p>This server will be built using <strong>FastMCP</strong>, a Python package designed to simplify MCP server development by offering built-in utilities such as server listing and other internal functionalities.</p><p>To initialize the MCP server, create an instance of the FastMCP class and provide a name for your server:</p><pre>mcp = FastMCP(&quot;weather-app&quot;)</pre><p>To start the server application:</p><pre>if __name__ == &quot;__main__&quot;:<br>mcp.run()</pre><p><strong><em>Tool creation inside the server:</em></strong></p><p>Tools are the core components within an MCP server that contain the actual business logic. They are responsible for performing the real task execution.</p><p>Whenever a request reaches the MCP server, it is the appropriate tool inside the server that gets triggered to process the request and return the result.</p><p>A single MCP server can contain multiple tools depending on the use case.</p><p>Tools are defined using the @mcp.tool() decorator.</p><pre>@mcp.tool()<br>def get_weather(latitude: float, longitude: float) -&gt; dict:<br>    &quot;&quot;&quot;Fetch current weather data using Open-Meteo (no API key required).&quot;&quot;&quot;<br>    url = (<br>        &quot;https://api.open-meteo.com/v1/forecast&quot;<br>        f&quot;?latitude={latitude}&amp;longitude={longitude}&amp;current_weather=true&quot;<br>    )<br>    return requests.get(url, timeout=10).json()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gppQE60CWtTfbsptHLmeng.png" /><figcaption>simple_mcp_server.py</figcaption></figure><p>In this example, the tool accepts latitude and longitude values provided by the user. It then uses these coordinates to make an API request to the Open-Meteo weather service and returns the response.</p><p><strong><em>Running your MCP server:</em></strong></p><p>Save the tool implementation inside a Python file. For example, you can store the code in a file named <strong>simple_mcp_server.py</strong>.</p><p>Once the file is created, run the server using the following command:</p><pre>python simple_mcp_server.py</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tqo5d-clKWPkv0-uoNwNwQ.png" /></figure><p><strong><em>Validate the server using MCP Inspector:</em></strong></p><p>MCP Inspector is a utility that allows you to test, debug, and validate all the tools available in your MCP server. It helps you verify whether your server is running correctly and whether the tools are responding as expected.</p><p>To install MCP Inspector:</p><pre>npm install -g @modelcontextprotocol/inspector</pre><p>To start MCP Inpsector:</p><pre>mcp-inspector</pre><p>By default, MCP Inspector runs on <strong>port 6274</strong>.</p><p>Once started, open it in your browser (usually at <a href="http://localhost:6274).">http://localhost:6274).</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r12yv8W1CUCQylIxeVrCoQ.png" /></figure><p>When connecting your MCP server, you need to configure the following:</p><p><strong>Transport Type</strong>:<br>Choose from:</p><ul><li>Streamable HTTP</li><li>STDIO</li><li>SSE</li></ul><p>Since your MCP server is running with HTTP transport, select <strong>Streamable HTTP</strong>.</p><p><strong>URL</strong>:<br> Provide the localhost endpoint where your MCP server is running.</p><p>Connection Type: Via Proxy</p><p>Once connected successfully, you will see multiple tabs such as:</p><ul><li><strong>Prompts</strong></li><li><strong>Tools</strong></li><li>(and possibly Resources depending on your server setup)</li></ul><p>Under the <strong>Tools</strong> tab, you should see your get_weather tool listed. From there, you can:</p><ul><li>View tool input parameters</li><li>Manually provide latitude and longitude values</li><li>Execute the tool</li><li>Inspect the JSON response</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S6H6cU82HegzFTKSbBPMNQ.png" /><figcaption>MCP Inspector UI</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ic0A-7W-2Xhk0LaXVbDdsg.png" /><figcaption>Weather Tool</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oePvfacRhNk_12YwGOS3LA.png" /></figure><p>I entered the latitude and longitude coordinates for <strong>Chennai</strong>, and the tool was successfully triggered. As a result, the current weather details for Chennai were returned as the output.</p><p>This demonstrates that the MCP server is functioning correctly and can fetch real-time data based on user input.</p><p>Moreover, this MCP server can be integrated with external LLM platforms such as <strong>Claude Desktop</strong> and <strong>VS Code Copilot</strong>, enabling AI models to securely access and use your custom tools.</p><p>In the next blog, we’ll explore how to connect this MCP server with external LLMs step by step.</p><p>But for now… 🎉 TADAA! You’ve successfully built your very first MCP server and validated it using MCP Inspector! 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2e534830627" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MCP — The hype is real!!!]]></title>
            <link>https://medium.com/@dharshinithiyagarajan.work/mcp-the-hype-is-real-0df4a8614642?source=rss-7031c0e57744------2</link>
            <guid isPermaLink="false">https://medium.com/p/0df4a8614642</guid>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[mcp-client]]></category>
            <category><![CDATA[mcp-architecture]]></category>
            <category><![CDATA[mcp-protocol]]></category>
            <dc:creator><![CDATA[Dharshini Thiyagarajan]]></dc:creator>
            <pubDate>Sun, 22 Feb 2026 14:56:40 GMT</pubDate>
            <atom:updated>2026-02-22T14:56:40.792Z</atom:updated>
            <content:encoded><![CDATA[<p>The most hyped word we hear almost every day in today’s IT world is MCP — Model Context Protocol. It might sound like just another technical buzzword, but there’s actually something interesting happening behind those three words.</p><p>We all know what a protocol is — a set of rules that systems follow to communicate. But what exactly are the rules MCP defines? And more importantly, what problem is it trying to solve?</p><p>Before we jump into MCP, let’s take a step back.</p><p>What’s really missing in traditional LLMs? They’re smart. They answer almost any question. So why do we even need something like MCP?</p><p>LLMs are trained on massive amounts of internet data. That’s why they’re great at answering general, publicly available information. But what about organization-specific data? Your internal documents, private dashboards, customer records, internal APIs — that information isn’t openly available on the internet. An LLM doesn’t automatically know it.</p><p>So what do we usually try?</p><p>One option is training or fine-tuning a model specifically for the organization. Another approach is RAG — Retrieval-Augmented Generation — where we fetch relevant internal data and pass it to the model in the prompt. Or sometimes we directly stuff data into prompts.</p><p>But then a few concerns pop up.</p><p>Is the data truly safe?<br> Is it practical to keep retraining or refeeding data continuously?</p><p>Today your organization might have 5 GB of internal data. Tomorrow it could be 10 GB. Data keeps changing — new entries, updates, deletions. We can’t keep retraining models every time something changes. And constantly pushing large amounts of data into prompts isn’t scalable either.</p><p>RAG sounds promising — and yes, it does solve part of the problem. But does it solve everything?</p><p>That’s where the real discussion begins.</p><p>When we talk about RAG, you can think of it as a knowledge layer sitting between the user and the LLM. Whenever a user asks for company-specific or user-specific information, the system doesn’t expect the LLM to already “know” it.</p><p>Instead, your internal data is preprocessed in advance. The documents are converted into vector embeddings and stored in a vector database. So when a question comes in, the system first searches this vector database, retrieves the most relevant pieces of information, and then sends that context to the LLM. The LLM’s job is to turn that retrieved data into a clear, human-readable answer.</p><p>But the accuracy of what gets retrieved is another discussion altogether. Retrieval quality depends heavily on the embedding model used. For example, if your LLM is aligned with one embedding model, but your RAG pipeline uses a completely different embedding model to generate vectors, the semantic matching may not be optimal. That mismatch can affect how accurately the retriever fetches relevant data.</p><p>Also, RAG is mainly designed for retrieval. It helps fetch information from documents or knowledge bases. It is not built for real-time system interaction — like querying live databases with complex logic, triggering workflows, updating records, or performing actions in external systems. It’s strong at “reading” stored knowledge, but not at “doing” things in real-world systems.</p><p>One more thing worth mentioning: RAG reduces hallucination by grounding responses in retrieved data, but it doesn’t completely eliminate it. If the retriever pulls slightly irrelevant or incomplete context, the LLM can still generate a confident but incorrect answer.</p><p>So in short, RAG is a powerful way to extend an LLM with private knowledge — but it’s primarily a retrieval mechanism, not a full system integration solution.</p><p><strong>MCP (Model Context Protocol)</strong> is an open standard introduced by Anthropic to define how LLM-powered applications securely communicate with external tools and systems.</p><p>It is essentially a <strong>standardized communication protocol</strong> that enables seamless interaction between an LLM-based application and external capabilities (tools, APIs, databases, internal systems).</p><h3><strong><em>MCP Components</em></strong></h3><h4>MCP Host</h4><p>The <strong>MCP Host</strong> is the user-facing application that integrates an LLM and interacts with users.</p><p>It:</p><ul><li>Accepts user input</li><li>Sends prompts to the LLM</li><li>Manages tool invocation via MCP</li></ul><p>Examples of MCP Hosts:</p><ul><li>GitHub Copilot integrated in Visual Studio Code</li><li>Claude Desktop</li></ul><p>The Host is where the conversation begins.</p><h4>MCP Client</h4><p>The <strong>MCP Client</strong> acts as the bridge between the MCP Host and the MCP Server.</p><p>It is:</p><ul><li>A protocol handler</li><li>A non-intelligent middleware layer</li><li>Responsible for tool discovery and invocation</li></ul><p>It:</p><ul><li>Knows which MCP servers are configured</li><li>Fetches tool definitions dynamically</li><li>Sends tool schemas to the LLM</li><li>Routes tool calls to the correct server</li></ul><p>It is usually configured using a JSON configuration file that specifies:</p><ul><li>How to start the MCP server</li><li>What command to run</li><li>Where the server is located</li></ul><p>Important:<br> The MCP Client does not make decisions.<br> It only follows protocol rules.</p><h4><strong>MCP Server</strong></h4><p>The <strong>MCP Server</strong> exposes external capabilities as tools.</p><p>It:</p><ul><li>Registers tools (e.g., using @mcp.tool())</li><li>Executes specific tasks</li><li>Returns structured outputs</li></ul><p>An MCP Server can:</p><ul><li>Query a database</li><li>Call internal APIs</li><li>Access secure systems</li><li>Perform business logic</li></ul><p>Each tool is essentially a function that:</p><p>Accepts structured input</p><p>Executes logic</p><p>Returns structured output</p><p>The LLM never directly accesses the system.<br> It only requests tool usage.</p><p>The MCP Server executes securely inside your environment.</p><h3><strong>How MCP works?</strong></h3><p>When a user requests specific information from an organization, the process flows through the MCP architecture in a structured way.</p><h4>Step 1: Tool Discovery</h4><p>First, the <strong>MCP Client</strong> connects to the configured MCP Server and fetches the list of all available tools. These tools represent the capabilities that the system can perform (for example, querying a database, retrieving internal records, or performing some business logic).</p><h4>Step 2: Sending Tools + User Query to the LLM</h4><p>The MCP Client then sends:</p><ul><li>The user’s query</li><li>The list of available tools (including their schemas and descriptions) to the LLM.</li></ul><p>At this stage, the <strong>LLM acts as the decision-making brain</strong>. It analyzes the user’s request and determines whether a tool needs to be called and, if so, which tool is appropriate.</p><h4>Step 3: Tool Selection by the LLM</h4><p>If a tool is required, the LLM responds with:</p><ul><li>The selected tool name</li><li>The structured arguments required to execute that tool</li></ul><p>This response is returned to the MCP Client.</p><h4>Step 4: Tool Invocation</h4><p>The MCP Client then:</p><ul><li>Constructs a structured JSON request</li><li>Sends the request to the appropriate MCP Server</li></ul><p>The MCP Server executes the requested tool (which is essentially a function performing a specific task).</p><h4>Step 5: Returning the Result</h4><p>Once execution is complete:</p><ul><li>The MCP Server returns the result to the MCP Client</li><li>The MCP Client forwards the result back to the MCP Host</li><li>The MCP Host presents the final response to the user</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*B82oje_cPZp4xj4NWk5S_A.png" /></figure><p>User → MCP Host → MCP Client<br> MCP Client → Fetch tools from MCP Server<br> MCP Client → Send tools + user query to LLM<br> LLM → Chooses tool → Returns structured tool call<br> MCP Client → Calls MCP Server<br> MCP Server → Executes tool → Returns result<br> MCP Client → Sends result to Host → User sees response</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0df4a8614642" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>