heroku-mcp-server
Description
# heroku-mcp-server > The Heroku Platform MCP Server works on Common Runtime, Cedar Private and Shield Spaces, and Fir Private Spaces. ## Overview The Heroku Platform MCP Server is a specialized Model Context Protocol (MCP) implementation designed to facilitate seamless…
About
# heroku-mcp-server > The Heroku Platform MCP Server works on Common Runtime, Cedar Private and Shield Spaces, and Fir Private Spaces. ## Overview The Heroku Platform MCP Server is a specialized Model Context Protocol (MCP) implementation designed to facilitate seamless interaction between large language models (LLMs)…
Details
- Author
- andyciggy
- Downloads
- 208
- Categories
- Other
Jump to
- Direct LLM-driven interaction with Heroku Platform resources
- Secure, authenticated access via Heroku CLI tokens
- Natural language interface for Heroku operations
- Application management (list, create, rename, transfer, deploy)
- Process and dyno management (list, scale, restart)
- Add-on provisioning and management
- Maintenance mode and application logs
- Pipeline management (create, promote, list, info)
- PostgreSQL database management (SQL queries, info, backups, upgrade)
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
heroku-mcp-serverCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install and run via npx (npx -y @heroku/mcp-server) and set the HEROKU_API_KEY environment variable with a Heroku authorization token. Add the server configuration (as shown in the README) to your MCP client (e.g., Claude Desktop, Zed, Cursor, Windsurf, Cline, VSCode, or Trae).
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"heroku-mcp-server": {
"heroku": {
"command": "npx",
"args": [
"-y",
"@heroku/mcp-server"
],
"env": {
"HEROKU_API_KEY": ""
}
}
}
}
}
McpServers
{
"heroku": {
"command": "npx",
"args": [
"-y",
"@heroku/mcp-server"
],
"env": {
"HEROKU_API_KEY": ""
}
}
}
heroku-mcp-server
> The Heroku Platform MCP Server works on Common Runtime, Cedar Private and Shield Spaces, and Fir Private Spaces.
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.
Authentication
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.
Configure the Heroku Platform MCP Server
You can configure Claude Desktop, Zed, Cursor, Windsurf and others to work with the Heroku Platform MCP Server.
Claude Desktop
Add this snippet to your claude_desktop_config.json:
{
"mcpServers": {
"heroku": {
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}
Zed
Add this snippet to your Zed settings.json:
{
"context_servers": {
"heroku": {
"command": {
"path": "npx",
"args": ["-y", "@heroku/mcp-server"]
},
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}
Cursor
Add this snippet to your Cursor mcp.json:
{
"mcpServers": {
"heroku": {
"command": {
"path": "npx",
"args": ["-y", "@heroku/mcp-server"]
},
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}
Windsurf
Add this snippet to your Windsurf mcp_config.json:
{
"mcpServers": {
"heroku": {
"command": {
"path": "npx",
"args": ["-y", "@heroku/mcp-server"]
},
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}
Cline
Add this snippet to your Cline config.json:
{
"mcpServers": {
"heroku": {
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}
VSCode
Add this snippet to your VSCode settings.json or .vscode/mcp.json:
{
"mcp": {
"servers": {
"heroku": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}
}
Trae
Add this snippet to your Trae mcp_settings.json:
{
"mcpServers": {
"heroku": {
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_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:
```
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



