Secure SpamAssassin MCP server for email spam detection & rule testing.
2.8K
A secure, containerized Model Context Protocol (MCP) server that integrates SpamAssassin for defensive email security analysis. This server provides Claude Code with comprehensive email analysis capabilities while maintaining strict security boundaries.
Defensive Operations Only - This server exclusively provides security analysis capabilities:
# Pull the latest image from Docker Hub
docker pull btafoya/spamassassin-mcp:latest
# Run the container
docker run -d \
--name spamassassin-mcp \
-p 8081:8080 \
btafoya/spamassassin-mcp:latest
# Clone the repository
git clone https://github.com/btafoya/spamassassin-mcp.git
cd spamassassin-mcp
# Copy and customize configuration
cp .env.example .env
# Edit .env to customize ports and settings
# Start the containers
docker compose up -d
# Check health
docker compose logs spamassassin-mcp
| Variable | Default | Description |
|---|---|---|
SA_MCP_HOST_PORT | 8081 | Host port for container deployment |
SA_MCP_LOG_LEVEL | info | Logging level (debug, info, warn, error) |
SA_MCP_SERVER_BIND_ADDR | 0.0.0.0:8080 | Server bind address (container internal) |
SA_MCP_SPAMASSASSIN_HOST | localhost | SpamAssassin daemon host |
SA_MCP_SPAMASSASSIN_PORT | 783 | SpamAssassin daemon port |
SA_MCP_SPAMASSASSIN_THRESHOLD | 5.0 | Spam score threshold |
SA_MCP_SECURITY_MAX_EMAIL_SIZE | 10485760 | Max email size (10MB) |
The server includes comprehensive security measures:
scan_email - Analyze email content for spam probability and rule matchescheck_reputation - Check sender reputation and domain/IP blacklistsexplain_score - Detailed breakdown of spam score calculationget_config - Retrieve current SpamAssassin configuration and statustest_rules - Test custom rules against sample emails in a safe environmentThe container includes automated health checks:
# Check container health
docker exec spamassassin-mcp /usr/local/bin/health-check.sh
# View health status
docker ps
For detailed documentation, please visit the GitHub repository:
MIT License - See LICENSE file for details.
Content type
Image
Digest
sha256:9e71ba610…
Size
119 MB
Last updated
about 1 year ago
docker pull btafoya/spamassassin-mcp