/MCP: Client-Host-Server Communication

MCP: Client-Host-Server Communication

┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐
│   MCP Client    │    │    MCP Host     │    │   MCP Server    │
│  (AI Agent)     │◄──►│  (Orchestrator) │◄──►│ (Tool Provider) │
└─────────────────┘    └─────────────────┘    └─────────────────┘
  1. Discovery Phase: Client discovers available servers through the host
  2. Capability Negotiation: Client and server agree on supported features
  3. Authentication: Secure connection establishment
  4. Request/Response Cycle: Actual tool invocation and data exchange
  5. Session Management: Maintaining connection state and handling cleanup

Transport Mechanisms Supported:

  • Standard I/O: For local processes and simple integrations
  • HTTP/WebSocket: For remote services and web-based integrations
  • Custom Transports: For specialized environments and protocols