MCP & Connectors

Can multiple agent instances share a single MCP server connection?

QUICK ANSWER

While stdio sub-processes are strictly single-client, a remote MCP server using Server-Sent Events (SSE) transport can handle multiple client agent sessions concurrently.

Protocol Mechanics

Local stdio instances are exclusive to the parent OS process that spawned them. To share state, resources, or configurations across multiple agent framework threads, deploy your server on SSE transport.

In SSE mode, every connecting agent is allocated a unique session ID. The server maintains separate connections and parses the incoming requests based on the session scope.

Verified against: MCP Spec v1.0.4