mcpField
M
MCP Server for AWS Resources

MCP Server for AWS Resources

Local
github.com/paihariCloud & Infra0Updated 60w ago

About MCP Server for AWS Resources

MCP server for accessing AWS services through SyntropAI’s abstraction layer. It uses dynamic SDK access and sandboxed execution rather than a fixed service catalog.

Key features

  1. 01Dynamic access to AWS services
  2. 02AST validation and sandboxing
  3. 03Runtime API schema generation
  4. 04Docker deployment
  5. 05AWS credential management

Use cases

  1. 01Query EC2 instances
  2. 02Create S3 buckets
  3. 03List Lambda functions

MCP support

Exposes AWS service access to MCP clients through SyntropAI’s abstraction layer. Queries run in an AST-validated sandbox with timeout protection.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"for-aws": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"build"
]
}
}
}
Run commanddocker run -i --rm build

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
ocibuild

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

AWS MCP Server - SyntropAI Ecosystem

Part of the SyntropAI MCP Ecosystem - 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 core library

🐳 Docker Installation (Recommended)

Build and Run
# 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:

{
  "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
# 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
import boto3
ec2 = session.client('ec2')
result = ec2.describe_instances()
Create S3 Bucket
import boto3
s3 = session.client('s3')
result = s3.create_bucket(Bucket='my-unique-bucket-name')
Lambda Functions
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

🏆 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:


This server demonstrates cutting-edge cloud abstraction technology, providing secure, unified access to AWS services through innovative architectural patterns.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.