BM

baryhuang/mcp-server-aws-resources-python

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

24 stars 14 forks 품질 66 트렌드 0MIT

Claude가 AWS 리소스를 쿼리하고 관리하기 위해 boto3 코드를 실행하는 Python 기반 MCP 서버. 적절한 샌드박스 및 컨테이너화로 Claude를 통해 강력한 AWS 작업을 직접 실행합니다.

개요

생성 된 python 코드를 실행하는 모델 Context Protocol (MCP) 서버 구현은 boto3를 통해 AWS 리소스를 쿼리 할 수 있습니다. : 나는 ReadyOnly에 작업을 제한하지 않았다, 그래서 감사의 Ops 사람들은이 도구를 사용하여 관리 작업을 도울 수있다. AWS 사용자 역할은 당신이 할 수있는 일에 대한 권한을 결정합니다. https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0] [T0] [T0]] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0]] https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7] https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7]]] https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7]]]]]] [[https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7]]]]]]] [[[[[[https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7]]]]]]]]]]]]]] [[[[[[[https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7]]]]]]]]]]]]]]]]]] [[[[[[[[[[[[[[[[[[[[[[ Developer Access로 AWS Chatbot을 시도했습니다. Free Tier는 자원을위한 25 쿼리 / 월의 제한이 있습니다. 다음 계층은 $ 19 / 월에는 90 %의 기능이 포함되어 있지 않습니다. 그리고 결과는 JSON과 많은 제한의 패션에 있습니다. 나는 aws-mcp를 사용했지만 몇 가지 문제로 ran : 1. : git repo를 복제하고 로컬 설정 2. : Mac에서 충분히 안정하지 3. : 파이썬 개발자로서, 노드에 효과적으로 기여할 수 없습니다.

개요(AI 번역)

개요

생성 된 python 코드를 실행하는 모델 Context Protocol (MCP) 서버 구현은 boto3를 통해 AWS 리소스를 쿼리 할 수 있습니다.

** 자체 위험 **: 나는 ReadyOnly에 작업을 제한하지 않았다, 그래서 cautious Ops 사람들은이 도구를 사용하여 관리 작업을 할 수 있습니다. AWS 사용자 역할은 당신이 할 수있는 일에 대한 권한을 결정합니다.

**Demo: Dynamodb 권한 오류 수정 **

https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0]] [T0] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0] [T0] [T0]] [T0] [T0]] [T0] [T0] [T0]] [T0]] [T0] [T0] [T0]] https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7] https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7]]] https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7]]]]]] [[https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7]]]]]]] [[[[[[https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7]]]]]]]]]]]]]] [[[[[[[https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7]]]]]]]]]]]]]]]]]] [[[[[[[[[[[[[[[[[[[[[[

왜 또 다른 AWS MCP 서버?

Developer Access로 AWS Chatbot을 시도했습니다. Free Tier는 자원을위한 25 쿼리 / 월의 제한이 있습니다. 다음 계층은 $ 19 / 월에는 90 %의 기능이 포함되어 있지 않습니다. 그리고 결과는 JSON과 많은 제한의 패션에 있습니다.

나는 aws-mcp를 사용했지만 몇 가지 문제로 ran :

  1. ** 설정 Hassle**: git repo를 복제하고 로컬 설정으로 거래하십시오.
  2. ** 안정성 문제 ** : Mac에서 충분히 안정하지
  3. **Node.js 스택 **: 파이썬 개발자로서 Node.js codebase에 효과적으로 기여할 수 없습니다.

그래서 나는이 새로운 접근 방식을 만들었습니다 :

  • Docker 이미지에서 직접 실행 - 필요한 git clone 없음
  • 더 나은 안정성을 위해 Python 및 boto3를 사용합니다

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

AWS Resources MCP Server

Overview

A Model Context Protocol (MCP) server implementation that provides running generated python code to query any AWS resources through boto3.

At your own risk: I didn’t limit the operations to ReadyOnly, so that cautious Ops people can be helped using this tool doing management operations. Your AWS user role will dictate the permissions for what you can do.

Demo: Fix Dynamodb Permission Error

https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7

Why Another AWS MCP Server?

I tried AWS Chatbot with Developer Access. Free Tier has a limit of 25 query/month for resources. Next tier is $19/month include 90% of the features I don’t use. And the results are in a fashion of JSON and a lot of restrictions.

I tried using aws-mcp but ran into a few issues:

  1. Setup Hassle: Had to clone a git repo and deal with local setup
  2. Stability Issues: Wasn’t stable enough on my Mac
  3. Node.js Stack: As a Python developer, I couldn’t effectively contribute back to the Node.js codebase

So I created this new approach that:

  • Runs directly from a Docker image - no git clone needed
  • Uses Python and boto3 for better stability
  • Makes it easy for Python folks to contribute
  • Includes proper sandboxing for code execution
  • Keeps everything containerized and clean

For more information about the Model Context Protocol and how it works, see Anthropic’s MCP documentation.

Components

Resources

The server exposes the following resource:

  • aws://query_resources: A dynamic resource that provides access to AWS resources through boto3 queries

Example Queries

Here are some example queries you can execute:

  1. List S3 buckets:
s3 = session.client('s3')
result = s3.list_buckets()
  1. Get latest CodePipeline deployment:
def get_latest_deployment(pipeline_name):
    codepipeline = session.client('codepipeline')

    result = codepipeline.list_pipeline_executions(
        pipelineName=pipeline_name,
        maxResults=5
    )

    if result['pipelineExecutionSummaries']:
        latest_execution = max(
            [e for e in result['pipelineExecutionSummaries']
GitHub에서 전체 README 보기

설치

docker run -i --rm -e AWS_ACCESS_KEY_ID=your_access_key_id_here -e AWS_SECRET_ACCESS_KEY=your_secret_access_key_here -e AWS_DEFAULT_REGION=us-east-1 buryhuang/mcp-server-aws-resources:latest
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "aws-resources": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "AWS_ACCESS_KEY_ID=your_access_key_id_here", "-e", "AWS_SECRET_ACCESS_KEY=your_secret_access_key_here", "-e", "AWS_DEFAULT_REGION=us-east-1", "buryhuang/mcp-server-aws-resources:latest" ] } } }