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
伺服器配置
{
"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"
}
}
}
}