RA

rafalwilinski/aws-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

296 stars 33 forks 质量 54 趋势 0

rafalwilinski/aws-mcp 是从 https://github.com/rafalwilinski/aws-mcp. 导入的 MCP 服务器候选

概览

rafalwilinski/aws-mcp 是从 https://github.com/rafalwilinski/aws-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

一个模型上下文协议(MCP)服务器,使像Claude这样的AI助手能够与你的AWS环境交互。这允许在对话中自然语言查询和管理你的AWS资源。可以想象更好的亚马逊Q替代方案。

特色

  • 🔍 使用自然语言查询和修改AWS资源
  • ☁️ 支持多个AWS配置文件和单点登录认证
  • 🌐 多区域支持
  • 🔐 安全凭证处理(不向外部服务暴露凭证,使用本地凭证)
  • 🏃 ♂️ 使用AWS凭证进行本地执行

先修条件

  • Node.js
  • Claude桌面
  • 本地配置的AWS凭证(~/.aws/目录)

安装

  1. 克隆仓库:

  2. 安装依赖:

用途

  1. 打开 Claude 桌面应用,进入设置 -> 开发者 -> 编辑配置

  2. 在您的claude_desktop_config.json中添加以下条目:

重要提示:将 /Users/ /aws-mcp 替换为你项目目录的实际路径。

  1. 重启Claude桌面应用。你应该看看这个:

  2. 首先选择一个AWS配置文件,或通过以下问题进入操作:

  • “列出可用的AWS配置文件”
  • “在我的账户中列出所有EC2实例”

本页由 AI 翻译,技术细节请以原文为准。

README

AWS MCP

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.

Features

  • 🔍 Query and modify AWS resources using natural language
  • ☁️ Support for multiple AWS profiles and SSO authentication
  • 🌐 Multi-region support
  • 🔐 Secure credential handling (no credentials are exposed to external services, your local credentials are used)
  • 🏃‍♂️ Local execution with your AWS credentials

Prerequisites

Installation

  1. Clone the repository:
git clone https://github.com/RafalWilinski/aws-mcp
cd aws-mcp
  1. Install dependencies:
pnpm install
# or
npm install

Usage

  1. Open Claude desktop app and go to Settings -> Developer -> Edit Config

  1. Add the following entry to your claude_desktop_config.json:
{
  "mcpServers": {
    "aws": {
      "command": "npm", // OR pnpm
      "args": [
        "--silent",
        "--prefix",
        "/Users//aws-mcp",
        "start"
      ]
    }
  }
}

Important: Replace /Users//aws-mcp with the actual path to your project directory.

  1. Restart Claude desktop app. You should see this:

  1. Start by selecting an AWS profile or jump to action by asking:
    • “List available AWS profiles”
    • “List all EC2 instances in my account”
    • “Show me S3 buckets with their sizes”
    • “What Lambda functions are deployed in us-east-1?”
    • “List all ECS clusters and their services”

Using with nvm

Build from source first and add following config:

{
  "mcpServers": {
    "aws": {
      "command": "/Users//.nvm/versions/node/v20.10.0/bin/node",
      "args": [
        "/aws-mcp/node_modules/tsx/dist/cli.mjs",
        "/aws-mcp/index.ts",
        "--prefix",
        "/aws-mcp",
        "start"
      ]
    }
  }
}

Troubleshooting

To see logs:

tail -n 50 -f ~/Library/Logs/Claude/mcp-server-aws.log
# or
tail -n 50 -f ~/Library/Logs/Claude/mcp.log

Features in Development

  • [ ] MFA support
  • [ ] Cache SSO credentials to prevent from refreshing them too eagerly
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "aws": { "command": "npm", // OR pnpm "args": [ "--silent", "--prefix", "/Users/<YOUR USERNAME>/aws-mcp", "start" ] } } }