Overview
The SNS+SQS transport combines AWS Simple Notification Service (SNS) topics with SQS queues to provide powerful pub/sub messaging with fanout capabilities. Perfect for broadcasting messages to multiple consumers and event-driven architectures.SNS+SQS transport uses topic-based routing where servers subscribe to topics and clients can broadcast messages to multiple subscribers simultaneously.
Examples
View complete working examples in the GitHub repository:Quick Start
Basic Usage
Configuration
Server Configuration
Class:SnsSqsServerConfig
string
required
URL of the SQS queue where the server receives messages from SNS topic.Example:
https://sqs.us-east-1.amazonaws.com/123456789/mcp-server-queueint
default:"10"
Maximum messages to retrieve per poll (1-10).
int
default:"20"
Long polling duration (0-20) for SQS.
int
default:"30"
Seconds a message remains invisible after retrieval.
float
default:"5.0"
Seconds between queue polling attempts.
dict
Custom attributes to include with messages.
Client Configuration
Class:SnsSqsClientConfig
string
required
URL of the client’s SQS queue for receiving responses.Example:
https://sqs.us-east-1.amazonaws.com/123456789/mcp-client-queuestring
required
ARN of the SNS topic for publishing requests.Example:
arn:aws:sns:us-east-1:123456789:mcp-requestsstring
Unique client identifier. Auto-generated if not provided.
dict
Custom attributes to include with messages.