AWS Trusted Advisorを活用した安全なAWSリソース最適化ツールと設定方法
The AWS Trusted Advisor MCP (Model Context Protocol) Server provides a robust framework for integrating AWS Trusted Advisor recommendations into AI applications, ensuring secure and efficient workflows. This platform automates the process of identifying low-utilization instances, proposing backup strategies via EBS snapshots, suggesting access key management adjustments, and recommending S3 bucket versioning improvements. The key benefit lies in its ability to leverage AWS resources through a standardized protocol, making it compatible with various AI applications like Claude Desktop, Continue, Cursor, etc.
The AWS Trusted Advisor MCP Server is equipped with several core features that significantly enhance the integration of AWS services into AI workflows:
Low-Utilization EC2 Instances: Detects and proposes stopping instances based on utilization metrics.
EBS Snapshots: Recommends creating snapshots for volumes lacking proper backups.
Exposed Access Keys: Identifies accessible IAM access keys and recommends deactivation.
S3 Bucket Versioning: Identifies S3 buckets without versioning enabled, suggesting improvements to ensure data protection.
These features enable a seamless connection between AWS services and AI applications, ensuring that best practices are followed across multiple tools and resources.
The architecture of the AWS Trusted Advisor MCP Server is designed around Model Context Protocol (MCP), providing a standardized API for interaction with various AWS tools. This protocol ensures that each MCP client can seamlessly request data, execute commands, or receive recommendations from the server without needing to understand AWS services in detail.
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
To install the AWS Trusted Advisor MCP Server, follow these steps:
# Clone the repository
git clone https://github.com/enomoto11/aws-trusted-advisor-mcp-server.git
cd aws-trusted-advisor-mcp-server
# Install dependencies
npm install
Run the server in development mode:
npm run dev
For running within a Docker container, use:
docker-compose up -d
docker-compose logs -f
docker-compose down
This project requires authentication via AWS SDK. You may configure this using one of the following methods:
.env File:
Create .env
at the root directory and add your credentials.
AWS_ACCESS_KEY_ID=your-access-key-id
AWS_SECRET_ACCESS_KEY=your-secret-access-key
AWS_SESSION_TOKEN=(optional)
AWS_REGION=us-east-1
AWS CLI Configuration:
aws configure
Environment Variables:
export AWS_ACCESS_KEY_ID=your-access-key-id
export AWS_SECRET_ACCESS_KEY=your-secret-access-key
export AWS_SESSION_TOKEN=(optional)
export AWS_REGION=us-east-1
The AWS Trusted Advisor MCP Server can be deployed in various real-world scenarios to optimize AI workflows:
# Detect low-utilization instances and propose stopping them
curl -X POST http://localhost:3001/execute \
-H "Content-Type: application/json" \
-d '{
"toolName": "low_utilization_ec2_instances",
"parameters": {
"region": "us-east-1",
"tagKey": "environment",
"tagValue": "dev"
}
}'
# Suggest creating EBS snapshots for backup purposes
curl -X POST http://localhost:3001/execute \
-H "Content-Type: application/json" \
-d '{
"toolName": "ebs_snapshot_recommendations",
"parameters": {
"region": "us-east-1"
}
}'
The AWS Trusted Advisor MCP Server is compatible with the following AI applications:
MCP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
The performance and compatibility matrix for the AWS Trusted Advisor MCP Server is designed to ensure seamless integration with various AI clients:
| Client | Resources | Tools | Prompts |
|----------------|-----------|-------|---------|
| Claude Desktop | ✅ | ✅ | ✅ | Full Support |
| Continue | ✅ | ✅ | ✅ | Full Support |
| Cursor | ❌ | ✅ | ❌ | Tools Only |
For more advanced configurations, consider the following:
Adding Custom Tools:
src/config.ts
.src/tools.ts
.implementTools
object.Security Measures:
Follow the installation guide provided in the documentation.
The supported clients include Claude Desktop, Continue, and Cursor.
Yes, as long as your application can communicate over Model Context Protocol (MCP).
The current tools supported are low-utilization EC2 instance management, EBS snapshot recommendations, and access key deactivation.
AWS_ACCESS_KEY_ID=your-access-key-id
AWS_SECRET_ACCESS_KEY=your-secret-access-key
Contributions are welcome! To contribute, follow these steps:
npm install
.For more information on the broader MCP ecosystem, refer to:
By integrating AWS Trusted Advisor with AI applications through this server, developers can leverage comprehensive AWS recommendations while maintaining flexibility and compatibility across various tools.
This comprehensive guide ensures that developers understand how to effectively integrate the AWS Trusted Advisor MCP Server into their AI workflows, providing detailed insights into its architecture, installation steps, configuration options, and integration capabilities.
Analyze search intent with MCP API for SEO insights and keyword categorization
Browser automation with Puppeteer for web navigation screenshots and DOM analysis
Explore Security MCP’s tools for threat hunting malware analysis and enhancing cybersecurity practices
Discover seamless cross-platform e-commerce link conversion and product promotion with Taobao MCP Service supporting Taobao JD and Pinduoduo integrations
Configure NOAA tides currents API tools via FastMCP server for real-time and historical marine data
Implement a customizable Python-based MCP server for Windsurf IDE with plugins and flexible configuration