The Real Python Podcast· Folge 266

Dangers of Automatically Converting a REST API to MCP

Freitag, 19. September 2025 · 1 h 24

MP3

Shownotes

<p>When converting an existing REST API to the Model Context Protocol, what should you consider? What anti-patterns should you avoid to keep an AI agent’s context clean? This week on the show, Kyle Stratis returns to discuss his upcoming book, “AI Agents with MCP”.</p>
<p>Kyle has been busy since he last appeared on the show in 2020. He’s taken his experience working in machine learning startups and started his own consultancy, Stratis Data Labs. He’s been documenting his explorations working with LLMs and MCP on his blog, <em>The Signal Path</em>. </p>
<p>Kyle is also writing a book about building MCP clients, services, and end-to-end agents. We discuss a recent article he wrote about the hazards of using an automated tool to convert a REST API into an MCP server. He shares his personal experiences with building MCP tools and provides additional resources for you to learn more about the topic.</p>
<p>This episode is sponsored by InfluxData.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Spotlight:</strong> <a href="realpython.com/workshops/python-for-beginners/… for Beginners: Code With Confidence – Real Python</a></p>
<p>Learn Programming Fundamentals and Pythonic Coding in Eight Weeks—With a Structured Course</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:02:41 – Updates on career</li>
<li>00:04:36 – The Signal Path - newsletter</li>
<li>00:07:15 – Moving into consulting</li>
<li>00:12:35 – Recent projects</li>
<li>00:14:51 – Need for data skills with MCP</li>
<li>00:16:49 – Describing the differences between REST APIs and MCP</li>
<li>00:19:59 – Interaction model differences</li>
<li>00:27:29 – Sponsor: InfluxData</li>
<li>00:28:21 – Agent stories</li>
<li>00:32:58 – Going through a simple example of MCP server</li>
<li>00:37:50 – Defining client and server</li>
<li>00:40:19 – Examples of servers currently</li>
<li>00:51:44 – Announcement: Python for Beginners: Code with Confidence</li>
<li>01:02:07 – Resources for further study</li>
<li>01:05:07 – Breaking down advice on moving an API to MCP</li>
<li>01:08:04 – What are you excited about in the world of Python?</li>
<li>01:18:20 – What do you want to learn next?</li>
<li>01:21:35 – How can people follow your work online?</li>
<li>01:22:46 – Thanks and goodbye</li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="oreilly.com/library/view/ai-agents-with/979834… Agents with MCP - Book</a></li>
<li><a href="realpython.com/podcasts/rpp/10/">Episode #10: Python Job Hunting in a Pandemic</a></li>
<li><a href="jlowin.dev/blog/stop-converting-rest-apis-to-m… Converting Your REST APIs to MCP</a></li>
<li><a href="thesignalpath.xyz/stop-generating-mcp-servers-… Generating MCP Servers from REST APIs!</a></li>
<li><a href="context7.com/">Context7 - Up-to-date documentation for LLMs and AI code editors</a></li>
<li><a href="anthropic.com/">Anthropic</a><…;
<li><a href="modelcontextprotocol.io/docs/getting-started/i… is the Model Context Protocol (MCP)? - Model Context Protocol</a></li>
<li><a href="github.com/github/github-mcp-server">g…: GitHub’s official MCP Server</a></li>
<li><a href="reddit.com/r/mcp/">Model Context Protocol (/MCP) - Reddit</a></li>
<li><a href="github.com/modelcontextprotocol/servers"&…: Model Context Protocol Servers</a></li>
<li><a href="mcpmarket.com/server">Browse All MCP Servers - MCP Market</a></li>
<li><a href="gofastmcp.com/getting-started/welcome">… to FastMCP 2.0! - FastMCP</a></li>
<li><a href="letta.com/blog/agent-memory">Agent Memory: How to Build Agents that Learn and Remember - Letta</a></li>
<li><a href="kylestratis.com/">Kyle Stratis Personal Blog - The Edge Cases</a></li>
<li><a href="thesignalpath.xyz/">The Signal Path</a></li>
<li><a href="stratisdatalabs.com/">Stratis Data Labs</a></li>
<li><a href="linkedin.com/in/kylestratis/">Kyle Stratis - LinkedIn</a></li>
<li><a href="bsky.app/profile/kylestratis.com">Kyle (@kylestratis.com) — Bluesky</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="realpython.com/courses/interacting-rest-apis-p… With REST APIs and Python</a></li>
<li><a href="realpython.com/courses/pydantic-simplify-data-… Pydantic to Simplify Python Data Validation</a></li>
<li><a href="realpython.com/courses/history-python-versions… History of Python Versions and Features</a></li>
</ul> <p><a rel="payment" href="realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>

0:00 / 0:00