Artificial intelligence

MCP, when innovation makes its own solutions obsolete

MCP, when innovation makes its own solutions obsolete

AI is not only speeding up software development. It is also shortening the life of architectural paradigms, and MCP is the latest example.

When Anthropic introduced the Model Context Protocol at the end of November 2024, the reaction was close to unanimous. At last there was a standard way for AI agents to talk to applications, databases, APIs and tools of every kind, without writing a custom integration each time. Within a few months it had been picked up almost everywhere, from model vendors to developer tools.

The idea was elegant and still is. The way it is most commonly used, however, has serious architectural limits, and some of them could be seen from the start.

Where it gets stuck

Take a perfectly ordinary task: find a customer, fetch their orders, check the payments, look for anomalies and write a report.

With the classic approach the agent moves one step at a time. It picks the tool to look up the customer, calls it, gets the answer and puts it back into the context. Then it finds the tool for the orders, calls it, and that data also goes back to the model, which reads it again before deciding what to do next. And so on, for every operation.

Each round can cost an extra inference, with its own tokens, its own latency and one more chance to get something wrong. The orders of a large customer can be thousands of rows that pass through the model only to be filtered.

Then there is the tool catalogue. When an ecosystem exposes hundreds or thousands of tools, just describing what is available can take up a good slice of the context window before any work begins. Cloudflare did the maths on its own API, which has more than 2,500 endpoints: exposed as a regular MCP server, with one tool per endpoint, it would need about 1.17 million tokens.

We introduced a protocol to make the relationship between AI and software more efficient, and in many cases we ended up with a system that wastes resources. We are using a probabilistic engine, expensive and computationally heavy, to orchestrate steps that a bit of deterministic code would run better and for far less.

Writing code instead of calling tools

At that point the question changes. Why ask the model to drive every single call when it can write the program that makes all of them?

That is the idea behind what is being called Agentic Code Execution. Cloudflare proposed it in September 2025 under the name Code Mode, and Anthropic described its own version in November of the same year. Instead of putting thousands of tools in front of the model, you essentially give it two. The first is for finding the APIs and functions it needs (search), the second for running the code the model has written (execute) inside an isolated, controlled environment.

The model no longer has to sit between one call and the next. It writes a program, in TypeScript for example, that finds the customer, gets the orders, filters them, checks the payments and returns only what matters. The runtime handles the intermediate steps and the raw data never travels through the model.

The division of labour changes: the model reasons and writes the code, the software runs it.

The published numbers are striking. In Anthropic's example a workflow between Google Drive and Salesforce drops from about 150,000 tokens to about 2,000. Cloudflare, with just two tools, makes its whole API available in roughly 1,000 tokens of context. These are examples picked by the people proposing the approach and should be read as orders of magnitude, but the direction is clear: fewer tokens, lower latency, less information in the context and the ability to work across much larger ecosystems.

There is also a deeper reason why it works. Writing code is one of the things language models do best, because they were trained on huge amounts of software and technical documentation. Tool calls in a format invented for the purpose are something they have seen far less of.

Of course, running code generated on the fly requires proper sandboxes, fine grained permissions, resource limits and a way to audit afterwards what happened. The complexity does not disappear, it moves to components that are better suited to handle it.

So is MCP already finished?

No. MCP keeps its value as an interoperability standard, and the problem is less the protocol than the way of using it that grew up around it. In fact, in both Anthropic's and Cloudflare's proposals code execution relies on MCP as the underlying integration layer. What it avoids is having every single operation go through the model.

Standardising access to functionality makes sense. Turning every piece of functionality into a back and forth with an LLM is another matter, and often not the best choice.

The time of innovation is shrinking

The point, though, goes well beyond MCP.

Getting from the ox pulling the plough to the self driving tractor took humanity thousands of years. Questioning an entire way of integrating software now takes a few months: between the launch of MCP and Cloudflare's first Code Mode, ten of them went by.

AI adds a new variable to technological change, the collapse in the cost and time needed to turn an idea into something that works. Architectures that looked cutting edge yesterday can become inefficient before companies have finished adopting them.

MCP is a textbook case. Adopted quickly, backed by much of the industry and presented as one of the pillars of AI agents, it soon showed the limits of some of its most common uses. Limits that, looking at the problem with an engineer's eye, could have been predicted. Adoption ran faster than architectural thinking, and consensus arrived before anyone had checked the efficiency.

It will happen again. When building software gets easier, what speeds up is not only the birth of new technologies but also the ageing of the ones that just arrived. Paradigms last less, best practices become provisional and standards are questioned while they are still being adopted.

In a world like this the value of a software architect does not lie in knowing the latest thing. It lies in mastering the principles of engineering, in spotting a structural inefficiency when it shows up and in being able to rethink a solution without getting carried away by the general enthusiasm.

Today it is not only software that changes fast. Architectural decisions have an expiry date too, and it keeps getting closer. And the easier it becomes to write software, the more it matters to understand which software is really worth writing.

Sources

Geschrieben von Claudio