Skip to main content
Glama

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.

AWS MCP

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

Related MCP server: AWS MCP Server

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

Claude Settings

  1. Add the following entry to your claude_desktop_config.json:

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

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

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

Claude MCP Connection Status

  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/<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"
      ]
    }
  }
}

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

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
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers