Skip to main content

A simple implementation of an AWS CLI MCP server with read/write tools for executing AWS CLI commands

Project description

AWS CLI MCP Server

A simple implementation of an AWS CLI MCP server.

Overview

This MCP server provides a bridge to execute AWS CLI commands through two main tools:

  • aws_cli_read: For read-only AWS operations (listing resources, describing configurations, etc.)
  • aws_cli_write: For write operations (creating/modifying/deleting AWS resources, pricing queries)

Features

  • Execute AWS CLI commands safely through MCP tools
  • Separate read and write permissions for better security control
  • Built-in timeout protection (5 minutes)
  • Error handling and output capture
  • Support for complex bash scripts and command consolidation

Usage

The server exposes two tools that can execute AWS CLI commands:

  1. Read Operations: Use aws_cli_read for queries and listing operations
  2. Write Operations: Use aws_cli_write for modifications and resource management

Both tools require:

  • script: The AWS CLI command or bash script to execute
  • reasoning: Explanation for why the operation is needed

AWS SSO Configuration

To use this server with AWS IAM Identity Center (SSO), you'll need to configure your AWS CLI with SSO authentication first follow this guide.

Prerequisites

  1. Install the AWS CLI (version 2.22.0+ recommended)
  2. Have access to AWS IAM Identity Center through your organization
  3. Gather your SSO Start URL and SSO Region from your AWS access portal

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_cli_mcp_server-1.0.0.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_cli_mcp_server-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file aws_cli_mcp_server-1.0.0.tar.gz.

File metadata

  • Download URL: aws_cli_mcp_server-1.0.0.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for aws_cli_mcp_server-1.0.0.tar.gz
Algorithm Hash digest
SHA256 180df7a143df24214c8df003c89864570fab7468d1934696dcbf6b3d2e53e6ea
MD5 06d1c2e8211a4028ceef326eac589cce
BLAKE2b-256 4d56f036dc8c7a7fe727cb38139e923347eb7a609f1037465d98aef63b6af8a4

See more details on using hashes here.

File details

Details for the file aws_cli_mcp_server-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_cli_mcp_server-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 556bebdffbc01216ea5ae0ae8764cb4e63c849671287f117e9c381f4297aa1ce
MD5 aa430bfe637a6afa933f425f96ae4793
BLAKE2b-256 af4cafbf475cffa15f484eac79686308fef761d6c7b88c253f4cbaae80154b74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page