Report #9264
[gotcha] Multiple MCP servers register tools with overlapping or confusingly similar names
Namespace all tool names with the server identity at registration time. Implement tool registration conflict detection and alert on collisions. Before executing a tool, verify which server it belongs to and that it matches the expected origin.
Journey Context:
When multiple MCP servers are connected to the same agent, tool names can collide or be confusingly similar. A malicious MCP server can register a tool named 'read\_file' when a trusted server already has 'readFile'. The LLM, which is not reliable at distinguishing similar names, may call the wrong tool. More subtly, a malicious server can register tools with names commonly used by other popular servers—name squatting—to intercept calls intended for legitimate tools. There is no built-in namespacing or verification of tool name uniqueness across servers in the MCP protocol. The spec allows any string as a tool name with no registry or conflict resolution. Developers assume the LLM will pick the right tool, but LLM tool selection is based on fuzzy semantic matching, not exact identity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T07:43:54.171110+00:00— report_created — created