Overview
SQS transport uses direct queue-to-queue communication where the server listens on a request queue and sends responses to client-specific response queues.
Examples
View complete working examples in the GitHub repository:Quick Start
Basic Usage
Configuration
Server Configuration
Class:SqsServerConfig
URL of the SQS queue where the server receives requests.Example:
https://sqs.us-east-1.amazonaws.com/123456789/mcp-requests
Maximum messages to retrieve per poll (1-10).
Long polling duration (0-20). Use 20 for cost optimization.
Seconds a message remains invisible after retrieval.
Seconds between queue polling attempts. Lower values reduce latency but increase costs.
Custom attributes to include with messages.
Optional overall transport timeout.
Client Configuration
Class:SqsClientConfig
URL of the server’s request queue.Example:
https://sqs.us-east-1.amazonaws.com/123456789/mcp-requests
URL of the client’s response queue. Can be pre-created or dynamically generated.Example:
https://sqs.us-east-1.amazonaws.com/123456789/mcp-responses
Unique client identifier. Auto-generated if not provided.
Custom attributes to include with messages.
Optional overall transport timeout.