MCP Directory

How to add Pulumi MCP Server to Cursor

Give agents Pulumi powers: browse the provider registry, preview and deploy stacks, and search deployed resources. Paste the config into ~/.cursor/mcp.json and restart Cursor.

Last updated June 14, 2026 · 0 · stdio · apikey · official

Cursor config for Pulumi MCP Server

npx @pulumi/mcp-server@latest stdio
{
  "mcpServers": {
    "pulumi-mcp-server": {
      "command": "npx",
      "args": [
        "@pulumi/mcp-server@latest",
        "stdio"
      ]
    }
  }
}

Setup steps

  1. 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
  2. 2Paste the Pulumi MCP Server config below into the "mcpServers" object.
  3. 3Fill in placeholder secrets, then save.
  4. 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
  5. 5Ask Cursor to use one of Pulumi MCP Server's tools to confirm it's connected.

Before you start

  • Pulumi CLI installed on the client machine (required for preview/up/refresh operations)
  • Node.js with npx, or Docker for the containerized mode
  • A Pulumi access token (app.pulumi.com/account/tokens) for Docker mode and the hosted endpoint; registry tools work without credentials

What Pulumi MCP Server can do in Cursor

pulumi-registry-list-resources

Browse available cloud resources across providers.

pulumi-registry-list-functions

Explore available provider functions.

pulumi-registry-get-resource

Get code examples and documentation for a specific resource.

pulumi-registry-get-function

Get provider function examples for your Pulumi program.

pulumi-registry-get-type

Get schema definitions for complex resource properties and types.

pulumi-cli-preview

Preview infrastructure changes before deployment.

pulumi-cli-up

Deploy infrastructure changes, creating and updating resources.

pulumi-cli-stack-output

Retrieve stack outputs like URLs and resource IDs.

Security

pulumi-cli-up deploys real infrastructure with your Pulumi credentials — keep previews auto-approved at most, and gate up/refresh behind human review. Tokens: the Docker mode takes PULUMI_ACCESS_TOKEN as an env var, and the hosted endpoint authenticates with a Pulumi access token from app.pulumi.com/account/tokens.

Pulumi MCP Server + Cursor FAQ

Where is the Cursor config file?

Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the Pulumi MCP Server config there under the "mcpServers" key and restart the client.

Is Pulumi MCP Server safe to use with Cursor?

pulumi-cli-up deploys real infrastructure with your Pulumi credentials — keep previews auto-approved at most, and gate up/refresh behind human review. Tokens: the Docker mode takes PULUMI_ACCESS_TOKEN as an env var, and the hosted endpoint authenticates with a Pulumi access token from app.pulumi.com/account/tokens.

Is the Pulumi MCP server safe to let an agent use?

Registry and preview tools are read-only and low-risk; pulumi-cli-up and refresh change real cloud infrastructure using your Pulumi credentials, so keep them behind manual approval. The server itself is official Pulumi software distributed via npm and Docker.

Where did the GitHub repo go?

pulumi/mcp-server now returns 404 — the code moved as Pulumi consolidated repos. The npm package @pulumi/mcp-server is still actively published by Pulumi, and the docs page at pulumi.com/docs/iac/using-pulumi/mcp-server is the maintained reference.

Local stdio or hosted endpoint — which should I use?

Use local stdio (npx @pulumi/mcp-server@latest stdio) when the agent needs your local project files and CLI login for preview/up. Use the hosted https://mcp.ai.pulumi.com/mcp endpoint for registry, resource search, and Neo features from HTTP-capable clients, authenticating with a Pulumi access token.

View repo Full Pulumi MCP Server page