
baryhuang/mcp-server-aws-resources-python
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Claude が boto3 コードを実行して AWS リソースを照会および管理できる Python ベースの MCP サーバー。 適切なサンドボックス化とコンテナ化により、Claude を介して強力な AWS 操作を直接実行します.
概要
生成された python コードを実行して、 boto3 を介して任意の AWS リソースを照会するためのモデル コンテキスト プロトコル (MCP) サーバーの実装。 : 私はReadyOnlyに操作を制限しませんでした。そのため、重要なOpsの人々は管理操作を行うこのツールを利用するのに役立ちます。 AWS ユーザーのロールは、自分ができることの許可を決定します。 [https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7] AWSチャットボットを開発者アクセスで試しました。 Free Tier はリソースの 25 個のクエリ/月を制限しています。 次の層は$ 19 /月には、使用しない機能の90%が含まれています。 結果はJSONと多くの制限のファッションです。 aws-mcp を使ってみましたが、いくつかの問題に遭遇しました。 1。 : gitリポジトリをクローンし、ローカルセットアップに対処するためにハド 2. : 私のMac上で十分に安定していません 3. : Python 開発者として、Node に効果的に貢献できませんでした.
概要(AI 翻訳)
概要
生成された python コードを実行して、 boto3 を介して任意の AWS リソースを照会するためのモデル コンテキスト プロトコル (MCP) サーバーの実装。
ご自身の責任で: 操作をReadyOnlyに制限しませんでした。そのため、操作を行なうために、このツールを利用することで注意深いOpsの人々を助けることができます。 AWS ユーザーのロールは、自分ができることの許可を決定します。
デモ: Dynamodb 許可エラーを修正
[https://github.com/user-attachments/assets/de88688d-d7a0-45e1-94eb-3f5d71e9a7c7]
なぜ別のAWS MCPサーバー?
AWSチャットボットを開発者アクセスで試しました。 Free Tier はリソースの 25 個のクエリ/月を制限しています。 次の層は$ 19 /月には、使用しない機能の90%が含まれています。 結果はJSONと多くの制限のファッションです。
aws-mcp を使ってみましたが、いくつかの問題に遭遇しました。
- セットアップの車いす: git repo をクローンし、ローカル設定に対処する 2.安定性の問題:私のMac上で十分に安定していません 3。 Node.js Stack: Python 開発者として、Node.js のコードベースに効果的に貢献できませんでした。
そこで、この新しいアプローチを作った。
- Docker イメージから直接実行 - 必要な git クローンなし
- より良い安定性のために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:
- Setup Hassle: Had to clone a git repo and deal with local setup
- Stability Issues: Wasn’t stable enough on my Mac
- 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:
- List S3 buckets:
s3 = session.client('s3')
result = s3.list_buckets()
- 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']
インストール
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設定
{
"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"
]
}
}
}