Amazon SageMaker Well-Architected MCP Server

Amazon SageMaker Well-Architected MCP Server

Provides tools to validate SageMaker workloads against the six pillars of the AWS Well-Architected Framework, returning findings with severity levels and recommendations.

Category
访问服务器

README

Amazon SageMaker Well-Architected MCP Server

The Amazon SageMaker Well-Architected MCP server provides agents with tools to validate SageMaker workloads against all six AWS Well-Architected Framework pillars: Security, Reliability, Performance Efficiency, Cost Optimization, Operational Excellence, and Sustainability.

Available Features

Well-Architected Validation

Provides comprehensive tools for validating SageMaker resources (endpoints, training jobs, notebook instances, and models) against AWS best practices across all six Well-Architected pillars. Each validation returns findings with severity levels and actionable recommendations. See the validators documentation for detailed information on the supported tools.

Prerequisites

Quickstart

This quickstart guide walks you through the steps to configure the Amazon SageMaker Well-Architected MCP Server for use with Kiro, Cursor, and other compatible IDEs.

Kiro Cursor VS Code
Add to Kiro Install MCP Server Install on VS Code

Set up Kiro

See the Kiro IDE documentation or the Kiro CLI documentation for details.

For global configuration, edit ~/.kiro/settings/mcp.json. For project-specific configuration, edit .kiro/settings/mcp.json in your project directory.

The example below includes the --allow-sensitive-data-access flag for accessing detailed resource configurations:

For Mac/Linux:

```
{
  "mcpServers": {
    "awslabs.sagemaker-wa-mcp-server": {
      "command": "uvx",
      "args": [
        "awslabs.sagemaker-wa-mcp-server@latest",
        "--allow-sensitive-data-access"
      ],
      "env": {
        "FASTMCP_LOG_LEVEL": "ERROR"
      },
      "autoApprove": [],
      "disabled": false
    }
  }
}
```

For Windows:

```
{
  "mcpServers": {
    "awslabs.sagemaker-wa-mcp-server": {
      "command": "uvx",
      "args": [
        "--from",
        "awslabs.sagemaker-wa-mcp-server@latest",
        "awslabs.sagemaker-wa-mcp-server.exe",
        "--allow-sensitive-data-access"
      ],
      "env": {
        "FASTMCP_LOG_LEVEL": "ERROR"
      },
      "autoApprove": [],
      "disabled": false
    }
  }
}
```

Verify your setup by running the /tools command in the Kiro CLI to see the available SageMaker Well-Architected MCP tools.

This server provides comprehensive Well-Architected validation for SageMaker workloads with 51 checks across all six pillars. For broader AWS API access and documentation lookup, you can also use AWS API MCP Server and AWS Documentation MCP Server.

Configurations

Arguments

The args field in the MCP server definition specifies the command-line arguments passed to the server when it starts. These arguments control how the server is executed and configured. For example:

For Mac/Linux:

{
  "mcpServers": {
    "awslabs.sagemaker-wa-mcp-server": {
      "command": "uvx",
      "args": [
        "awslabs.sagemaker-wa-mcp-server@latest",
        "--allow-sensitive-data-access"
      ],
      "env": {
        "AWS_PROFILE": "your-profile",
        "AWS_REGION": "us-east-1"
      }
    }
  }
}

For Windows:

{
  "mcpServers": {
    "awslabs.sagemaker-wa-mcp-server": {
      "command": "uvx",
      "args": [
        "--from",
        "awslabs.sagemaker-wa-mcp-server@latest",
        "awslabs.sagemaker-wa-mcp-server.exe",
        "--allow-sensitive-data-access"
      ],
      "env": {
        "AWS_PROFILE": "your-profile",
        "AWS_REGION": "us-east-1"
      }
    }
  }
}

Command Format

The command format differs between operating systems:

For Mac/Linux:

  • awslabs.sagemaker-wa-mcp-server@latest - Specifies the latest package/version specifier for the MCP client config.

For Windows:

  • --from awslabs.sagemaker-wa-mcp-server@latest awslabs.sagemaker-wa-mcp-server.exe - Windows requires the --from flag to specify the package and the .exe extension.

--allow-sensitive-data-access (optional)

Enables access to sensitive data such as detailed resource configurations, tags, and endpoint config details. This flag is required for tools that access potentially sensitive information.

  • Default: true (Access to sensitive data is allowed by default)
  • Example: remove --allow-sensitive-data-access from the args list in your MCP server definition to disable it.

Environment variables

The env field in the MCP server definition allows you to configure environment variables that control the behavior of the SageMaker Well-Architected MCP server. For example:

{
  "mcpServers": {
    "awslabs.sagemaker-wa-mcp-server": {
      "env": {
        "FASTMCP_LOG_LEVEL": "ERROR",
        "AWS_PROFILE": "my-profile",
        "AWS_REGION": "us-west-2"
      }
    }
  }
}

FASTMCP_LOG_LEVEL (optional)

Sets the logging level verbosity for the server.

  • Valid values: "DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"
  • Default: "WARNING"
  • Example: "FASTMCP_LOG_LEVEL": "ERROR"

AWS_PROFILE (optional)

Specifies the AWS profile to use for authentication.

  • Default: None (If not set, uses default AWS credentials).
  • Example: "AWS_PROFILE": "my-profile"

AWS_REGION (optional)

Specifies the AWS region where SageMaker resources are validated, which will be used for all AWS service operations.

  • Default: None (If not set, uses default AWS region).
  • Example: "AWS_REGION": "us-west-2"

Security & Permissions

Features

The SageMaker Well-Architected MCP Server implements the following security features:

  1. AWS Authentication: Uses AWS credentials from the environment for secure authentication.
  2. SSL Verification: Enforces SSL verification for all AWS API calls.
  3. Least Privilege: Only requires read/describe/list permissions on SageMaker resources.
  4. User Agent Tracking: All API calls include a custom user agent for auditability.

Considerations

When using the SageMaker Well-Architected MCP Server, consider the following:

  • AWS Credentials: The server needs permission to describe and list SageMaker resources.
  • Network Security: Ensure the environment running the server has network access to AWS APIs.
  • Authentication: Use appropriate authentication mechanisms for AWS resources.
  • Authorization: Configure IAM with read-only SageMaker permissions.
  • Data Protection: Resource configurations may contain sensitive information.
  • Logging and Monitoring: Enable logging and monitoring for SageMaker resources.

Permissions

The SageMaker Well-Architected MCP Server performs only read-only operations, which is recommended and considered generally safe for production environments. Below are the tools available:

  • Read-only mode (default): validate_sagemaker_resource, validate_all_endpoints, list_sagemaker_resources, get_pillar_details.

autoApprove (optional)

An array within the MCP server definition that lists tool names to be automatically approved by the MCP Server client, bypassing user confirmation for those specific tools. Since all operations are read-only, auto-approving all tools is safe. For example:

For Mac/Linux:

{
  "mcpServers": {
    "awslabs.sagemaker-wa-mcp-server": {
      "command": "uvx",
      "args": [
        "awslabs.sagemaker-wa-mcp-server@latest"
      ],
      "env": {
        "AWS_PROFILE": "sagemaker-wa-mcp-readonly-profile",
        "AWS_REGION": "us-east-1",
        "FASTMCP_LOG_LEVEL": "INFO"
      },
      "autoApprove": [
        "validate_sagemaker_resource",
        "validate_all_endpoints",
        "list_sagemaker_resources",
        "get_pillar_details"
      ]
    }
  }
}

For Windows:

{
  "mcpServers": {
    "awslabs.sagemaker-wa-mcp-server": {
      "command": "uvx",
      "args": [
        "--from",
        "awslabs.sagemaker-wa-mcp-server@latest",
        "awslabs.sagemaker-wa-mcp-server.exe"
      ],
      "env": {
        "AWS_PROFILE": "sagemaker-wa-mcp-readonly-profile",
        "AWS_REGION": "us-east-1",
        "FASTMCP_LOG_LEVEL": "INFO"
      },
      "autoApprove": [
        "validate_sagemaker_resource",
        "validate_all_endpoints",
        "list_sagemaker_resources",
        "get_pillar_details"
      ]
    }
  }
}

Role Scoping Recommendations

In accordance with security best practices, we recommend the following:

  1. Create dedicated IAM roles to be used by the SageMaker Well-Architected MCP Server with the principle of "least privilege."
  2. Use read-only roles since the server only performs describe and list operations.
  3. Implement resource tagging to limit actions to specific resources.
  4. Enable AWS CloudTrail to audit all API calls made by the server.
  5. Regularly review the permissions granted to the server's IAM role.
  6. Use IAM Access Analyzer to identify unused permissions that can be removed.

Sensitive Information Handling

IMPORTANT: Do not pass secrets or sensitive information via allowed input mechanisms:

  • Do not include secrets or credentials in tool parameters.
  • Do not pass sensitive information directly in the prompt to the model.
  • Avoid using MCP tools for creating secrets, as this would require providing the secret data to the model.

Instead of passing secrets through MCP:

  • Use AWS Secrets Manager or Parameter Store to store sensitive information.
  • Configure proper IAM roles for service accounts.
  • Use IAM roles for service accounts (IRSA) for AWS service access.

File System Access and Operating Mode

Important: This MCP server is intended for STDIO mode only as a local server using a single user's credentials. The server runs with the same permissions as the user who started it and has complete access to the file system.

Security and Access Considerations

  • Read-Only Operations: The server does not write to the file system or modify any AWS resources
  • Host Credentials: The server uses the host's AWS credentials configuration
  • Do Not Modify for Network Use: This server is designed for local STDIO use only; network operation introduces additional security risks

General Best Practices

  • Resource Naming: Use descriptive names for SageMaker resources.
  • Error Handling: Check for errors in tool responses and handle them appropriately.
  • Prioritize Findings: Address HIGH severity findings first, then MEDIUM, then LOW.
  • Regular Audits: Run validations periodically to catch configuration drift.
  • Monitoring: Monitor resource status regularly.
  • Security: Follow AWS security best practices for SageMaker resources.

General Troubleshooting

  • Permission Errors: Verify that your AWS credentials have the necessary read-only SageMaker permissions.
  • Resource Not Found: Verify the resource name and region are correct.
  • SageMaker API Errors: Verify that the SageMaker resources exist and are accessible.
  • Network Issues: Check that the environment has network access to AWS APIs.
  • Client Errors: Verify that the MCP client is configured correctly.
  • Log Level: Increase the log level to DEBUG for more detailed logs.

For service-specific issues, consult the relevant documentation:

Version

Current MCP server version: 0.1.0

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选