back

MCP is all you need

Pydantic MCP unlocks Python data validation power

Pydantic's new Model Composition Protocol might just revolutionize how Python developers handle data validation. In a recent tech talk, Samuel Colvin—the creator of Pydantic—introduced MCP, potentially the most significant enhancement to the popular data validation library since its inception. For developers who regularly wrangle with complex data structures, this seemingly technical update offers surprising flexibility that could dramatically simplify codebases across numerous Python projects.

Key points from Samuel's presentation:

  • MCP (Model Composition Protocol) introduces a new approach to composing Pydantic models, allowing for more flexible and powerful data validation patterns beyond inheritance
  • The protocol addresses limitations in Pydantic V1's model composition, providing better support for complex nested data validation scenarios
  • MCP enables working with immutable data structures while maintaining type validation, substantially improving both correctness and developer experience

Why MCP matters more than you might think

The most insightful aspect of Colvin's presentation is how MCP fundamentally changes Pydantic's approach to data validation. Rather than forcing developers to structure their validation logic around class inheritance—which can quickly become unwieldy—MCP allows for more composable, flexible patterns that better represent real-world data.

This shift matters because data validation sits at the heart of modern application development. Whether you're building APIs, processing user inputs, or integrating with external services, the ability to reliably validate, transform, and manipulate structured data determines both your application's reliability and your development velocity. By making these patterns more intuitive and maintainable, MCP could significantly reduce the complexity tax that many Python projects pay when dealing with complex data structures.

Beyond the presentation: Practical applications

What Samuel didn't explicitly cover is how transformative MCP could be for microservice architectures. In distributed systems, where data constantly flows between services, robust validation becomes critical. Previously, teams might define similar but slightly different validation models across services, leading to inconsistencies and bugs. With MCP, a shared validation library becomes more practical—models can be composed and customized per service without duplicating core logic.

Consider a financial services application that processes transaction data. The core transaction model might include dozens of fields, but different microservices need different subsets with additional validation rules. Before M

Recent Videos

May 6, 2026

Hermes Agent Master Class

https://www.youtube.com/watch?v=R3YOGfTBcQg Welcome to the Hermes Agent Master Class — an 11-episode series taking you from zero to fully leveraging every feature of Nous Research's open-source agent. In this first episode, we install Hermes from scratch on a brand new machine with no prior skills or memory, walk through full configuration with OpenRouter, tour the most important CLI and slash commands, and run our first real task: a competitor research report on a custom children's book AI business idea. Every future episode will build on this fresh install so you can see the compounding value of the agent in real time....

Apr 29, 2026

Andrej Karpathy – Outsource your thinking, but you can’t outsource your understanding

https://www.youtube.com/watch?v=96jN2OCOfLs Here's what Andrej Karpathy just figured out that everyone else is still dancing around: we're not in an era of "better models." We're in a different era of computing altogether. And the difference between understanding that and not understanding it is the difference between being a vibe coder and being an agentic engineer. Last October, Karpathy had a realization. AI didn't stop being ChatGPT-adjacent. It fundamentally shifted. Agentic coherent workflows started to actually work. And he's spent the last three months living in side projects, VB coding, exploring what's actually possible. What he found is a framework that explains...

Mar 30, 2026

Andrej Karpathy on the Decade of Agents, the Limits of RL, and Why Education Is His Next Mission

A summary of key takeaways from Andrej Karpathy's conversation with Dwarkesh Patel In a wide-ranging conversation with Dwarkesh Patel, Andrej Karpathy — former head of AI at Tesla, founding member of OpenAI, and creator of some of the most popular AI educational content on the internet — shared his views on where AI is headed, what's still broken, and why he's now pouring his energy into education. Here are the key takeaways. "It's the Decade of Agents, Not the Year of Agents" Karpathy's now-famous quote is a direct pushback on industry hype. Early agents like Claude Code and Codex are...