Package Managers
- uv (Recommended)
- pip
- poetry
- pipenv
uv is a fast Python package manager that we recommend for asyncmcp development.
Requirements
asyncmcp requires Python 3.10 or higher.
Core Dependencies
asyncmcp automatically installs these core dependencies:- mcp - Model Context Protocol implementation
- anyio - Async runtime support
- httpx - HTTP client for webhook transport
- boto3 - AWS SDK for SQS/SNS transports (optional)
- starlette - ASGI framework for webhook server
Optional Dependencies
Depending on your transport choice, you may need additional packages:AWS Transports (SQS, SNS+SQS)
AWS Transports (SQS, SNS+SQS)
Webhook Transport
Webhook Transport
Development Tools
Development Tools
Verify Installation
After installation, verify asyncmcp is properly installed:Development Setup
For contributing to asyncmcp or running examples:1
Clone the Repository
2
Install Dependencies
3
Install Pre-commit Hooks
Pre-commit hooks automatically format code and check for linting issues before commits.
4
Set Up LocalStack
LocalStack should be running on
http://localhost:4566
Environment Configuration
AWS Configuration
For AWS-based transports (SQS, SNS+SQS), configure your AWS credentials:- LocalStack (Development)
- AWS (Production)
.env
Python Path Configuration
If running examples directly:Docker Setup
For containerized deployments:Troubleshooting
ImportError: No module named 'asyncmcp'
ImportError: No module named 'asyncmcp'
Ensure asyncmcp is installed in your current environment:If not listed, reinstall:
boto3 not found
boto3 not found
AWS transports require boto3:
LocalStack connection refused
LocalStack connection refused
Ensure LocalStack is running:
Python version error
Python version error
asyncmcp requires Python 3.10+. Check your version:Use pyenv or similar to install a compatible version.