loading…
Search for a command to run...
loading…
Provides comprehensive access to AWS Trusted Advisor checks and recommendations through both legacy and modern APIs, with support for AWS Organizations.
Provides comprehensive access to AWS Trusted Advisor checks and recommendations through both legacy and modern APIs, with support for AWS Organizations.
A Model Context Protocol (MCP) server that provides comprehensive access to AWS Trusted Advisor through both legacy Support API and modern TrustedAdvisor API endpoints.
Ask DeepWiki Conventional Commits
This server implements the Model Context Protocol to provide standardized access to AWS Trusted Advisor functionality, including:
list-trusted-advisor-checksLists all available Trusted Advisor checks using the legacy Support API.
trusted-advisor://checkslanguage, awsAccountId, regionget-trusted-advisor-recommendationGets a specific recommendation using the legacy Support API.
trusted-advisor://recommendations/{checkId}checkId, language, awsAccountIdlist-checksList a filterable set of Trusted Advisor Checks.
trusted-advisor://checks/listawsService, pillar, source, maxResults, nextToken, language, awsAccountId, regionnextTokenget-recommendationGet a specific Trusted Advisor Recommendation.
trusted-advisor://recommendations/{recommendationIdentifier}recommendationIdentifier, language, awsAccountId, regionlist-recommendationsList a filterable set of Trusted Advisor Recommendations.
trusted-advisor://recommendationsawsService, pillar, source, status, maxResults, nextToken, language, awsAccountId, regionnextTokenlist-recommendation-resourcesList Resources of a Trusted Advisor Recommendation.
trusted-advisor://recommendations/{recommendationIdentifier}/resourcesrecommendationIdentifier, status, exclusionStatus, maxResults, nextToken, language, awsAccountId, regionnextTokenupdate-recommendation-lifecycleUpdate the lifecycle of a Trusted Advisor Recommendation.
trusted-advisor://recommendations/{recommendationIdentifier}/lifecyclerecommendationIdentifier, lifecycleStage, updateReason, updateReasonCode, language, awsAccountId, regionpending_response, in_progress, dismissed, resolvedbatch-update-recommendation-resource-exclusionUpdate one or more exclusion status for a list of recommendation resources.
trusted-advisor://recommendations/{recommendationIdentifier}/resource-exclusionsrecommendationIdentifier, resourceExclusions (array), language, awsAccountId, regionlist-organization-recommendationsList a filterable set of Recommendations within an Organization.
trusted-advisor://organizations/{organizationId}/recommendationsorganizationId, awsService, pillar, source, status, maxResults, nextToken, language, awsAccountId, regionget-organization-recommendationGet a specific recommendation within an AWS Organizations organization.
trusted-advisor://organizations/{organizationId}/recommendations/{recommendationIdentifier}organizationId, recommendationIdentifier, language, awsAccountId, regionlist-organization-recommendation-accountsLists the accounts that own the resources for an organization aggregate recommendation.
trusted-advisor://organizations/{organizationId}/recommendations/{recommendationIdentifier}/accountsorganizationId, recommendationIdentifier, maxResults, nextToken, language, awsAccountId, regionlist-organization-recommendation-resourcesList Resources of a Recommendation within an Organization.
trusted-advisor://organizations/{organizationId}/recommendations/{recommendationIdentifier}/resourcesorganizationId, recommendationIdentifier, status, exclusionStatus, affectedAccountId, maxResults, nextToken, language, awsAccountId, regionupdate-organization-recommendation-lifecycleUpdate the lifecycle of a Recommendation within an Organization.
trusted-advisor://organizations/{organizationId}/recommendations/{recommendationIdentifier}/lifecycleorganizationId, recommendationIdentifier, lifecycleStage, updateReason, updateReasonCode, language, awsAccountId, regionAll AWS configuration can be managed through environment variables:
# AWS Credentials
AWS_ACCESS_KEY_ID=your_access_key
AWS_SECRET_ACCESS_KEY=your_secret_key
AWS_SESSION_TOKEN=your_session_token # if using temporary credentials
# AWS Configuration
AWS_REGION=us-east-1 # Default region
AWS_PROFILE=your_profile # AWS profile to use
# Trusted Advisor specific
AWS_SUPPORT_REGION=us-east-1 # Support API only available in us-east-1
The server requires the following AWS permissions:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"support:DescribeTrustedAdvisorChecks",
"support:DescribeTrustedAdvisorCheckResult",
"trustedadvisor:ListChecks",
"trustedadvisor:GetRecommendation",
"trustedadvisor:ListRecommendations",
"trustedadvisor:ListRecommendationResources",
"trustedadvisor:UpdateRecommendationLifecycle",
"trustedadvisor:BatchUpdateRecommendationResourceExclusion",
"trustedadvisor:ListOrganizationRecommendations",
"trustedadvisor:GetOrganizationRecommendation",
"trustedadvisor:ListOrganizationRecommendationAccounts",
"trustedadvisor:ListOrganizationRecommendationResources",
"trustedadvisor:UpdateOrganizationRecommendationLifecycle"
],
"Resource": "*"
}
]
}
Different features require different AWS Support plans:
The server implements comprehensive error handling:
# Install dependencies
pnpm install
# Build the project
pnpm run build
# Run the server
pnpm start
This server is designed to be used with MCP-compatible clients. The server communicates via stdio and provides structured JSON responses for all operations.
Add this server to your Claude Desktop configuration file:
Location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%/Claude/claude_desktop_config.json (Windows)
{
"mcpServers": {
"trusted-advisor": {
"command": "node",
"args": ["/path/to/mcp-trustedadvisor-server/build/main.js"],
"env": {
"AWS_REGION": "us-east-1",
"AWS_ACCESS_KEY_ID": "your_access_key",
"AWS_SECRET_ACCESS_KEY": "your_secret_key"
}
}
}
}
Configure the MCP server in your Amazon Q Developer settings:
{
"mcp": {
"servers": {
"trusted-advisor": {
"command": "node",
"args": ["/path/to/mcp-trustedadvisor-server/build/main.js"],
"environment": {
"AWS_REGION": "us-east-1",
"AWS_PROFILE": "your-aws-profile"
}
}
}
}
}
For any MCP-compatible client, use these parameters:
# Command to run the server
node /path/to/mcp-trustedadvisor-server/build/main.js
# Required environment variables
AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=your_access_key
AWS_SECRET_ACCESS_KEY=your_secret_key
# Optional environment variables
AWS_PROFILE=your-profile
AWS_SESSION_TOKEN=your_session_token
Once configured, you can ask your AI client to:
The AI client will automatically use the appropriate MCP resources based on your requests and provide structured responses with the Trusted Advisor data.
The server follows Clean Code principles with:
This project is licensed under the MIT License - see the LICENSE file for details.
Выполни в терминале:
claude mcp add mcp-trustedadvisor-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.