<?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 Ben Morss on Medium]]></title>
        <description><![CDATA[Stories by Ben Morss on Medium]]></description>
        <link>https://medium.com/@benmorss?source=rss-c34c902a9b8d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ufpi5n2mTVf9wxEhre14pQ.jpeg</url>
            <title>Stories by Ben Morss on Medium</title>
            <link>https://medium.com/@benmorss?source=rss-c34c902a9b8d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 13:51:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@benmorss/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[All about Model Context Protocol (MCP)]]></title>
            <link>https://medium.com/@benmorss/all-about-model-context-protocol-mcp-846426576bd4?source=rss-c34c902a9b8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/846426576bd4</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[model-context-protocol]]></category>
            <dc:creator><![CDATA[Ben Morss]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 23:02:42 GMT</pubDate>
            <atom:updated>2026-11-11T23:02:42.527Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GCr2TaGhfMI8-qzzbhDdNA.png" /></figure><p><em>(November 2026: I’ve updated this to reflect some of the many things which have changed since this was published, way back in July 2025. By the time you read this, it will probably be out of date again. Things change. Fast.)</em></p><p>If you follow AI, you’ve almost certainly heard about Model Context Protocol (MCP). Since Anthropic announced this new standard in November 2024, its popularity has exploded. There are MCPs for sending emails, MCPs to search the web, MCPs that run other MCPs. MCPs let humble LLMs make pull requests and plane reservations. MCP is a key technology that turns an LLM from a chatbot into an agent.</p><p>But how does this work? Fundamentally, LLMs are token-outputting machines. How can an LLM not just output text, but take actions in the real world? And why has it gained traction so quickly, especially compared to earlier efforts?</p><p>Let’s find out.</p><h3>What does MCP mean?</h3><p>MCP stands for <strong>M</strong>odel <strong>C</strong>ontext <strong>P</strong>rotocol.</p><p>The “<strong>model</strong>” is an AI model. This can be any sort of AI surface, but typically it’s built on an LLM. Here we’ll refer to this as an AI agent or an AI assistant.</p><p>“<strong>Context</strong>” refers to the context in which the AI agent operates. In AI, we often talk about a “context window”, which refers to all the context an LLM incorporates when it generates its response to a prompt — the conversation history, the system prompt, and more. For MCP to work, an AI surface gives the underlying LLM an additional prompt specifying what tools it can use and how to use them.</p><p>“<strong>Protocol</strong>” is a set of rules that describe a way two entities communicate over a network. One protocol you use every day is HTTP — HyperText Transfer Protocol — which governs how a web server and web client communicate.</p><p>Putting this together: “Model Context Protocol” is a <strong>protocol</strong> that provides the <strong>context</strong> that lets AI <strong>models</strong> use outside tools and resources.</p><p>MCP is an open standard invented by <a href="https://www.latent.space/p/mcp">two Anthropic engineers</a>, which Anthropic has now <a href="https://aaif.io/projects/model-context-protocol">donated to the Linux Foundation</a>. It uses <a href="https://www.jsonrpc.org/">JSON-RPC</a>, a popular protocol for defining function calls. And it’s inspired by <a href="https://microsoft.github.io/language-server-protocol/">Language Server Protocol</a>, which Microsoft created to decouple the logic behind handling coding languages from IDEs.</p><p>MCP is not a piece of software, an app, or an API. But it gives AI agents access to all of these!</p><h3>What does MCP do?</h3><p>LLMs can give intelligent and useful responses to user input. But on its own an LLM has no access to outside services, no way to talk to other software, no means to retrieve up-to-date information. The fix is to place the LLM in a harness which gives it access to outside tools, resources, and data.</p><p>MCP is a common feature in such a harness. It gives an AI surface the ability to send requests to any software service and get a response. It gives an AI agent a standard means to access outside tools, resources, and data.</p><p>Without a harness, an AI client is just a brain with no body, no way to access the outside world. With it, an AI client can be an agent!</p><h3>Who can use MCP?</h3><p>Since MCP is an open standard, anyone can implement an MCP client or an MCP server.</p><p>The client can be any app based around an LLM. You can use MCPs in apps like <a href="https://support.claude.com/en/articles/10949351-getting-started-with-local-mcp-servers-on-claude-desktop">Claude Desktop</a>, <a href="https://code.visualstudio.com/docs/copilot/chat/mcp-servers">VSCode</a>, <a href="https://learn.chatgpt.com/docs/extend/mcp">ChatGPT</a>, <a href="https://docs.github.com/en/copilot/concepts/customizations/mcp">GitHub Copilot</a>, and <a href="https://cursor.com/docs/mcp">Cursor</a>. Or you can use MCPs with an AI agent you’ve built with a framework like <a href="https://docs.langchain.com/oss/python/langchain/mcp">LangChain</a> or <a href="https://docs.crewai.com/v1.15.33/en/mcp/overview">CrewAI</a>.</p><h3>Why has MCP become so popular?</h3><p>One reason is that it’s an open standard. Any AI agent can implement MCP, and so can any tool. This gives it wider appeal than solutions for a specific company’s product, like OpenAI’s <a href="https://platform.openai.com/docs/guides/function-calling?api-mode=chat">Function calling</a>. Indeed, OpenAI started supporting MCP in March 2025, a few months after its creation.</p><p>In creating this universal solution, MCP’s creators were inspired by Language Server Protocol (LSP). Before LSP, when an IDE wanted to implement functionality like autocompletion or syntax highlighting for a given coding language, it needed to roll its own integration. The result was what the creators recently referred to as an <a href="https://www.latent.space/p/mcp#:~:text=clearly%20like%20an-,M%20times%20N,-problem.%20Like%20you">m × n problem</a>, in which people needed to implement language services separately for each possible IDE/language combination. With LSP, each coding language needs only one integration library. And an IDE which supports LSP can support any such language. Similarly, once a service implements an MCP server, any AI client which supports MCP can use it. The client needs only to support MCP.</p><p>MCP is flexible in other ways. It can run locally or over a network. And it comes from Anthropic, who is well-respected and who would share the benefits of an open standard.</p><h3>Why do AI agents need a standard protocol?</h3><p>Since LLMs are so good at understanding and applying information, can’t they already use any software service whose description their training data includes? After all, LLMs already understand how to use many popular APIs, as you’ll find if you ask a coding assistant like Copilot or Sourcegraph for help.</p><p>But if you gave an LLM access to every API in its training data, chaos would ensue. How would it know which APIs to call and when? How would it get your API key and credentials, and how would it use services that need other sorts of access? What if you wanted to know the driving distance from Kansas City to Des Moines — or the current temperature in Bangkok? There are many ways to find this information. As a user, you want control over the actions your LLM chooses. This is especially true when it isn’t retrieving information, but taking actions that affect the world, like sending an email or ordering you a pizza.</p><p>True, an agent could read and understand a low-level OpenAPI spec, or the entirety of an API’s documentation, then make API calls accordingly. But MCP lets toolmakers define higher-level services that would be especially useful for an AI agent, pointing that agent in a useful direction. So far, this is an area where humans still excel.</p><p>Thus, it turns out that the best way for now is to explicitly define tools and resources the LLM can use and how it can use them. MCP does this the old-fashioned way, deterministically — not by having the LLM do its magic, but through code and JSON.</p><h3>But how can an LLM use tools?</h3><p>As I mentioned at the start, an LLM is a machine which generates tokens — tokens that humans encounter as text, images, audio, and so on. So how can such a machine have access to tools and resources? How does it know it has such access, and how does it know which one to use?</p><p>The key is that, indeed, as <a href="https://code-curiosity-maximilian-schwarzmueller.podigee.io/39-llm-tool-use-mcp">Maximilian Schwarzmüller points out</a>, LLMs can only communicate with the outside world with tokens. They take tokens as input and produce tokens as output. And those tokens can include entities that mean “I want to use a tool.” So, to indicate that it wants to use a tool or resource, and to actually use one, an LLM generates standard tokens that the software surrounding it will recognize as a tool call and intercept. That software then calls a service and returns the output to the LLM.</p><p>The LLM could use specialized tokens here. But usually it just uses specific delimiters and language — that way you can retrofit this ability into an existing LLM by fine-tuning it. For example, you could use start and end tags in square brackets that enclose JSON, like this sample agent output:</p><p><em>Sure! I can create a new spreadsheet for you. Hang on…</em></p><pre>[tool-start]<br>{<br>  &quot;tool&quot;: &quot;spreadsheets&quot;,<br>  &quot;action&quot;: &quot;create&quot;<br>}<br>[tool-end]</pre><p>This is just what researchers did in <a href="https://arxiv.org/pdf/2302.04761">their 2023 Toolformer paper</a>, which showed, as the title says, “Language Models Can Teach Themselves to Use Tools”. In this study, the authors generated training data which included plain-text representations of API calls and their results. Fine-tuning an LLM with this additional data, they produced an LLM which would call those APIs to generate a promising response to a prompt.</p><p>They used the simple format</p><pre>[function_name(data) → result]</pre><p>For example, knowing that LLMs struggle with math, they provided a Calculator tool. They then included in the training data strings like this:</p><p>Out of 1400 participants, 400 (or <em>[Calculator(400 / 1400) → 0.29]</em> 29%) passed the test.</p><p>The name derives from &quot;la tortuga&quot;, the Spanish word for <em>[MT(&quot;tortuga&quot;) → turtle]</em> turtle.</p><p>By fine-tuning an LLM with such data, they created an LLM which knew how to call APIs to generate the most promising response to a given prompt.</p><p>But you don’t have to fine-tune an LLM to let it use tools. It turns out that all you need is a prompt. <a href="https://pub.towardsai.net/from-next-token-to-tool-use-how-to-give-llms-the-ability-to-use-tools-d26a2db2a9ae">This article</a> demonstrates how to teach an LLM to use tools using JSON delimited by [[qwen-tool-start]] and [[qwen-tool-end]], solely by giving it an appropriate prompt.</p><p>You can try this yourself! Just visit your favorite chatbot and tell it:</p><p><em>Congratulations! You now have the ability to use a tool to do multiplication. When you need to do a calculation, all you need to do is output the following syntax:</em></p><p><em>[Math]<br>{<br> “arg1”: {value},<br> “arg2”: {value}<br>}<br>[/Math]</em></p><p><em>where, of course, each {value} represents a value you want to multiply. Got it?</em></p><p>Then give the LLM a math problem and watch it faithfully output the syntax you gave it for your math tool.</p><p>Modern LLMs still use tools in much the same way. For example, Anthropic describes <a href="https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/implement-tool-use#tool-use-system-prompt">here</a> the way they construct a system prompt for Claude to use tools in their API. Sometimes they use tokens or characters reserved for tool calls, but sometimes they use plain text, much like in this example.</p><h4>How does an LLM handle output from a tool?</h4><p>How does an LLM receive tool output? Once again, it’s all about tokens. Once the AI client receives output from a tool, it feeds that back into the LLM as input, but in such a way that the LLM knows it is tool output, not end user input.</p><h4>Putting it all together</h4><p>To summarize, here’s what happens when an LLM uses a tool:</p><ul><li>User types in input</li><li>LLM processes this input</li><li>While generating output, the LLM “decides” calling a tool is the best way to complete its output. This means it outputs a set of tokens that it’s been trained to know will let it call a tool.</li><li>The AI client recognizes those tokens as something that should call a tool, intercepts it, parses the JSON into parameters and anything else in the request, and sends this off to the appropriate tool</li><li>The tool generates output, which may or may not involve using an API. It returns this to the AI client, which sends it to the LLM</li><li>LLM processes tool output</li><li>LLM uses this output to continue to create a response for the user</li></ul><h3>And there you have it</h3><p>And there’s a little about how MCP came to be, how it works, and how it quickly became a vital part of the journey by which LLMs progressed from generating text to taking actions in the world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=846426576bd4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>