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-0.0.1.tar.gz (2.8 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-0.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aws_cli_mcp_server-0.0.1.tar.gz
  • Upload date:
  • Size: 2.8 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-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d24ff4e1383aa01ee389d00ac0f61c83624e4709e0c9ffdb6b9be9c305c1d434
MD5 d8944c562452bd41b682979100bfa7eb
BLAKE2b-256 c5bd9f6e7cd31684e2750af59d6d9b8ee1ed77fc6adaa3c591350790b99ae8a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_cli_mcp_server-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c21e14a38cc19a059734dc48895db567149bb645569c2c4fdef5edf183c06ab0
MD5 1a9dba1a08ea5d8de37d8c1c93ba73a1
BLAKE2b-256 d91f4d81de31a64c792b2565229163edcdaf8aa2b1b1f53d55c13cd3eceb088a

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