Aws Mcp 服务器
概览
什么是 MCP Server AWS?
MCP Server AWS 是一种模型上下文协议服务器实现,旨在促进对 AWS 资源的操作。该服务器充当应用程序与 AWS 服务之间的桥梁,使开发人员能够无缝管理和交互各种 AWS 资源。通过利用模型上下文协议,它确保以结构化和高效的方式执行操作,从而增强整体用户体验。
MCP Server AWS 的特点
- 无缝集成:MCP Server AWS 能够与各种 AWS 服务轻松集成,使用户能够在无需大量配置的情况下管理资源。
- 可扩展性:设计用于处理不断增长的请求数量,能够高效扩展以满足应用程序的需求。
- 强大的安全性:采用最佳安全实践,确保数据和操作免受未经授权的访问。
- 用户友好的界面:为开发人员提供简单明了的界面,使其能够轻松对 AWS 资源执行操作。
- 开源:作为一个开源项目,允许开发人员贡献并增强其功能,促进社区驱动的开发方式。
如何使用 MCP Server AWS
- 安装:首先从 GitHub 克隆代码库,并按照文档中提供的安装说明进行操作。
- 配置:配置服务器设置以连接到您的 AWS 账户。这包括设置访问密钥和权限。
- 部署服务器:配置完成后,在您选择的环境中部署服务器,无论是本地还是云平台。
- 执行操作:使用提供的 API 端点对 AWS 资源执行操作。文档中包含示例和用例,帮助您入门。
- 监控和维护:定期监控服务器性能,并根据需要进行更新,以纳入新功能和安全补丁。
常见问题解答
Q1: MCP Server AWS 支持哪些编程语言?
A1: MCP Server AWS 主要使用 JavaScript 和 Node.js 构建,便于熟悉这些技术的开发人员使用。
Q2: 使用 MCP Server AWS 是否需要费用?
A2: 不,MCP Server AWS 是一个开源项目,意味着可以免费使用。然而,用户可能会产生与所使用的 AWS 资源相关的费用。
Q3: 我可以为 MCP Server AWS 项目贡献吗?
A3: 当然可以!欢迎贡献。您可以在 GitHub 代码库上提交问题、功能请求或拉取请求。
Q4: MCP Server AWS 如何处理安全性?
A4: 该服务器遵循最佳安全实践,包括使用 IAM 角色和策略限制对 AWS 资源的访问。此外,它支持对传输中和静态数据的加密。
Q5: 我在哪里可以找到 MCP Server AWS 的文档?
A5: 文档可在 GitHub 代码库中找到,提供有关安装、配置和使用的全面指南。
详情
AWS MCP Server
A Model Context Protocol server implementation for AWS operations that currently supports S3 and DynamoDB services. All operations are automatically logged and can be accessed through the audit://aws-operations
resource endpoint.
See a demo video here.
Listed as a Community Server within the MCP servers repository.
Running locally with the Claude desktop app
Installing via Smithery
To install AWS MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install mcp-server-aws --client claude
Manual Installation
- Clone this repository.
- Set up your AWS credentials via one of the two methods below. Note that this server requires an IAM user with RW permissions for your AWS account for S3 and DynamoDB.
- Environment variables:
AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
,AWS_REGION
(defaults tous-east-1
) - Default AWS credential chain (set up via AWS CLI with
aws configure
)
- Add the following to your
claude_desktop_config.json
file:
- On MacOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
- On Windows:
%APPDATA%/Claude/claude_desktop_config.json
"mcpServers": {
"mcp-server-aws": {
"command": "uv",
"args": [
"--directory",
"/path/to/repo/mcp-server-aws",
"run",
"mcp-server-aws"
]
}
}
- Install and open the Claude desktop app.
- Try asking Claude to do a read/write operation of some sort to confirm the setup (e.g. create an S3 bucket and give it a random name). If there are issues, use the Debugging tools provided in the MCP documentation here.
Available Tools
S3 Operations
- s3_bucket_create: Create a new S3 bucket
- s3_bucket_list: List all S3 buckets
- s3_bucket_delete: Delete an S3 bucket
- s3_object_upload: Upload an object to S3
- s3_object_delete: Delete an object from S3
- s3_object_list: List objects in an S3 bucket
- s3_object_read: Read an object's content from S3
DynamoDB Operations
Table Operations
- dynamodb_table_create: Create a new DynamoDB table
- dynamodb_table_describe: Get details about a DynamoDB table
- dynamodb_table_delete: Delete a DynamoDB table
- dynamodb_table_update: Update a DynamoDB table
Item Operations
- dynamodb_item_put: Put an item into a DynamoDB table
- dynamodb_item_get: Get an item from a DynamoDB table
- dynamodb_item_update: Update an item in a DynamoDB table
- dynamodb_item_delete: Delete an item from a DynamoDB table
- dynamodb_item_query: Query items in a DynamoDB table
- dynamodb_item_scan: Scan items in a DynamoDB table
Batch Operations
- dynamodb_batch_get: Batch get multiple items from DynamoDB tables
- dynamodb_item_batch_write: Batch write operations (put/delete) for DynamoDB items
- dynamodb_batch_execute: Execute multiple PartiQL statements in a batch
TTL Operations
- dynamodb_describe_ttl: Get the TTL settings for a table
- dynamodb_update_ttl: Update the TTL settings for a table
Server配置
{
"mcpServers": {
"mcp-server-aws": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--rishikavikondala--mcp-server-aws--mcp-server-aws",
"mcp-server-aws"
],
"env": {
"AWS_ACCESS_KEY_ID": "AWS_ACCESS_KEY_ID",
"AWS_SECRET_ACCESS_KEY": "AWS_SECRET_ACCESS_KEY",
"AWS_REGION": "AWS_REGION"
}
}
}
}