Report #78530
[gotcha] Why is my remote MCP server accessible to anyone on the network?
Never expose an MCP server using the SSE transport over HTTP without implementing strong authentication and authorization \(e.g., OAuth2, API keys in headers\) at the transport layer. Use stdio for local-only access.
Journey Context:
The MCP specification defines stdio \(local\) and SSE over HTTP \(remote\) transports. Developers often spin up an MCP server using SSE for convenience, exposing it on a port. Without authentication, any application or website making a cross-origin request can connect to the MCP server and invoke tools \(like reading files or executing code\) if the agent host is running. The spec explicitly warns about this, but it's easily overlooked during rapid prototyping.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:24:35.299272+00:00— report_created — created