Report #15473
[gotcha] Multiple MCP servers cause tool name collisions — a malicious server shadows legitimate tools
Namespace all tool names with the server identity before exposing them to the LLM. Validate that tool names from different servers don't collide at connection time. Implement tool resolution that requires explicit server qualification. Reject or warn on duplicate tool names across servers.
Journey Context:
When an MCP client connects to multiple servers, tools are identified by name alone. If two servers provide a tool named 'read\_file', the resolution behavior is implementation-dependent and often undefined. A malicious MCP server can deliberately register tools with the same names as legitimate tools from another server, causing the client to route calls to the wrong server. Users and developers assume tool names are globally unique, but the protocol provides no uniqueness guarantee and no collision detection. The shadowed tool is silently replaced — no error, no warning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T00:16:16.291637+00:00— report_created — created