Aws Resources MCP Server

Enables querying of AWS resources using boto3 code snippets via a Model Context Protocol (MCP) server.

Local serverstdioPython 24

What is the Aws Resources MCP server?

Enables querying of AWS resources using boto3 code snippets via a Model Context Protocol (MCP) server. Exposed over MCP by the aws resources mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

What it actually does

A Model Context Protocol (MCP) server implementation that provides running generated python code to query any AWS resources through boto3.

  • Runs directly from a Docker image - no git clone needed
  • Uses Python and boto3 for better stability
  • Makes it easy for Python folks to contribute
  • Includes proper sandboxing for code execution
  • Keeps everything containerized and clean

Its toolset

Everything the assistant can do here goes through one of these:

  • Input — * code_snippet (string): Python code using boto3 to query AWS resources
  • Operations — len, max, min, sorted, filter, map, sum, any, all
  • Other — print, import
  • Resources — The Resources tool exposed by this server
  • Tools — The Tools tool exposed by this server
  • Prerequisites — You'll need AWS credentials with appropriate permissions to query AWS resources. You can obtain these by: 1. Creating an IAM user in your AWS account

Adding it to your client

@smithery/cli on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Configuration

You will need 6 environment variables: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, AWS_DEFAULT_REGION, ACCESS_KEY_ID, SECRET_ACCESS_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

You'll need AWS credentials with appropriate permissions to query AWS resources. You can obtain these by: 1. Creating an IAM user in your AWS account 2. Generating access keys for programmatic access 3. Ensuring the IAM user has necessary permissions for the AWS services you want to query The following environment variables are required: - AWS_ACCESS_KEY_ID: Your AWS access key -

When to reach for it

Plenty of cloud and infrastructure servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Aws Resources's toolset — Input, Operations, Other and 3 more — is a fair guide to whether it matches your workflow. It is maintained by baryhuang; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the aws resources mcp server does with a few real requests.

Available tools

ToolWhat it does
Input* code_snippet (string): Python code using boto3 to query AWS resources
Operationslen, max, min, sorted, filter, map, sum, any, all
Otherprint, __import__
ResourcesThe Resources tool exposed by this server.
ToolsThe Tools tool exposed by this server.
PrerequisitesYou'll need AWS credentials with appropriate permissions to query AWS resources. You can obtain these by: 1. Creating an IAM user in your AWS account 2. Generating access keys for programmatic access 3. Ensuring the IAM

How to install the Aws Resources MCP server

{
  "mcpServers": {
    "aws-resources": {
      "command": "npx",
      "args": ["-y", "@smithery/cli"],
      "env": {
        "AWS_ACCESS_KEY_ID": "your-value",
        "AWS_SECRET_ACCESS_KEY": "your-value",
        "AWS_SESSION_TOKEN": "your-value",
        "AWS_DEFAULT_REGION": "your-value",
        "ACCESS_KEY_ID": "your-value",
        "SECRET_ACCESS_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

You'll need AWS credentials with appropriate permissions to query AWS resources. You can obtain these by: 1. Creating an IAM user in your AWS account 2. Generating access keys for programmatic access 3. Ensuring the IAM user has necessary permissions for the AWS services you want to query The following environment variables are required: - AWS_ACCESS_KEY_ID: Your AWS access key -

VariableDescriptionRequired
AWS_ACCESS_KEY_IDCredential the server authenticates with.Yes
AWS_SECRET_ACCESS_KEYCredential the server authenticates with.Yes
AWS_SESSION_TOKENCredential the server authenticates with.Yes
AWS_DEFAULT_REGIONConfiguration value read at startup.Optional
ACCESS_KEY_IDCredential the server authenticates with.Yes
SECRET_ACCESS_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Aws Resources to Input.
  • Use Aws Resources to Operations.
  • Use Aws Resources to Other.

Frequently asked questions

It offers a more flexible and customizable approach than AWS Chatbot, avoiding its limitations and pricing tiers. It also addresses setup and stability issues found in other open-source solutions by using Docker and Python.