AWS CLI MCP Server

by IcyKallen

Integrations

  • Allows execution of AWS CLI commands through Node.js, enabling management of AWS resources like S3 buckets and EC2 instances directly from Claude.

  • Uses TypeScript to implement an MCP server that exposes AWS CLI functionality, providing tools to execute commands and retrieve service information for AWS services.

AWS CLI MCP 服务器

MCP(模型上下文协议)服务器可让您直接从 Claude 生成和执行 AWS CLI 命令。

特征

  • 通过 MCP 协议执行 AWS CLI 命令
  • 获取有关 AWS 服务的详细信息
  • 列出可用的 AWS 服务
  • 完全访问 AWS CLI 功能

工具

  • 执行AWS CLI 命令
    • 参数:
      • command :AWS 服务(例如 s3、ec2、lambda)
      • subcommand (可选):要执行的命令(例如 ls、describe-instances)
      • options (可选):命令选项作为键值对
  • get-service-details :获取有关特定 AWS 服务的详细信息
    • 参数:
      • service :AWS 服务名称(例如 s3、ec2、lambda)

资源

  • aws-services://list :列出可用的 AWS 服务

设置和安装

先决条件

  • Node.js(建议使用 v20 或更高版本)
  • npm 或 yarn
  • 已安装 AWS CLI 并使用凭证进行配置
  • TypeScript

本地安装

  1. 克隆此存储库:
git clone https://github.com/IcyKallen/aws-cli-mcp-server cd aws-cli-mcp-server
  1. 安装依赖项:
npm install
  1. 构建项目:
npm run build
  1. 确保已配置 AWS CLI:
aws configure
  1. 启动 MCP 服务器:
npm start

与 Claude Desktop 集成

将其添加到您的claude_desktop_config.json中:

构建项目后,您可以使用:

{ "mcpServers": { "aws-cli": { "command": "node", "args": [ "/path/to/aws-cli-mcp-server/dist/index.js" ] } } }

Claude 中的示例用法

列出 S3 存储桶

I need to list my S3 buckets.

创建 S3 存储桶

Create a new S3 bucket named "my-test-bucket" in the us-west-2 region.

获取 EC2 服务详细信息

What EC2 commands are available?

安全说明

  • 该服务器使用与您配置的 AWS 凭证相同的权限执行 AWS CLI 命令
  • 请谨慎选择可以访问此服务器的人
  • 考虑实施额外的身份验证以供生产使用

执照

MIT 许可证

-
security - not tested
F
license - not found
-
quality - not tested

一个 MCP 服务器,使 Claude 能够生成和执行 AWS CLI 命令,从而允许用户通过自然语言对话来管理 AWS 资源。

  1. Features
    1. Tools
      1. Resources
        1. Setup and Installation
          1. Prerequisites
          2. Local Installation
          3. Integration with Claude Desktop
        2. Example Usage in Claude
          1. List S3 Buckets
          2. Create an S3 Bucket
          3. Get EC2 Service Details
        3. Security Notes
          1. License

            Related MCP Servers

            • Amazon Web Services
              aws-mcp

              A
              security
              F
              license
              A
              quality
              A Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with your AWS environment. This allows for natural language querying and management of your AWS resources during conversations. Think of better Amazon Q alternative.
              Last updated 2 months ago
              3
              222
              TypeScript
              • Apple
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that enables Claude to execute Python code using boto3 to query and manage AWS resources directly from conversations.
              Last updated 23 days ago
              6
              Python
              MIT License
              • Linux
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server implementation that enables Claude to perform AWS operations on S3 and DynamoDB services through natural language commands.
              Last updated 25 days ago
              23
              92
              Python
              MIT License
              • Apple
            • -
              security
              A
              license
              -
              quality
              A lightweight service that enables AI assistants to execute AWS CLI commands through the Model Context Protocol (MCP), allowing AI tools to retrieve AWS documentation and interact with AWS services.
              Last updated 23 days ago
              57
              Python
              MIT License
              • Apple

            View all related MCP servers

            ID: cz5x56gtb8