MCP expands what an AI client can do, so it expands the attack surface. Apply familiar security principles.
Authenticate and authorise
Identify the user, issue scoped credentials and check permissions on every call in your server, not in the prompt.
Least privilege
Expose only needed tools. Split read and write. Narrow parameters, such as allowed fields and maximum amounts.
Treat tool output as untrusted
Content returned by tools can contain instructions aimed at the model. Defend against prompt injection and avoid chaining sensitive actions on untrusted text.
Verify third-party servers
Only connect clients to servers you trust. Descriptions can be altered to mislead models, so review and pin versions.
Protect secrets
Never put credentials in prompts or tool descriptions. Use a secret manager and short-lived tokens.
Require approval for impactful actions
Use human approval for writes, payments and deletions.
Log and monitor
Record calls with user and parameters (redacting personal data), alert on anomalies and keep a kill switch.
Our MCP server development includes these controls.
Frequently asked questions
Is MCP secure?
The protocol is a transport and convention. Security depends on your implementation: authentication, authorisation, least privilege, validation and monitoring.
What is tool poisoning?
An attack where malicious or altered tool descriptions or outputs manipulate the model into unsafe actions.
Should MCP tools be able to write data?
Only with tight limits and human approval for impactful actions. Start with read-only tools.
Related: MCP server development · AI agent security · Agent guardrails
Want a straight answer for your project?
Book a 30-minute call. I will tell you what I would do, and a fixed price if it makes sense.