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.2.tar.gz (2.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-0.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aws_cli_mcp_server-0.0.2.tar.gz
  • Upload date:
  • Size: 2.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-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4d62a63366cb86ca1f9c3566156d39976fbd8f32f170ff5169799cb866043de2
MD5 114cce634a5594dc371dc1e53d90a3db
BLAKE2b-256 662c668e76d5f6c2ec26dd9627a803f3ee415ba5f0c3cdf3d0fadaf099a38938

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_cli_mcp_server-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a580b54a55c3df0004b3efb23f911091ddeca0004211866880f6d17fe4ea1762
MD5 42f7bb2ce511ebde38623ecbf426960a
BLAKE2b-256 6295646b6f87e1882bd738fb3b16ad45243f1488bb9944aabf3181266f386c82

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