Skip to main content
Glama

AWS MCP

ClaudeのようなAIアシスタントがAWS環境と対話できるようにするモデルコンテキストプロトコル(MCP)サーバー。これにより、会話中に自然言語によるクエリとAWSリソースの管理が可能になります。Amazon Qのより良い代替手段を考えてみてください。

AWS MCP

特徴

  • 🔍 自然言語を使用して AWS リソースをクエリおよび変更する

  • ☁️ 複数の AWS プロファイルと SSO 認証のサポート

  • 🌐 マルチリージョンサポート

  • 🔐 安全な資格情報の取り扱い(資格情報は外部サービスに公開されず、ローカルの資格情報が使用されます)

  • 🏃‍♂️ AWS 認証情報を使用したローカル実行

Related MCP server: AWS MCP Server

前提条件

インストール

  1. リポジトリをクローンします。

git clone https://github.com/RafalWilinski/aws-mcp
cd aws-mcp
  1. 依存関係をインストールします:

pnpm install
# or
npm install

使用法

  1. Claudeデスクトップアプリを開き、「設定」->「開発者」->「設定の編集」に移動します。

クロード・セッティングス

  1. claude_desktop_config.jsonに次のエントリを追加します。

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

重要: /Users/<YOUR USERNAME>/aws-mcpプロジェクト ディレクトリへの実際のパスに置き換えます。

  1. Claudeデスクトップアプリを再起動します。次のような画面が表示されます。

クロードMCP接続ステータス

  1. AWS プロファイルを選択して開始するか、次の質問をしてアクションに進みます。

    • 「利用可能なAWSプロファイルの一覧」

    • 「アカウント内のすべての EC2 インスタンスを一覧表示する」

    • 「S3 バケットとそのサイズを表示」

    • 「us-east-1 にデプロイされている Lambda 関数は何ですか?」

    • 「すべての ECS クラスターとそのサービスを一覧表示する」

nvmで使用する

まずソースからビルドし、次の設定を追加します。

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

トラブルシューティング

ログを表示するには:

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

開発中の機能

  • [ ] MFAサポート

  • [ ] SSO認証情報をキャッシュして、頻繁に更新されないようにする

Available Tools

3 tools
list-credentialsB

List all AWS credentials/configs/profiles that are configured/usable on this machine

Inputs: no named parameters.

run-aws-codeC

Run AWS code

Inputs: code (required), reasoning (required), profileName, region.

select-profileA

Selects AWS profile to use for subsequent interactions. If needed, does SSO authentication

Inputs: profile (required), region.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: list-credentials handles credential enumeration, run-aws-code executes AWS code, and select-profile manages profile selection and authentication. An agent can easily differentiate between these three functions.

    Naming Consistency5/5

    All tool names follow a consistent verb-noun pattern with hyphens (list-credentials, run-aws-code, select-profile), making them predictable and readable throughout the set.

    Tool Count2/5

    With only 3 tools, the server feels under-scoped for AWS operations, which typically involve many services and actions. This limited set may not support common workflows like managing resources (e.g., S3, EC2) or performing CRUD operations, making it insufficient for the domain.

    Completeness1/5

    The tool set is severely incomplete for AWS functionality, lacking core operations such as creating, updating, or deleting resources, querying service status, or handling specific AWS services. This will cause significant agent failures in typical AWS tasks.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers