MCP Server for AWS Resources

by paihari

158 downloads
Not rated
GitHub

Description

# AWS MCP Server - SyntropAI Ecosystem **Part of the [SyntropAI MCP Ecosystem](https://github.com/paihari/documentation-syntropai)** - A unified multi-cloud abstraction framework. This MCP (Model Context Protocol) server provides secure, dynamic access to AWS services through…

About

# AWS MCP Server - SyntropAI Ecosystem **Part of the [SyntropAI MCP Ecosystem](https://github.com/paihari/documentation-syntropai)** - A unified multi-cloud abstraction framework. This MCP (Model Context Protocol) server provides secure, dynamic access to AWS services through the innovative SyntropAI abstraction…

Details

Author
paihari
Downloads
158
Categories
Cloud Service

- Universal AWS access – all services supported dynamically
- Secure code execution with AST validation and sandboxing
- Provider‑agnostic design using SyntropAI abstraction patterns
- Future‑proof architecture – new AWS services work automatically
- Docker containerization for production‑ready deployment
- Dynamic schema generation – runtime API documentation

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Server for AWS Resources
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Deploy via Docker: build the image with docker build -t mcp-server-aws-resources . and run it with an AWS profile (-e AWS_PROFILE=default -v ~/.aws:/root/.aws) or environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION). Integrate with Claude Desktop by adding a Docker‑based entry to claude_config.json. The server accepts Python code snippets that are validated and executed in a sandbox.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp server for aws resources": {
            "mcp-server-for-aws": {
                "command": "docker",
                "args": [
                    "build",
                    "-t",
                    "mcp-server-aws-resources",
                    "."
                ]
            }
        }
    }
}

McpServers

{
    "mcp-server-for-aws": {
        "command": "docker",
        "args": [
            "build",
            "-t",
            "mcp-server-aws-resources",
            "."
        ]
    }
}
# AWS MCP Server - SyntropAI Ecosystem **Part of the [SyntropAI MCP Ecosystem](https://github.com/paihari/documentation-syntropai)** - A unified multi-cloud abstraction framework. This MCP (Model Context Protocol) server provides secure, dynamic access to AWS services through the innovative SyntropAI abstraction layer. Unlike traditional hardcoded service catalogs, this server supports **any AWS service** through dynamic SDK access with built-in security sandboxing. ## 🚀 Key Features - **Universal AWS Access**: Dynamic access to all AWS services without hardcoded limitations - **Secure Code Execution**: AST-based validation and sandboxed execution environment - **Provider-Agnostic Design**: Built on SyntropAI's unified abstraction pattern - **Future-Proof Architecture**: Automatically supports new AWS services without updates - **Docker Containerization**: Production-ready deployment ## 🏗️ Architecture This server implements the SyntropAI abstraction pattern: ``` Claude Desktop → MCP Protocol → AWS MCP Server → SyntropAIBox → boto3 → AWS Services ``` ### Core Components: - **AWSSession**: Unified AWS credential management using `BaseSession` - **AWSResourceQuerier**: Secure query execution extending `BaseQuerier` - **AST Sandbox**: Safe code execution with timeout protection - **Dynamic Schema**: Runtime API documentation generation ## 📋 Prerequisites - Python 3.10 or higher - AWS credentials configured (via `~/.aws/credentials`, environment variables, or IAM roles) - Docker (recommended) - [SyntropAIBox](https://test.pypi.org/project/syntropaibox/) core library ## 🐳 Docker Installation (Recommended) ### Build and Run ```bash # Build the image docker build -t mcp-server-aws-resources . # Run with AWS profile docker run -i --rm \ -e AWS_PROFILE=default \ -v ~/.aws:/root/.aws \ mcp-server-aws-resources:latest # Run with environment variables docker run -i --rm \ -e AWS_ACCESS_KEY_ID=your_key \ -e AWS_SECRET_ACCESS_KEY=your_secret \ -e AWS_DEFAULT_REGION=us-east-1 \ mcp-server-aws-resources:latest ``` ## ⚙️ Claude Desktop Integration Add to your `claude_config.json`: ```json { "mcpServers": { "aws-resources": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "AWS_PROFILE=default", "-v", "/Users/yourusername/.aws:/root/.aws", "mcp-server-aws-resources:latest" ] } } } ``` ## 🛡️ Security Features ### AST-Based Validation - Prevents malicious code injection - Whitelisted imports and functions - Controlled execution environment ### Safe Execution - Timeout protection (2-second default) - Isolated namespace - JSON-serialized responses ### Example Safe Query ```python # User provides this code snippet: import boto3 ec2 = session.client('ec2') result = ec2.describe_instances() ``` The system: 1. ✅ Validates AST syntax 2. ✅ Checks allowed imports (`boto3` approved) 3. ✅ Executes in sandbox with timeout 4. ✅ Returns JSON-serialized results ## 🔧 Usage Examples ### List EC2 Instances ```python import boto3 ec2 = session.client('ec2') result = ec2.describe_instances() ``` ### Create S3 Bucket ```python import boto3 s3 = session.client('s3') result = s3.create_bucket(Bucket='my-unique-bucket-name') ``` ### Lambda Functions ```python import boto3 lambda_client = session.client('lambda') result = lambda_client.list_functions() ``` ## 🌟 SyntropAI Ecosystem Benefits ### Unified Multi-Cloud - Same patterns work across AWS, Azure, OCI - Consistent authentication and error handling - Provider-agnostic abstractions ### Non-Hardcoded Services - Supports **any** AWS service automatically - No service catalog limitations - Future services work immediately ### Enterprise Ready - Security-first design - Docker containerization - Comprehensive logging ## 🔗 Related Projects - **[Main Documentation](https://github.com/paihari/documentation-syntropai)**: Complete ecosystem overview and architecture - **[SyntropAIBox Core](https://test.pypi.org/project/syntropaibox/)**: Shared abstraction library - **[Azure MCP Server](../mcp-server-azure)**: Azure implementation - **[OCI MCP Server](../mcp-server-oci)**: Oracle Cloud implementation - **[Finviz MCP Server](../mcp_finviz)**: Financial data server ## 🏆 Technical Highlights This implementation showcases: - **Advanced Abstraction Patterns**: Clean separation of concerns - **Security Engineering**: AST validation and sandboxed execution - **Cloud Architecture**: Scalable, maintainable multi-cloud design - **DevOps Excellence**: Containerized, configurable deployment ## 📞 Support For questions about the SyntropAI MCP ecosystem: - **Documentation**: [SyntropAI Documentation Project](https://github.com/paihari/documentation-syntropai) - **Author**: Hari Bantwal (hpai.bantwal@gmail.com) --- *This server demonstrates cutting-edge cloud abstraction technology, providing secure, unified access to AWS services through innovative architectural patterns.*
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.