Amazon SNS SQS MCP Server
raw JSON → 2.0.18 verified Fri May 01 auth: no python
A Model Context Protocol (MCP) server for Amazon SNS and SQS that provisions and manages messaging services. Version 2.0.18, requires Python >=3.10, maintained by AWS Labs.
pip install awslabs-amazon-sns-sqs-mcp-server Common errors
error ModuleNotFoundError: No module named 'awslabs_amazon_sns_sqs_mcp_server' ↓
cause Incorrect import path or package not installed.
fix
Install with
pip install awslabs-amazon-sns-sqs-mcp-server and verify available modules via python -c "import awslabs_amazon_sns_sqs_mcp_server". error Error: botocore.exceptions.NoCredentialsError: Unable to locate credentials ↓
cause AWS credentials not configured.
fix
Set AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_DEFAULT_REGION environment variables or configure ~/.aws/credentials.
Warnings
gotcha The package name on PyPI includes 'awslabs-' prefix but the module import path may differ; check the installed package for the exact module name. ↓
fix Run `pip show awslabs-amazon-sns-sqs-mcp-server` to see installed files, then import the correct module.
deprecated Older versions (pre-2.0) may have used a different CLI entry point. ↓
fix Use `mcp-server-sns-sqs` CLI command instead of deprecated `sns-sqs-mcp`.
breaking Version 2.0 changed the server startup method; direct Python API may have breaking changes. ↓
fix Check the README for updated programmatic usage; prefer CLI execution.
Imports
- mcp
import mcp
Quickstart
import os
import boto3
from mcp.server import Server
# Example: start the MCP server with AWS credentials
os.environ.setdefault('AWS_ACCESS_KEY_ID', 'your-access-key')
os.environ.setdefault('AWS_SECRET_ACCESS_KEY', 'your-secret-key')
os.environ.setdefault('AWS_DEFAULT_REGION', 'us-east-1')
# The server is typically run via CLI: mcp-server-sns-sqs
# Or programmatically: create and run an MCP server instance
# from awslabs_amazon_sns_sqs_mcp_server import Server as SnsSqsServer
# server = SnsSqsServer()
# server.run()
print('Server configured. Use the CLI tool to start.')