There's a sentence we hear at the start of a lot of conversations about AI agents:
"We'd love to do this, but first we need to replace the old system."
It sounds responsible. It's usually the wrong order.
The system in question is typically the most reliable piece of software the business owns. It might be a fifteen-year-old bespoke application, an on-premise ERP, or a database that a whole department's spreadsheets hang off. It has survived because it works. It holds the data and, crucially, the business rules nobody wrote down anywhere else.
The problem isn't that it's old. The problem is that nothing modern can talk to it safely. Fix that, and agents can start doing useful work long before - or instead of - a replacement project.
Why "replace it first" stalls AI projects
Replacing a core system is a multi-year, high-risk programme. Tying your AI plans to it means:
- No value for years. The agent project waits for the new platform, which is late, because they always are.
- Lost knowledge. Rewrites have a habit of discovering important behaviour only after it's gone.
- Frozen requirements. Every new idea, AI or otherwise, gets parked "until the new system".
Meanwhile, the people doing the work are still re-keying between screens.
The alternative: wrap it
Instead of changing the system, put a thin, governed layer around it that exposes specific actions an agent is allowed to take.
Not "here's the database". More like:
find_customer(name_or_postcode)get_order_status(order_number)list_overdue_invoices(customer_id)draft_credit_note(invoice_id, amount, reason)- which creates a draft for a person to approve, rather than posting anything
The agent never sees tables, credentials or the system's internals. It sees a short menu of well-described tools, each one validated, permission-checked and logged.
Increasingly, the right way to build that layer is as an MCP server - the Model Context Protocol is the open standard AI assistants and agent frameworks use to discover and call tools. Build it once and Claude, ChatGPT, Copilot and your own agents can all use it. (We cover MCP in plain English in What is an MCP server, and why do your old systems need one?.)
Choosing the access route
The interesting engineering is in how the layer talks to the old system. In rough order of preference:
- An existing API or service. Even an old SOAP service is a gift: it already encodes the business rules.
- Database views or a read replica. Great for read-heavy use cases. Writes usually still go through the application, not straight into tables.
- Message queues or change data capture. Ideal when you need to react to events ("a new order arrived") rather than poll.
- File exchange. Plenty of systems already import and export CSV or XML on a schedule. It isn't glamorous, but it's well understood and safe.
- UI automation. The last resort for systems with no other way in. It can be the right answer, but it needs careful monitoring because screens change.
The rule of thumb: use the least invasive route that's reliable enough for the job, and keep writes going through the same paths a human user would.
The controls that make it safe
Wrapping a system is not just plumbing. The layer is also where you put the controls that let risk and compliance teams say yes:
- Read-only by default. Most first workflows only need to look things up and draft.
- Approval for writes. Anything that changes records, moves money or contacts a customer goes through a person until the agent has earned more autonomy.
- Per-user permissions. The agent acts on behalf of someone, with no more access than that person has.
- Audit everything. Every tool call: who asked, which agent, what arguments, what came back.
- Validate inputs and outputs. The layer checks the agent's requests just as it would check a form submission.
We go deeper on this in Human-in-the-loop: designing AI agents your auditors will sign off.
What it looks like in practice
Take a common one: a finance team that reads supplier invoices from a shared mailbox and keys them into a long-serving ERP.
With a wrap-first approach:
- An integration layer exposes "find supplier", "find matching purchase order" and "create draft invoice".
- An agent reads each email and attachment, extracts the details, matches them against the ERP and creates a draft with a short explanation of what it checked.
- A person reviews and approves in the ERP as usual. Exceptions arrive with the context already gathered.
The ERP doesn't change. The finance team stops re-keying. And every step is logged.
And then, maybe, modernise
Here's the part people don't expect: the integration layer is also the best first step towards replacing the old system, if you still want to.
Once everything new talks to the layer rather than the system's internals, you can move functions behind it to modern services one at a time - the "strangler fig" pattern - without anyone upstream noticing. The agents become the first customer of your modernised architecture.
So the order is:
- Wrap the system with a governed layer.
- Put agents to work on it.
- Modernise behind the layer, piece by piece, if and when it makes sense.
Where to start
Pick one workflow that's high-volume, well understood and currently involves someone copying data between systems. Map which actions an agent would need. Then build just those - nothing more.
If you'd like a second pair of eyes on that first step, that's exactly what our Agent Readiness Sprint is for: two weeks, fixed price, and a working prototype against your real system at the end.
Tags: ai-agents legacy-systems integration mcp
Share: LinkedIn (opens in a new tab) X (opens in a new tab) Email