mcpField
A
aws-mcp-setup

aws-mcp-setup

github.com/aws-samplesCloud & DevOps5367 installsUpdated 9w ago
Repository

About aws-mcp-setup

aws-mcp-setup is a configuration guide for setting up AWS MCP tools for AI agents. It helps users choose between a full server for AWS API calls and documentation search, or a documentation-only server, then configure and verify the selected option.

Key features

  1. 01Check existing AWS MCP configuration
  2. 02Choose full or documentation-only setup
  3. 03Configure credentials and permissions
  4. 04Set region and read-only options
  5. 05Verify tools and troubleshoot setup

Use cases

  1. 01Enable AWS API calls for an AI agent
  2. 02Set up AWS documentation search without credentials
  3. 03Diagnose missing AWS MCP tools

MCP support

The guide explains how to configure two AWS MCP server options: one for AWS API calls and documentation search, and one for documentation search only. It also covers checking available tools and verifying the configuration.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aws-samples/sample-agent-skills-for-builders --skill aws-mcp-setup

After installing, type/aws-mcp-setupin Claude Code to confirm it loaded.

Bundled filesREADME.md

Details

From the project README

AWS MCP Server Configuration Guide

Overview

This guide helps you configure AWS MCP tools for AI agents. Two options are available:

OptionRequirementsCapabilities
Full AWS MCP ServerPython 3.10+, uvx, AWS credentialsExecute AWS API calls + documentation search
AWS Documentation MCPNoneDocumentation search only

Step 1: Check Existing Configuration

Before configuring, check if AWS MCP tools are already available using either method:

Method A: Check Available Tools (Recommended)

Look for these tool name patterns in your agent's available tools:

  • mcp__aws-mcp__* or mcp__aws__* → Full AWS MCP Server configured
  • mcp__*awsdocs*__aws___* → AWS Documentation MCP configured

How to check: Run /mcp command to list all active MCP servers.

Method B: Check Configuration Files

Agent tools use hierarchical configuration (precedence: local → project → user → enterprise):

ScopeFile LocationUse Case
Local.claude.json (in project)Personal/experimental
Project.mcp.json (project root)Team-shared
User~/.claude.jsonCross-project personal
EnterpriseSystem managed directoriesOrganization-wide

Check these files for mcpServers containing aws-mcp, aws, or awsdocs keys:

# Check project config
cat .mcp.json 2>/dev/null | grep -E '"(aws-mcp|aws|awsdocs)"'

# Check user config
cat ~/.claude.json 2>/dev/null | grep -E '"(aws-mcp|aws|awsdocs)"'

# Or use Claude CLI
claude mcp list

If AWS MCP is already configured, no further setup needed.

Step 2: Choose Configuration Method

Automatic Detection

Run these commands to determine which option to use:

# Check for uvx (requires Python 3.10+)
which uvx || echo "uvx not available"

# Check for valid AWS credentials
aws sts get-caller-identity || echo "AWS credentials not configured"
Option A: Full AWS MCP Server (Recommended)

Use when: uvx available AND AWS credentials valid

Prerequisites:

  • Python 3.10+ with uv package manager
  • AWS credentials configured (via profile, environment variables, or IAM role)

Required IAM Permissions:

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": [
      "aws-mcp:InvokeMCP",
      "aws-mcp:CallReadOnlyTool",
      "aws-mcp:CallReadWriteTool"
    ],
    "Resource": "*"
  }]
}

Configuration (add to your MCP settings):

{
  "mcpServers": {
    "aws-mcp": {
      "command": "uvx",
      "args": [
        "mcp-proxy-for-aws@latest",
        "https://aws-mcp.us-east-1.api.aws/mcp",
        "--metadata", "AWS_REGION=us-west-2"
      ]
    }
  }
}

Credential Configuration Options:

  1. AWS Profile (recommended for development):

    "args": [
      "mcp-proxy-for-aws@latest",
      "https://aws-mcp.us-east-1.api.aws/mcp",
      "--profile", "my-profile",
      "--metadata", "AWS_REGION=us-west-2"
    ]
    
  2. Environment Variables:

    "env": {
      "AWS_ACCESS_KEY_ID": "...",
      "AWS_SECRET_ACCESS_KEY": "...",
      "AWS_REGION": "us-west-2"
    }
    
  3. IAM Role (for EC2/ECS/Lambda): No additional config needed - uses instance credentials

Additional Options:

  • --region <region>: Override AWS region
  • --read-only: Restrict to read-only tools
  • --log-level <level>: Set logging level (debug, info, warning, error)

Reference: https://github.com/aws/mcp-proxy-for-aws

Option B: AWS Documentation MCP Server (No Auth)

Use when:

  • No Python/uvx environment
  • No AWS credentials
  • Only need documentation search (no API execution)

Configuration:

{
  "mcpServers": {
    "awsdocs": {
      "type": "http",
      "url": "https://knowledge-mcp.global.api.aws"
    }
  }
}

Step 3: Verification

After configuration, verify tools are available:

For Full AWS MCP:

  • Look for tools: mcp__aws-mcp__aws___search_documentation, mcp__aws-mcp__aws___call_aws

For Documentation MCP:

  • Look for tools: mcp__awsdocs__aws___search_documentation, mcp__awsdocs__aws___read_documentation

Troubleshooting

IssueCauseSolution
uvx: command not founduv not installedInstall with pip install uv or use Option B
AccessDenied errorMissing IAM permissionsAdd aws-mcp:* permissions to IAM policy
InvalidSignatureExceptionCredential issueCheck aws sts get-caller-identity
Tools not appearingMCP not startedRestart your agent after config change

Comments

Markdown supported