# Heroku MCP server

> Deploy, scale and inspect Heroku apps, add-ons, Postgres databases and logs from your AI assistant.

- Listing: https://mcp.tc/i/heroku
- Connect: this is a local (stdio) server; install it on your machine (see Install). The listing link is a page, not an MCP endpoint.
- Type: local (stdio)
- Auth: API key
- Category: [Cloud & DevOps](https://mcp.tc/c/cloud-devops)
- Vendor: Heroku (Salesforce)
- Verified: yes, mcp.tc checked that this is the official server (https://mcp.tc/verify). It says who runs the server, not that it is safe.
- Homepage: <https://devcenter.heroku.com/articles/heroku-mcp-server>
- Repository: <https://github.com/heroku/heroku-mcp-server>
- Package: npm `@heroku/mcp-server`

## About

Connects an AI assistant to the Heroku Platform through the Heroku CLI. It can list and inspect apps, create, rename and transfer them, and deploy projects with an app.json configuration. It works on Common Runtime, Cedar Private and Shield Spaces, and Fir Private Spaces.

Runs locally over stdio. The recommended launch command is heroku mcp:start (Heroku CLI 10.8.1 or later), which reuses your CLI login. Alternatively, run npx -y @heroku/mcp-server with the HEROKU\_API\_KEY environment variable set to a Heroku authorization token. The project describes itself as in early development.

## What it can do

- List Heroku apps filtered by personal, collaborator, team or space
- Get app details including configuration, dynos and add-ons
- Create, rename and transfer apps
- Deploy projects to Heroku using app.json
- Works with Common Runtime, Private Spaces and Shield Spaces

## Example prompts

- "List my Heroku apps that belong to the team"
- "Show configuration and dynos for my app my-app"
- "Create a new Heroku app in the eu region"
- "Deploy this project to Heroku using its app.json"

## Install

### Claude Code

1. Run this in a terminal, in your project folder:

```bash
claude mcp add --transport stdio heroku --env "HEROKU_API_KEY=<YOUR_HEROKU_API_KEY>" -- npx -y @heroku/mcp-server
```

2. Start Claude Code and type `/mcp`. **heroku** should show as connected.

Add `--scope user` to make it available in every project. Replace the placeholders with your own values.

### Claude Desktop

1. Open **Settings → Developer → Edit Config**. It opens `claude_desktop_config.json`. Add:

`claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "heroku": {
      "command": "npx",
      "args": [
        "-y",
        "@heroku/mcp-server"
      ],
      "env": {
        "HEROKU_API_KEY": "<YOUR_HEROKU_API_KEY>"
      }
    }
  }
}
```

2. Save the file and restart Claude Desktop. Replace the placeholders with your own values.

Needs Node.js on your computer. The file lives in `~/Library/Application Support/Claude/` on macOS and `%APPDATA%\Claude\` on Windows.

### Cursor

[Add to Cursor](<https://cursor.com/install-mcp?name=heroku&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBoZXJva3UvbWNwLXNlcnZlciJdLCJlbnYiOnsiSEVST0tVX0FQSV9LRVkiOiI8WU9VUl9IRVJPS1VfQVBJX0tFWT4ifX0%3D>) (opens Cursor)

Or add it by hand to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (this project):

`mcp.json`:

```json
{
  "mcpServers": {
    "heroku": {
      "command": "npx",
      "args": [
        "-y",
        "@heroku/mcp-server"
      ],
      "env": {
        "HEROKU_API_KEY": "<YOUR_HEROKU_API_KEY>"
      }
    }
  }
}
```

Needs Node.js on your computer. Replace the placeholders with your own values.

### VS Code

Add it to `.vscode/mcp.json`. VS Code asks for the secret the first time and stores it securely:

`.vscode/mcp.json`:

```json
{
  "servers": {
    "heroku": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@heroku/mcp-server"
      ],
      "env": {
        "HEROKU_API_KEY": "${input:heroku-api-key}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "heroku-api-key",
      "description": "HEROKU_API_KEY",
      "password": true
    }
  ]
}
```

Needs Node.js on your computer.

### Devin Desktop

1. Add it to `~/.config/devin/mcp_config.json` (macOS and Linux) or `%APPDATA%\devin\mcp_config.json` (Windows):

`mcp_config.json`:

```json
{
  "mcpServers": {
    "heroku": {
      "command": "npx",
      "args": [
        "-y",
        "@heroku/mcp-server"
      ],
      "env": {
        "HEROKU_API_KEY": "<YOUR_HEROKU_API_KEY>"
      }
    }
  }
}
```

2. Refresh the MCP server list in Cascade. Replace the placeholders with your own values.

Devin Desktop is the new name for Windsurf.

### Codex

```bash
codex mcp add heroku --env "HEROKU_API_KEY=<YOUR_HEROKU_API_KEY>" -- npx -y @heroku/mcp-server
```

Or edit `~/.codex/config.toml` directly:

`config.toml`:

```toml
[mcp_servers.heroku]
command = "npx"
args = ["-y", "@heroku/mcp-server"]
env = { HEROKU_API_KEY = "<YOUR_HEROKU_API_KEY>" }
```

Needs Node.js on your computer. Replace the placeholders with your own values.

### Gemini CLI

```bash
gemini mcp add -e "HEROKU_API_KEY=<YOUR_HEROKU_API_KEY>" heroku npx -- -y @heroku/mcp-server
```

This adds it to the current project. Add `-s user` to use it everywhere.

### Any client

Most clients that start local servers accept this shape:

```json
{
  "mcpServers": {
    "heroku": {
      "command": "npx",
      "args": [
        "-y",
        "@heroku/mcp-server"
      ],
      "env": {
        "HEROKU_API_KEY": "<YOUR_HEROKU_API_KEY>"
      }
    }
  }
}
```

Zed puts servers under `context_servers` in its settings, with the same `command`, `args` and `env` fields.

Needs Node.js on your computer. Replace the placeholders with your own values.

## Details

- Server version: 1.2.10
- Last checked: 2026-10-03
- Listed: 2026-10-03
- Updated: 2026-10-03

---
Source: https://mcp.tc/i/heroku (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
