Tiny Agents in Python: a MCP-powered agent in ~70 lines of code

The 70-Line AI Agent: Why Tiny MCP-Powered Code Is the Future of AI Automation

By · Published December 3, 2026 · Updated December 3, 2026

For the past couple of years, the story of artificial intelligence has been a story of size. Bigger models. Bigger budgets. Bigger data centers. But a quiet counter-trend has started to take hold, and it may matter just as much: the rise of small, focused agents that do a lot with very little code.

The clearest signal yet comes from a fresh demonstration showing that you can build a working AI agent in roughly 70 lines of Python using something called MCP, the Model Context Protocol. That's not a typo. Seventy lines. Small enough to read over a coffee. Small enough that a single developer can understand every part of it.

That fact alone should make businesses sit up and pay attention. It suggests the future of AI isn't only about giant models locked inside giant companies. It's also about small, understandable building blocks that regular developers can wire together to get real work done.

What Is an AI Agent, Really?

Before we go further, let's make sure we're on the same page. An "AI agent" is software that can take a goal and act on it, not just answer a question, but actually do things. It can call tools, look up information, run a calculation, send a message, or trigger another piece of software.

Think of a chatbot as a smart friend you can talk to. An agent is more like a smart assistant who can also pick up the phone, check the calendar, and send the email for you.

Until now, building an agent has often felt heavy. You had to choose a framework, read a mountain of documentation, and glue together dozens of moving parts. That's fine for big engineering teams. For everyone else, small businesses, solo developers, internal IT teams, it's been a barrier.

The 70-line Python agent flips that. It shows that with the right protocol in place, an agent can be small, readable, and easy to change.

The Big Idea: MCP Is the Plumbing

The key to this small agent is MCP, the Model Context Protocol. The simplest way to think about MCP is that it's a standard plug for AI. It defines a common way for AI models to talk to tools, data, and services.

Here's why that matters. In the early days of the web, every site did things its own way. Then common standards came along, and the web exploded. MCP is trying to do the same thing for AI agents. If everything a model might want to use, a database, a calendar, a file system, a search service, speaks the same protocol, then connecting an AI to any of them becomes routine.

With MCP as the plumbing, the code you write to build an agent shrinks dramatically. You don't need to hand-craft a custom connection for every tool. You point the agent at the MCP server, and it discovers what's available.

Why This Small Detail Is a Big Deal

The Counter-Trend Nobody Expected: Smaller Is Better

While the headlines chase ever-larger AI models, a second front is opening. It's the front of small code, narrow scope, and clear behavior. That's where the real business value usually shows up first.

Think about how software has always worked. The most valuable business systems aren't usually the biggest. They're the ones that do one thing reliably, connect to other simple systems, and are easy to fix when something breaks. The 70-line agent fits that pattern perfectly.

This has real implications for how AI gets built over the next few years:

The most interesting thing about a tiny agent is that it's easy to trust. You can read it, test it, and know what it will do. That's a huge deal for businesses used to the "black box" feeling of large AI systems.

The Shift from Prompting to Protocols

For the last two years, the big skill in AI has been "prompting", writing good instructions to steer a model. That's still important. But the next big skill is going to be something else: designing the connections between AI and the rest of the digital world.

That's what MCP represents. It's not about telling the AI what to do. It's about giving the AI hands and a toolbox, through a standard interface. Once those connections are standardized, a lot of the messy work of building AI products goes away.

The 70-line agent is a proof point. It says: the plumbing is now good enough that a small script can do work that used to require a small team. That's the same inflection point the web hit in the 1990s, when common protocols made a whole new class of products possible.

What This Means for Businesses

If you run a business, here's the practical version of all this.

1. Start small and concrete

Don't begin with a grand "AI strategy." Begin with a narrow task that wastes real time today, answering the same five support questions, pulling a weekly report, or summarizing incoming emails. A small agent can handle that. Prove the value, then grow.

2. Think in tools, not just models

A small agent is only useful because it can call tools. Ask your team which internal systems speak to the outside world in a standard way. If the answer is "none," that's a roadmap item. Building standard connections is now as important as picking a model.

3. Value readability

When you buy or build an agent, ask how big the code is and whether your team can understand it. Smaller, readable code is safer, cheaper to maintain, and easier to hand off. A 70-line agent you can read is often better than a 70,000-line system you can't.

4. Prepare for agent-to-agent work

As small agents multiply, they'll need to hand work off to each other. Standard protocols are what makes that possible. Companies that get their systems speaking common protocols early will have a real advantage.

5. Keep governance light and clear

Small agents are easier to govern. You can see what each one can access and what it can do. Build simple rules early: what data can an agent see, what actions can it take, and who approves them.

What This Means for Society

The bigger cultural story here is democratization. When a working AI agent takes roughly 70 lines of Python, the number of people who can build one goes up enormously. Students, hobbyists, small business owners, and internal IT teams can all participate.

That's healthy. The last two years of AI felt, to many people, like something being built for them by a handful of giant companies. Small agents plus open protocols pull some of that power back toward normal developers and smaller organizations.

There's a flip side. When agents become easy to build, they also become easy to build badly or carelessly. Easy-to-build agents make it easier to grant access to sensitive systems without thinking hard about it. That's why standards and clear rules matter just as much as the code itself.

The most likely near-term outcome is a messy, vibrant middle ground: lots of small, useful agents doing specific jobs, some of them excellent, some of them sloppy. That's how every big technology wave has looked in its early days.

The Future: Many Small Agents, One Big Protocol

Here's my longer bet. Within a few years, most businesses won't have "an AI." They'll have dozens of small agents, each doing a narrow job, each talking to the others through standard protocols. Big models will still matter, they'll act as the brains inside each agent. But the unit of work will be small, specific, and readable.

The 70-line Python agent is an early sketch of that world. It's a reminder that the most important shifts in technology often look small on the day they happen. A few dozen lines of code today can be a standard way of working tomorrow.

What should you do about it? Two things. First, go look at what's possible with small, readable agents today, the barrier has never been lower. Second, start thinking about the connections in your own systems. The future of AI isn't just smarter models. It's smarter plumbing, and it's now small enough to hold in your hand.

TLDR: A working AI agent can now be built in roughly 70 lines of Python using MCP (Model Context Protocol), a standard that lets AI models plug into tools and data without custom glue code. This points to a major shift: instead of one giant AI, the future will likely be many small, readable agents that each do a narrow job and talk to each other through common protocols. For businesses, the takeaway is to start with small, concrete tasks, invest in standard connections between systems, and value code your team can actually read. For society, it means AI building is moving from a few big companies toward regular developers, powerful, but something that needs clear rules to keep it safe.