Skip to main content

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
string
required
URL of the SQS queue where the server receives requests.Example: https://sqs.us-east-1.amazonaws.com/123456789/mcp-requests
int
default:"10"
Maximum messages to retrieve per poll (1-10).
int
default:"20"
Long polling duration (0-20). Use 20 for cost optimization.
int
default:"30"
Seconds a message remains invisible after retrieval.
float
default:"5.0"
Seconds between queue polling attempts. Lower values reduce latency but increase costs.
dict
Custom attributes to include with messages.
float
Optional overall transport timeout.

Client Configuration

Class: SqsClientConfig
string
required
URL of the server’s request queue.Example: https://sqs.us-east-1.amazonaws.com/123456789/mcp-requests
string
required
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
string
Unique client identifier. Auto-generated if not provided.
dict
Custom attributes to include with messages.
float
Optional overall transport timeout.