cloudcraft-mcp
cloudcraft-mcp
Cloudcraft.co 用のModel Context Protocol (MCP) サーバー — Claude Desktopやその他のMCPクライアントから、クラウドアーキテクチャの設計図をリスト表示、読み取り、エクスポート、構築できます。
機能
MCPホストに公開される9つのツール:
ツール | 説明 |
| 設定されたキーのCloudcraftユーザープロファイルを返します。 |
| アカウント内のすべての設計図をリスト表示します。 |
| 設計図の完全なノード/エッジJSONを取得します。 |
| JSONペイロードから新しい設計図を作成します。 |
| 既存の設計図のペイロードを置き換えます。 |
| 設計図を削除します(元に戻せません)。 |
| 設計図をPNG / SVG / PDF / mxgraphとしてディスクにレンダリングします。 |
| ライブスキャン・スナップショット用に接続されたAWSアカウントをリスト表示します。 |
| 1つのAWSサービスのライブスキャン・スナップショットを取得します。 |
Related MCP server: AWS MCP Server
要件
Python 3.10+
uv (
brew install uv)Cloudcraft APIキー — https://app.cloudcraft.co/ → User settings → API keys から生成してください
インストール
リポジトリをクローンし、初回実行時に uv が依存関係を解決するようにします。明示的なインストール手順は不要です。
git clone https://github.com/hypark5540/cloudcraft-mcp.git
cd cloudcraft-mcp
export CLOUDCRAFT_API_KEY='your-key-here'
uv run cloudcraft-mcp # smoke test — Ctrl+C to exitClaude Desktopとの統合
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) またはお使いのプラットフォームの同等のファイルを編集します:
{
"mcpServers": {
"cloudcraft": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/cloudcraft-mcp",
"run",
"cloudcraft-mcp"
],
"env": {
"CLOUDCRAFT_API_KEY": "your-key-here"
}
}
}
}Claude Desktopを再起動します。Developerタブに cloudcraft が接続済みとして表示されるはずです。
環境変数
名前 | 必須 | デフォルト | 目的 |
| はい | — | APIキー (Bearer)。Cloudcraftのユーザー設定で生成。 |
| いいえ |
| プロキシや将来のAPIバージョン用の上書き。 |
| いいえ |
| Stderrログの冗長性 ( |
使用例 (Claude内)
サーバーが接続されたら、Claudeに以下のように尋ねてみてください:
"Cloudcraftの設計図をリストアップして、それぞれが何を表しているか要約して。"
"設計図
f0086b32-...をPNGとしてエクスポートしてデスクトップに保存して。"
"私が今設計したアーキテクチャを使って、『Prod 2026』という名前の新しいCloudcraft設計図を作成して。"
"接続されているAWSアカウントの
ap-northeast-2にあるEC2インスタンスのスナップショットを撮って。"
設計図のペイロード形式
create_blueprint / update_blueprint は、Cloudcraftの完全な data オブジェクトを受け入れます。最小限のペイロード:
{
"grid": "infinite",
"projection": "isometric",
"theme": {"base": "light"},
"version": 6,
"nodes": [
{"id": "...", "type": "ec2", "mapPos": [3, 3], "region": "ap-northeast-2",
"instanceType": "m7g", "instanceSize": "large", "platform": "linux"},
{"id": "...", "type": "s3", "mapPos": [1, 8], "region": "ap-northeast-2",
"volumeType": "Standard", "dataGb": 100}
],
"edges": [
{"from": "...ec2-id...", "to": "...s3-id...", "type": "edge",
"width": 2, "dashed": false, "endCap": "arrow"}
],
"groups": [], "surfaces": [], "text": [], "icons": [],
"connectors": [], "images": [], "disabledLayers": [],
"shareDocs": false
}ノードタイプのカタログやサービス固有のフィールドの詳細については、CloudcraftのAPIドキュメントを参照してください。
開発
uv sync --extra dev
uv run pytest # unit tests (no network)
uv run ruff check . # lint
uv run mypy src # type checkテストは respx を使用してHTTPレイヤーをモックするため、APIキーは不要です。
プロジェクト構成
cloudcraft-mcp/
├── src/cloudcraft_mcp/
│ ├── __init__.py
│ ├── __main__.py # python -m cloudcraft_mcp
│ ├── server.py # MCP tool definitions (FastMCP)
│ ├── client.py # CloudcraftClient — async httpx wrapper
│ ├── types.py # TypedDicts for blueprint payloads
│ └── py.typed
├── tests/
│ └── test_client.py
├── server.py # back-compat shim -> cloudcraft_mcp.server:main
├── pyproject.toml
├── LICENSE
└── README.md設計上の注意
トランスポートとロジックの分離。
client.pyは、MCPランタイムを読み込まずにスクリプトやCLIツールからインポートできるシンプルな非同期HTTPクライアントです。server.pyはMCPツールのインターフェースのみを担当します。Bearerトークン認証。 CloudcraftのAPIは
Authorization: Bearer <key>(Apikeyではない) を期待します。クライアントはこれを自動的に設定します。プロセス引数にシークレットを含めない。 APIキーは
CLOUDCRAFT_API_KEYから読み込まれます。コマンドラインで渡さないでください。エラーの表面化。 2xx以外のレスポンスは、ステータスとボディを保持したまま
CloudcraftErrorを発生させ、MCP境界でRuntimeErrorとして再ラップされるため、Claudeは読み取り可能なメッセージを確認できます。
セキュリティ
APIキーはCloudcraftアカウントに対する完全な読み取り/書き込み権限を付与します。シークレットとして扱い、定期的にローテーションしてください。
delete_blueprintは元に戻せません。Claudeに削除を依頼する際は、対象のIDを明示してください。読み取りが中心のセットアップの場合は、読み取り専用スコープを持つ専用のCloudcraftユーザーを作成し(Cloudcraftがスコープ付きキーを追加した場合)、そのキーをMCPに使用してください。
コントリビューション
IssueやPRは https://github.com/hypark5540/cloudcraft-mcp で歓迎します。提出前に ruff、mypy、pytest を実行してください。
ライセンス
MIT — LICENSE を参照してください。
関連
awslabs/mcp — AWSのMCPサーバーコレクション
modelcontextprotocol/servers — MCPサーバーの実装リファレンス
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables Claude to interact with core AWS services like S3, EC2, RDS, and CloudWatch, along with a generic SDK wrapper for any AWS operation. It also supports cost monitoring and optional vector store capabilities for document ingestion and search.103The Unlicense
- AlicenseBqualityDmaintenanceEnables Claude Desktop to interact with 57 AWS services using over 200 tools and local machine profiles. It supports multi-profile configurations and features a read-only safe mode by default to manage infrastructure like EC2, S3, and Lambda securely.100BSD 3-Clause
- AlicenseAqualityDmaintenanceEnables browsing S3 buckets and objects, and generating secure presigned URLs for downloads and uploads, through natural language commands in MCP clients like Claude Desktop.3103MIT
- Alicense-qualityDmaintenanceEnables natural language control of AWS resources (EC2, Security Groups, S3, Bedrock, etc.) directly from Claude Desktop or Claude Code.MIT
Related MCP Connectors
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hypark5540/cloudcraft-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server