freshcrate
Skin:/
Home > MCP Servers > heroku-mcp-server

heroku-mcp-server

Heroku Platform MCP Server using the Heroku CLI

Why this rank:Strong adoptionRelease freshnessHealthy release cadence

Description

Heroku Platform MCP Server using the Heroku CLI

README

heroku-mcp-server

Install MCP Server

The Heroku Platform MCP Server works on Common Runtime, Cedar Private and Shield Spaces, and Fir Private Spaces.

Prerequisites

Deploy on Heroku

Deploy

Overview

The Heroku Platform MCP Server is a specialized Model Context Protocol (MCP) implementation designed to facilitate seamless interaction between large language models (LLMs) and the Heroku Platform. This server provides a robust set of tools and capabilities that enable LLMs to read, manage, and operate Heroku Platform resources.

Key Features:

  • Direct interaction with Heroku Platform resources through LLM-driven tools
  • Secure and authenticated access to Heroku Platform APIs, leveraging the Heroku CLI
  • Natural language interface for Heroku Platform interactions

Note: The Heroku Platform MCP Server is currently in early development. As we continue to enhance and refine the implementation, the available functionality and tools may evolve. We welcome feedback and contributions to help shape the future of this project.

Note: The Heroku Platform MCP Server requires the Heroku CLI to be installed globally (v10.8.1+). Ensure you have the correct version by running heroku --version.

Configure the Heroku Platform MCP Server

You can configure Claude Desktop, Zed, Cursor, Windsurf, and other clients to work with the Heroku Platform MCP Server.

Configure the Heroku Platform MCP Server with heroku mcp:start

Use heroku mcp:start to launch the Heroku Platform MCP Server. We recommend this method as it leverages your existing Heroku CLI authentication, so you don't need to set the HEROKU_API_KEY environment variable. The heroku mcp:start command is available in Heroku CLI version 10.8.1 and later.

There are several benefits to configuring with heroku mcp:start:

  • No need to manage or expose your Heroku API key
  • Uses your current Heroku CLI authentication context
  • Works seamlessly with supported clients

Example configuration for Claude Desktop:

{
  "mcpServers": {
    "heroku": {
      "command": "heroku mcp:start"
    }
  }
}

Example configuration for Zed:

{
  "context_servers": {
    "heroku": {
      "command": {
        "path": "heroku",
        "args": ["mcp:start"]
      }
    }
  }
}

Example configuration for Cursor:

{
  "mcpServers": {
    "heroku": {
      "command": "heroku mcp:start"
    }
  }
}

Example configuration for Windsurf:

{
  "mcpServers": {
    "heroku": {
      "command": "heroku mcp:start"
    }
  }
}

Example configuration for Cline:

{
  "mcpServers": {
    "heroku": {
      "command": "heroku mcp:start"
    }
  }
}

Example configuration for VSCode:

{
  "mcp": {
    "servers": {
      "heroku": {
        "type": "stdio",
        "command": "heroku",
        "args": ["mcp:start"]
      }
    }
  }
}

Example configuration for Trae:

{
  "mcpServers": {
    "heroku": {
      "command": "heroku mcp:start"
    }
  }
}

Note: When you use heroku mcp:start, the server authenticates using your current Heroku CLI session so you don't need to set the HEROKU_API_KEY environment variable. We recommend you use heroku mcp:start, but if you prefer to use an API key, you can use the alternate configuration below.

Configure the Heroku Platform MCP Server with npx -y @heroku/mcp-server

You can also launch the Heroku Platform MCP Server using the npx -y @heroku/mcp-server command. This method requires you to set the HEROKU_API_KEY environment variable with your Heroku authorization token.

Generating the HEROKU_API_KEY

Generate a Heroku authorization token with one of these methods:

  • Use the Heroku CLI command:

      heroku authorizations:create
  • Use an existing token in the CLI

      heroku auth:token

    Copy the token and use it as your HEROKU_API_KEY in the following steps.

  • In your Heroku Dashboard:

    1. Select your avatar, then select Account Settings.
    2. Open the Applications tab.
    3. Next to Authorizations, click Create authorization.

Example configuration for Claude Desktop:

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

Example configuration for Zed:

{
  "context_servers": {
    "heroku": {
      "command": {
        "path": "npx",
        "args": ["-y", "@heroku/mcp-server"],
        "env": {
          "HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
        }
      }
    }
  }
}

Example configuration for Cursor:

{
  "mcpServers": {
    "heroku": {
      "command": "npx -y @heroku/mcp-server",
      "env": {
        "HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
      }
    }
  }
}

Example configuration for Windsurf:

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

Example configuration for Cline:

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

Example configuration for VSCode:

{
  "mcp": {
    "servers": {
      "heroku": {
        "type": "stdio",
        "command": "npx",
        "args": ["-y", "@heroku/mcp-server"],
        "env": {
          "HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
        }
      }
    }
  }
}

Example configuration for Trae:

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

Note: When you use npx -y @heroku/mcp-server, you must set the HEROKU_API_KEY environment variable with your Heroku authorization token.

Available Tools

Application Management

  • list_apps - List all Heroku apps. You can filter apps by personal, collaborator, team, or space.
  • get_app_info - Get detailed information about an app, including its configuration, dynos, and add-ons.
  • create_app - Create a new app with customizable settings for region, team, and space.
  • rename_app - Rename an existing app.
  • transfer_app - Transfer ownership of an app to another user or team.
  • deploy_to_heroku - Deploy projects to Heroku with an app.json configuration, supporting team deployments, private spaces, and environment setups.
  • deploy_one_off_dyno - Execute code or commands in a sandboxed environment on a Heroku one-off dyno. Supports file creation, network access, environment variables, and automatic cleanup. Ideal for running scripts, tests, or temporary workloads.

Process & Dyno Management

  • ps_list - List all dynos for an app.
  • ps_scale - Scale the number of dynos up or down, or resize dynos.
  • ps_restart - Restart specific dynos, process types, or all dynos.

Add-ons

  • list_addons - List all add-ons for all apps or for a specific app.
  • get_addon_info - Get detailed information about a specific add-on.
  • create_addon - Provision a new add-on for an app.

Maintenance & Logs

  • maintenance_on - Enable maintenance mode for an app.
  • maintenance_off - Disable maintenance mode for an app.
  • get_app_logs - View application logs.

Pipeline Management

  • pipelines_create - Create a new pipeline.
  • pipelines_promote - Promote apps to the next stage in a pipeline.
  • pipelines_list - List available pipelines.
  • pipelines_info - Get detailed pipeline information.

Team & Space Management

  • list_teams - List teams you belong to.
  • list_private_spaces - List available spaces.

PostgreSQL Database Management

  • pg_psql - Execute SQL queries against the Heroku PostgreSQL database.
  • pg_info - Display detailed database information.
  • pg_ps - View active queries and execution details.
  • pg_locks - View database locks and identify blocking transactions.
  • pg_outliers - Identify resource-intensive queries.
  • pg_credentials - Manage database credentials and access.
  • pg_kill - Terminate specific database processes.
  • pg_maintenance - Show database maintenance information.
  • pg_backups - Manage database backups and schedules.
  • pg_upgrade - Upgrade PostgreSQL to a newer version.

Debugging

You can use the MCP inspector or the VS Code Run and Debug function to run and debug the server.

  1. Link the project as a global CLI using npm link from the project root.
  2. Build with npm run build:dev or watch for file changes and build automatically with npm run build:watch.

Use the MCP Inspector

Use the MCP inspector with no breakpoints in the code:

# Breakpoints are not available
npx @modelcontextprotocol/inspector heroku-mcp-server

Alternatively, if you installed the package in a specific directory or are actively developing on the Heroku MCP server:

cd /path/to/servers
npx @modelcontextprotocol/inspector dist/index.js

Use the VS Code Run and Debug Function

Use the VS Code Run and Debug launcher with fully functional breakpoints in the code:

  1. Locate and select the run debug.
  2. Select the configuration labeled "MCP Server Launcher" in the dropdown.
  3. Select the run/debug button.

VS Code / Cursor Debugging Setup

To set up local debugging with breakpoints:

  1. Store your Heroku auth token in the VS Code user settings:

    • Open the Command Palette (Cmd/Ctrl + Shift + P).
    • Type Preferences: Open User Settings (JSON).
    • Add the following snippet:
    {
      "heroku.mcp.authToken": "your-token-here"
    }
  2. Create or update .vscode/launch.json:

    {
      "version": "0.2.0",
      "configurations": [
        {
          "type": "node",
          "request": "launch",
          "name": "MCP Server Launcher",
          "skipFiles": ["<node_internals>/**"],
          "program": "${workspaceFolder}/node_modules/@modelcontextprotocol/inspector/bin/cli.js",
          "outFiles": ["${workspaceFolder}/**/dist/**/*.js"],
          "env": {
            "HEROKU_API_KEY": "${config:heroku.mcp.authToken}",
            "DEBUG": "true"
          },
          "args": ["heroku-mcp-server"],
          "sourceMaps": true,
          "console": "integratedTerminal",
          "internalConsoleOptions": "neverOpen",
          "preLaunchTask": "npm: build:watch"
        },
        {
          "type": "node",
          "request": "attach",
          "name": "Attach to Debug Hook Process",
          "port": 9332,
          "skipFiles": ["<node_internals>/**"],
          "sourceMaps": true,
          "outFiles": ["${workspaceFolder}/dist/**/*.js"]
        },
        {
          "type": "node",
          "request": "attach",
          "name": "Attach to REPL Process",
          "port": 9333,
          "skipFiles": ["<node_internals>/**"],
          "sourceMaps": true,
          "outFiles": ["${workspaceFolder}/dist/**/*.js"]
        }
      ],
      "compounds": [
        {
          "name": "Attach to MCP Server",
          "configurations": ["Attach to Debug Hook Process", "Attach to REPL Process"]
        }
      ]
    }
  3. Create .vscode/tasks.json:

    {
      "version": "2.0.0",
      "tasks": [
        {
          "type": "npm",
          "script": "build:watch",
          "group": {
            "kind": "build",
            "isDefault": true
          },
          "problemMatcher": ["$tsc"]
        }
      ]
    }
  4. (Optional) Set breakpoints in your TypeScript files.

  5. Press F5 or use the Run and Debug sidebar.

Note: the debugger automatically builds your TypeScript files before launching.

Environment Variables

The Heroku Platform MCP Server supports the following environment variables:

HEROKU_API_KEY

Your Heroku authorization token. Required for authentication with the Heroku Platform.

MCP_SERVER_REQUEST_TIMEOUT

Timeout in milliseconds for command execution. Defaults to 15000 (15 seconds) if not set.

Example configuration with custom timeout:

{
  "mcpServers": {
    "heroku": {
      "command": "npx",
      "args": ["-y", "@heroku/mcp-server"],
      "env": {
        "HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>",
        "MCP_SERVER_REQUEST_TIMEOUT": "30000"
      }
    }
  }
}

Release History

VersionChangesUrgencyDate
mcp-server-v1.2.2## [1.2.2](https://github.com/heroku/heroku-mcp-server/compare/mcp-server-v1.2.1...mcp-server-v1.2.2) (2026-04-22) ### Bug Fixes * validate one-off dyno source paths before shell staging ([#192](https://github.com/heroku/heroku-mcp-server/issues/192)) ([b523109](https://github.com/heroku/heroku-mcp-server/commit/b5231090b0c97ceceab8ec7fcf43af84fefade20))High4/22/2026
mcp-server-v1.2.1## [1.2.1](https://github.com/heroku/heroku-mcp-server/compare/mcp-server-v1.2.0...mcp-server-v1.2.1) (2026-03-17) ### Miscellaneous Chores * release 1.2.1 ([#178](https://github.com/heroku/heroku-mcp-server/issues/178)) ([8316f13](https://github.com/heroku/heroku-mcp-server/commit/8316f1346cc95cc7d9df1ad21261f10edab74043))Medium3/17/2026
mcp-server-v1.2.0## [1.2.0](https://github.com/heroku/heroku-mcp-server/compare/mcp-server-v1.1.0...mcp-server-v1.2.0) (2026-02-18) ### Features * add plugin installation detection and handle command not found errors ([#146](https://github.com/heroku/heroku-mcp-server/issues/146)) ([8ab7898](https://github.com/heroku/heroku-mcp-server/commit/8ab78985edf524a81f42d480e30458879d025ca5))Low2/18/2026
mcp-server-v1.2.0-beta.0## [1.2.0-beta.0](https://github.com/heroku/heroku-mcp-server/compare/mcp-server-v1.1.0-beta.0...mcp-server-v1.2.0-beta.0) (2026-02-18) ### Features * Add heroku_dev_center Resource ([#84](https://github.com/heroku/heroku-mcp-server/issues/84)) ([a13c6d9](https://github.com/heroku/heroku-mcp-server/commit/a13c6d9ad1c706d31c395baa06e4b9fe5ed33b24)) * add plugin installation detection and handle command not found errors ([#146](https://github.com/heroku/heroku-mcp-server/issues/146)) ([8ab7898]Low2/18/2026
mcp-server-v1.1.0## [1.1.0](https://github.com/heroku/heroku-mcp-server/compare/mcp-server-v1.0.7...mcp-server-v1.1.0) (2026-01-16) ### Features * Add heroku_dev_center Resource ([#84](https://github.com/heroku/heroku-mcp-server/issues/84)) ([a13c6d9](https://github.com/heroku/heroku-mcp-server/commit/a13c6d9ad1c706d31c395baa06e4b9fe5ed33b24)) * add the agents call command ([#56](https://github.com/heroku/heroku-mcp-server/issues/56)) ([ffafd8b](https://github.com/heroku/heroku-mcp-server/commit/ffafd8b9a1b8aLow1/16/2026
v1.0.7## What's Changed * feat: require global install of heroku cli for a4d by @justinwilaby in https://github.com/heroku/heroku-mcp-server/pull/63 * chore(deps): bump zod from 3.24.4 to 3.25.56 by @dependabot[bot] in https://github.com/heroku/heroku-mcp-server/pull/69 * add cursor button by @julianduque in https://github.com/heroku/heroku-mcp-server/pull/68 * fix: added the cli buildpack to ensure CLI availability by @justinwilaby in https://github.com/heroku/heroku-mcp-server/pull/74 * chore: Low12/15/2025
v1.0.6- Updating Core CLI dependency version (#58) 06d6dd9 --- https://github.com/heroku/heroku-mcp-server/compare/v1.0.5...v1.0.6Low5/22/2025
v1.0.4## What's Changed * v0.0.1 by @justinwilaby in https://github.com/heroku/heroku-mcp-server/pull/17 * fix: readme instructions by @justinwilaby in https://github.com/heroku/heroku-mcp-server/pull/19 * Updating repository instructions on installation by @sbosio in https://github.com/heroku/heroku-mcp-server/pull/20 * feat: Overwriting User-Agent on CLI requests for MCP mode by @sbosio in https://github.com/heroku/heroku-mcp-server/pull/21 * feat: Execute generated code on a one-off Dyno by @jLow5/6/2025
v1.0.3- fix: use the correct mcpServers json format (#41) bfb1312 - 1.0.2 (#40) ce17a83 --- https://github.com/heroku/heroku-mcp-server/compare/v1.0.2...v1.0.3 ## What's Changed * fix: use the correct mcpServers json format by @julianduque in https://github.com/heroku/heroku-mcp-server/pull/41 ## New Contributors * @julianduque made their first contribution in https://github.com/heroku/heroku-mcp-server/pull/41 **Full Changelog**: https://github.com/heroku/heroku-mcp-server/compareLow4/28/2025
v1.0.2## What's Changed * v0.0.1 by @justinwilaby in https://github.com/heroku/heroku-mcp-server/pull/17 * fix: readme instructions by @justinwilaby in https://github.com/heroku/heroku-mcp-server/pull/19 * Updating repository instructions on installation by @sbosio in https://github.com/heroku/heroku-mcp-server/pull/20 * feat: Overwriting User-Agent on CLI requests for MCP mode by @sbosio in https://github.com/heroku/heroku-mcp-server/pull/21 * feat: Execute generated code on a one-off Dyno by @jLow4/22/2025

Dependencies & License Audit

Loading dependencies...

Similar Packages

Perplexity-Comet-MCPNo descriptionmain@2026-06-07
google-workspace-mcp-with-scriptNo descriptionmain@2026-06-07
scagent🔍 Discover security flaws and improve code quality with ShenCha, an AI-powered autonomous code audit agent designed for developers.main@2026-06-07
claude-blockerđŸ›Ąī¸ Block distracting websites when Claude Code is in use, ensuring focused work sessions and minimizing interruptions.main@2026-06-07
any-api🚀 Seamlessly route requests between multiple LLM APIs using a unified gateway on Cloudflare Workers for efficient development and integration.main@2026-06-07

More in MCP Servers

agentroveYour own Claude Code UI, sandbox, in-browser VS Code, terminal, multi-provider support (Anthropic, OpenAI, GitHub Copilot, OpenRouter), custom skills, and MCP servers.
ProxmoxMCP-PlusEnhanced Proxmox MCP server with advanced virtualization management and full OpenAPI integration.
node9-proxyThe Execution Security Layer for the Agentic Era. Providing deterministic "Sudo" governance and audit logs for autonomous AI agents.
mcp-compressorAn MCP server wrapper for reducing tokens consumed by MCP tools.