@pulumi/mcp-server
OfficialPulumi MCP サーバー
**注:**このMCPサーバーは現在開発中です。API(利用可能なコマンドとその引数を含む)は試験段階であり、予告なく変更される可能性があります。バグに遭遇した場合、または追加のPulumiコマンドのサポートが必要な場合は、 GitHubで問題を報告してください。
Pulumi Automation API および Pulumi Cloud API を使用して Pulumi CLI と対話するためのモデル コンテキスト プロトコル(MCP) を実装するサーバー。
このパッケージを使用すると、MCP クライアントは、Pulumi CLI をクライアント環境に直接インストールしなくても、パッケージ情報の取得、変更のプレビュー、更新の展開、スタック出力の取得などの Pulumi 操作をプログラムで実行できます。
使用法
Pulumi CLI をマシンにインストールする必要があります。
このパッケージは、MCPサーバーをAIツールとして利用できるアプリケーションに統合することを主な目的としています。例えば、ClaudeデスクトップのMCP設定ファイルにPulumi MCPサーバーを追加する方法は次のとおりです。
{
"mcpServers": {
"pulumi": {
"command": "npx",
"args": ["@pulumi/mcp-server@latest","stdio"]
}
}
}または、 stdioの代わりに Server-Sent Events (SSE) を使用した HTTP を使用する場合は、次のようにします。
{
"mcpServers": {
"pulumi": {
"command": "npx",
"args": ["@pulumi/mcp-server@latest","sse"]
}
}
}Related MCP server: mcp-perplexity
Dockerコンテナ
Pulumi MCP ServerをDockerコンテナとして実行することもできます。この方法では、Node.jsとパッケージの依存関係をホストマシンに直接インストールする必要がなくなります。
コンテナの構築
コンテナを構築するには:
docker build -t pulumi/mcp-server:latest .MCPクライアントでの使用
コンテナ化されたサーバーをMCPクライアントで使用するには、クライアント側でDockerコンテナを使用するように設定する必要があります。例えば、ClaudeデスクトップのMCP設定では以下のようになります。
{
"mcpServers": {
"pulumi": {
"command": "docker",
"args": ["run", "-i", "--rm", "pulumi/mcp-server:latest", "stdio"]
}
}
}HTTP (SSE) 経由の MCP クライアントでの使用
コンテナ化されたサーバーを HTTP (SSE) 経由の MCP クライアントで使用するには、次のコマンドでコンテナを実行します。
{
"mcpServers": {
"pulumi": {
"command": "docker",
"args": ["run", "-i", "--rm", "-p", "3000:3000", "pulumi/mcp-server:latest", "sse"]
}
}
}ローカルのPulumiプロジェクトへのアクセスを必要とするPulumi操作を行うには、適切なディレクトリをマウントする必要があります。例えば、Pulumiプロジェクトが~/projects/my-pulumi-appにある場合は、次のようにします。
{
"mcpServers": {
"pulumi": {
"command": "docker",
"args": ["run", "-i", "--rm", "-v", "~/projects/my-pulumi-app:/app/project", "pulumi/mcp-server:latest"]
}
}
}その後、MCP ツールを使用するときは、リクエスト内でプロジェクト ディレクトリを/app/projectとして参照することになります。
利用可能なコマンド
サーバーは、MCP リクエストを介して呼び出すことができる次の Pulumi 操作のハンドラーを公開します。
preview: 指定されたスタックでpulumi previewを実行します。workDir(文字列、必須):Pulumi.yamlプロジェクト ファイルを含む作業ディレクトリ。stackName(文字列、オプション): 操作するスタック名 (デフォルトは 'dev')。
up:pulumi upを実行して、指定されたスタックの変更をデプロイします。workDir(文字列、必須):Pulumi.yamlプロジェクト ファイルを含む作業ディレクトリ。stackName(文字列、オプション): 操作するスタック名 (デフォルトは 'dev')。
stack-output: デプロイメントが成功した後、指定されたスタックから出力を取得します。workDir(文字列、必須):Pulumi.yamlプロジェクト ファイルを含む作業ディレクトリ。stackName(文字列、オプション): 出力を取得するスタック名 (デフォルトは 'dev')。outputName(文字列、オプション): 取得するスタック出力名。省略した場合は、スタックのすべての出力が返されます。
get-resource: 入力と出力を含む、特定の Pulumi レジストリ リソースに関する情報を返します。provider(文字列、必須): クラウド プロバイダー (例: 'aws'、'azure'、'gcp'、'random') または Git ホスト コンポーネントのgithub.com/org/repo。module(文字列、オプション): クエリするモジュール (例: 's3'、'ec2'、'lambda')。resource(文字列、必須): リソース タイプ名 (例: 'Bucket'、'Function'、'Instance')。
list-resources: Pulumi プロバイダー パッケージ内の利用可能なリソースを一覧表示します。オプションでモジュール別にフィルタリングできます。provider(文字列、必須): クラウド プロバイダー (例: 'aws'、'azure'、'gcp'、'random') または Git ホスト コンポーネントのgithub.com/org/repo。module(文字列、オプション): フィルタリングするモジュール (例: 's3'、'ec2'、'lambda')。
発達
リポジトリをクローンします。
依存関係をインストールします:
make ensureプロジェクトをビルドする:
make buildプロジェクトをテストする:
make test
ライセンス
このプロジェクトはApache 2.0ライセンスの下でライセンスされています。詳細はLICENSEファイルをご覧ください。
Available Tools
5 toolspulumi-cli-previewC
Run pulumi preview for a given project and stack
Inputs: workDir (required), stackName.
pulumi-cli-stack-outputC
Get the output value(s) of a given stack
Inputs: workDir (required), outputName, stackName.
pulumi-cli-upC
Run pulumi up for a given project and stack
Inputs: workDir (required), stackName.
pulumi-registry-get-resourceB
Get information about a specific resource from the Pulumi Registry
Inputs: provider (required), resource (required), module.
pulumi-registry-list-resourcesB
List all resource types for a given provider and module
Inputs: provider (required), module.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose with no ambiguity: pulumi-cli-preview, pulumi-cli-up, and pulumi-cli-stack-output handle different CLI operations for project/stack management, while pulumi-registry-get-resource and pulumi-registry-list-resources focus on distinct registry lookup tasks. The descriptions reinforce these boundaries, making misselection unlikely.
All tool names follow a consistent pattern: they start with 'pulumi-' followed by a hyphen-separated domain (cli or registry) and a specific action (e.g., preview, up, get-resource). This predictable structure enhances readability and agent usability without any deviations or mixed conventions.
With 5 tools, the count is reasonable and well-scoped for a Pulumi MCP server, covering core CLI operations and registry lookups. It's slightly lean but not insufficient, as each tool earns its place; minor additions like stack management or config tools could enhance it, but it's not a significant gap.
The tool set covers key Pulumi workflows: preview, up, and stack outputs for deployment, plus registry resource lookups. Minor gaps exist, such as missing tools for stack management (e.g., create/delete) or config operations, but agents can likely work around these with the provided tools for basic infrastructure-as-code tasks.
Related MCP Connectors
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
Official xCloud MCP: manage servers, sites, WordPress, SSL, backups and deploys from any MCP client.
Related MCP Servers
- AlicenseCqualityDmaintenanceEasily find MCP servers using our MCP registry. Search with natural language.16MIT
- AlicenseNot gradedqualityDmaintenanceMCP Server for the Perplexity API.24 PyPI66MIT
- MIT
- AlicenseNot gradedqualityBmaintenanceOfficial MCP server for configuring Litmus instances.13MIT