Skip to content
GUIDES#MCP mistakes#MCP security#Prompt Injection

Common MCP Mistakes (And How to Avoid Them)

The 6 most common MCP mistakes: permissions, untrusted servers, Prompt Injection, and how to avoid them.

Yaakov Tzedek
Yaakov Tzedek · AI expert·5 min read
Common MCP mistakes
THE BOTTOM LINE
  • The 6 most common mistakes when working with MCP (Model Context Protocol): overly broad permissions, untrusted servers, Prompt Injection, and how to connect tools to AI safely.
DID YOU KNOW?

Most MCP security problems stem from overly broad permissions. Give each server only the access it actually needs.

Most MCP problems come from overly broad permissions and connecting untrusted servers, not from the protocol itself. MCP (Model Context Protocol) is safe when used correctly. Here are 6 common mistakes and how to avoid them.

1. Overly Broad Permissions

An MCP server with full system access is dangerous. The fix: minimal permissions, read before write, and access only to what is actually needed. Background in the MCP guide.

2. Connecting Untrusted Servers

Installing any random server without vetting it first. The fix: connect only servers from recognized sources, and check reputation and code. See 10 Recommended MCP Servers.

3. Ignoring Prompt Injection

A server that fetches external content (websites, emails) can return text containing malicious instructions. The fix: connect from trusted sources only, and apply controls on incoming content.

4. No Human in the Loop for Sensitive Actions

Letting an agent perform irreversible actions on its own. The fix: require human approval before actions like deletion, payment, or sending.

5. Storing Keys in Code

Hardcoding API keys directly in the code. The fix: environment variables or a secure secrets manager.

6. Unnecessary Server Sprawl

Connecting dozens of servers "just in case." The fix: only what you actually need. Every server adds attack surface and permission overhead.

The bottom line

MCP is safe when built correctly: minimal permissions, trusted sources, and human oversight. Want to connect your tools to AI securely? That is part of AI implementation in your organization. Talk to us.

Frequently asked questions

Was this article helpful?
Share:WhatsAppLinkedInX
Yaakov Tzedek
WRITTEN BY

Yaakov Tzedek

An Israeli AI lecturer, consultant and implementer who has supported 100+ organizations in AI implementation and lectured for 200+. Official content partner of Meta, Google, Canva and TikTok, featured on Israel's Channel 13.

More about Yaakov →