An MCP server is a controlled way for an AI model to reach into your systems. That control is the whole point, and it only exists if you design it in. A server that exposes the wrong tools, trusts the wrong inputs or holds the wrong credentials can turn a helpful assistant into a very efficient way to leak or damage data.
Before an agent touches production data, I work through the ten checks below. They are not exotic. Most of the problems I see come from skipping the first three, which is why they come first.
The three that matter most
- 1. Every input has a schema, and it is enforced. Each tool should declare exactly what it accepts: types, formats, allowed values and limits. Validate on the server before anything runs, and reject anything that does not match. A model can be talked into sending almost anything, so the schema is your first line of defence, not a formality.
- 2. Access is scoped to the least that works. Decide which tools each caller can use, and on what data. A support assistant might read orders but never see supplier costs. Start read-only, and add write access one tool at a time when there is a clear reason. Broad access granted for convenience is the most common root cause of trouble.
- 3. The model never holds your credentials. API keys and database passwords stay on the server. The model asks the server to act, and the server acts with its own scoped credentials. If a credential ever appears in a prompt, a tool result or a log the model can see, treat it as leaked and rotate it.
If a malformed request can reach your database, a caller can reach data they should not, or the model can see a secret, stop and fix that before anything else on this list.
The other seven
- 4. Tools are narrow and named for what they do. Prefer get order status over a general query tool. Narrow tools are easier to secure, test and reason about, and the model chooses them more reliably.
- 5. Users are authenticated, not just the client. For anything multi-user, the server should know which person is behind a call, typically through OAuth, and apply that person's permissions rather than one shared identity.
- 6. Every call is logged. Record who called which tool, with what inputs, what came back and when. This audit trail is how you investigate problems, answer questions from your own team and show that the system behaves as intended.
- 7. Results return only what is needed. Strip fields the task does not require, especially personal data. What the model never sees, it cannot repeat in the wrong place.
- 8. Tool results are treated as untrusted. Data from your systems can contain text written by customers or third parties, and some of it may try to instruct the model. Keep results clearly marked as data, and never let content returned by a tool quietly change what the server permits.
- 9. Consequential actions need confirmation. Refunds, deletions, anything a customer will see. Require an explicit approval step, at least until the tool has a track record, and make those actions easy to reverse where you can.
- 10. There are limits and an off switch. Rate limits per caller and per tool stop a looping agent from hammering a system. A simple way to disable a tool or revoke a caller quickly means a bad day stays small.
Putting it into practice
This is the approach behind the MCP servers I build. Eva MCP, which runs in production against a warehouse management system, validates every call against a schema and only allows scoped access, so the model never touches the warehouse system directly. SuperTrove puts its MCP endpoint behind OAuth, so agents sign in before they can write.
None of these checks is expensive on its own. They are far cheaper to design in from the first tool than to add after something has gone wrong, and a server that passes all ten is one you can explain to your team, your customers and yourself with a straight face.
If you have an MCP server in production or on the way, I am happy to go through this list against it with you. Usually most of it is already in good shape, and it is useful to know exactly which parts are not.