Heroku Mcp Server
Heroku Platform MCP Server using the Heroku CLI
Heroku Mcp Server scores 36 (Limited), licensed Apache-2.0 and written in TypeScript. It installs as a local process. It declares 32 tools. Filed under Cloud. GitHub shows 83 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Limited trust
36 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade B
84/100 for listing completeness. Lost points: 10 of 32 tools barely described, short summary.
How quality is graded
Where the 36 comes from
0 + 6 + 6 + 10 + 7 + 7 = 36. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 6 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 6 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 7 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "heroku-heroku-mcp-server": { "command": "docker", "args": [ "run", "-i", "--rm", "mcp/heroku" ] } }}
Environment variables
This server does not declare environment variables.
Tools32Tool docs quality grade D
All capabilitiescreate_addontoolProvision a new add-on for an app.
create_apptoolCreate a new app with customizable settings for region, team, and space.
Execute code or commands in a sandboxed environment on a Heroku one-off dyno. Supports file
deploy_to_herokutoolDeploy projects to Heroku with an app.json configuration, supporting team deployments, private
get_addon_infotoolGet detailed information about a specific add-on.
get_app_infotoolGet detailed information about an app, including its configuration, dynos, and add-ons.
get_app_logstoolView application logs.
list_addonstoolList all add-ons for all apps or for a specific app.
list_appstoolList all Heroku apps. You can filter apps by personal, collaborator, team, or space.
List available spaces.
list_teamstoolList teams you belong to.
maintenance_offtoolDisable maintenance mode for an app.
About
heroku-mcp-server
The Heroku Platform MCP Server works on Common Runtime, Cedar Private and Shield Spaces, and Fir Private Spaces.
Prerequisites
- Heroku CLI must be installed globally on your system, version 10.8.1 or higher.
Deploy on Heroku
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 theHEROKU_API_KEYenvironment variable. We recommend you useheroku 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:tokenCopy the token and use it as your
HEROKU_API_KEYin the following steps. -
In your Heroku Dashboard:
- Select your avatar, then select Account Settings.
- Open the Applications tab.
- 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 theHEROKU_API_KEYenvironment 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 anapp.jsonconfiguration, 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.
- Link the project as a global CLI using
npm linkfrom the project root. - Build with
npm run build:devor watch for file changes and build automatically withnpm 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:
- Locate and select the run debug.
- Select the configuration labeled "
MCP Server Launcher" in the dropdown. - Select the run/debug button.
VS Code / Cursor Debugging Setup
To set up local debugging with breakpoints:
-
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" } -
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"] } ] } -
Create
.vscode/tasks.json:{ "version": "2.0.0", "tasks": [ { "type": "npm", "script": "build:watch", "group": { "kind": "build", "isDefault": true }, "problemMatcher": ["$tsc"] } ] } -
(Optional) Set breakpoints in your TypeScript files.
-
Press F5 or use the
Run and Debugsidebar.
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"
}
}
}
}
MCP_SERVER_IDLE_TIMEOUT
Timeout in milliseconds of inactivity after which the underlying Heroku CLI process is shut down so an idle server does
not keep a CLI process running. The process is started on the first tool call and transparently restarted on the next
call after a teardown. Defaults to 300000 (5 minutes) if not set; set to 0 to disable idle teardown and keep the
process running for the lifetime of the server.
Frequently asked questions
What is Heroku Mcp Server?
Heroku Platform MCP Server using the Heroku CLI
How do I install Heroku Mcp Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Heroku Mcp Server runs locally from the Docker image mcp/heroku with the command docker run -i --rm mcp/heroku.
Is Heroku Mcp Server free and open source?
Yes. Heroku Mcp Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Heroku Mcp Server support remote (HTTP) connections?
No remote endpoint is listed for Heroku Mcp Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Heroku Mcp Server provide?
Heroku Mcp Server provides 32 tools, including create_addon, create_app, deploy_one_off_dyno, and deploy_to_heroku. See the full tool list for descriptions and parameters.
How is Heroku Mcp Server's trust score calculated?
Heroku Mcp Server scores 36 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.