create_addon
Create add-on: specify service, plan, custom names
Find the query that is pinning your Heroku Postgres, kill it, scale the dynos and promote the fix through the pipeline.
LABSCO SUMMARY
The Postgres tools are the reason to install it: pg_outliers ranks queries by resource use, pg_locks shows what is blocking what, pg_ps shows what is running, and pg_kill ends it — the same sequence you would run by hand, without the plugin invocations in between. deploy_one_off_dyno is the sharpest tool in the set: it runs your command against the real app with network and filesystem access, which is exactly as useful and as consequential as it sounds.
Heroku's own server: 33 tools over apps, dynos, add-ons, pipelines and Postgres, including a psql passthrough and a one-off dyno with network and filesystem access.
A Heroku account key in HEROKU_API_KEY. deploy_to_heroku additionally needs a valid app.json passed through its appJson parameter.
One command plus a key — npx -y @heroku/mcp-server, then supply credentials
USE CASES
Rank the resource-heavy queries, look at what is running and what is blocking what, and end the one that is stuck — the same four steps the pg plugin gives you, in one place.
Deploy from an app.json, then move the app up the pipeline stages rather than deploying twice.
See the current formation, change quantity or dyno size, and restart what needs it — without a second window open on the dashboard.
Put the app into maintenance, run the SQL directly against the database, then take it back out — with the logs available in between.
A one-off dyno gets network and filesystem access with a size and a time to live, which is the right shape for a backfill or a data fix you do not want in the codebase.
List the services, read the plans with their features and pricing, and check what the app is currently on before changing anything.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
create_addonCreate add-on: specify service, plan, custom names
create_appCreate app: custom name, region (US/EU), team, private space
deploy_one_off_dynoRun code/commands in Heroku one-off dyno with network and filesystem access.
Requirements:
Features:
Usage:
Example package.json:
{
"type": "module",
"dependencies": {
"axios": "^1.6.0"
}
}deploy_to_herokuUse for all deployments. Deploys new/existing apps, with or without teams/spaces, and env vars to Heroku. Ask for app name if missing. Requires valid app.json via appJson param.
get_addon_infoGet add-on details: plan, state, billing
get_app_infoGet app details: config, dynos, addons, access, domains
get_app_logsApp logs: monitor/debug/filter by dyno/process/source
list_addon_plansList service plans: features, pricing, availability
list_addon_servicesList available add-on services and features
list_addonsList add-ons: all apps or specific app, detailed metadata
list_appsList Heroku apps: owned, collaborator access, team/space filtering
list_private_spacesLists Heroku Private Spaces with CIDR blocks, regions, compliance and capacity details. JSON output supported.
list_teamsLists accessible Heroku Teams. Use for: viewing teams, checking membership, getting team metadata, and verifying access. JSON output available.
maintenance_offDisable maintenance mode and restore normal app operations
maintenance_onEnable maintenance mode and redirect traffic for a Heroku app
pg_backupsManage backups: schedules, status, verification, recovery
pg_credentialsManage access: credentials, permissions, security, monitoring
pg_infoView database status: config, metrics, resources, health
pg_killStop processes: stuck queries, blocking transactions, runaway operations
pg_locksAnalyze locks: blocked queries, deadlocks, concurrency
pg_maintenanceTrack maintenance: windows, schedules, progress, planning
pg_outliersFind resource-heavy queries: performance, patterns, optimization
pg_psMonitor active queries: progress, resources, performance
pg_psqlExecute SQL queries: analyze, debug, modify schema, manage data
pg_upgradeUpgrade PostgreSQL: version migration, compatibility, safety
pipelines_createCreates new Heroku deployment pipeline with configurable stages, apps, and team settings
pipelines_infoDisplays detailed pipeline configuration, stages, and connected applications
pipelines_listLists accessible Heroku pipelines with ownership and configuration details
pipelines_promotePromotes apps between pipeline stages with configurable target applications
ps_listList and monitor Heroku app dynos. View running dynos, check status/health, monitor process states, verify configurations.
ps_restartRestart Heroku app processes. Restart specific dynos, process types, or all dynos. Reset dyno states selectively.
ps_scaleScale Heroku app dynos. Adjust quantities, change sizes, view formation details, manage resources.
rename_appRename app: validate and update app name
BEFORE YOU INSTALL
33 tools when we connected. transfer_app is documented but did not appear on a live connection. Many tools write without a guard, including create_app, ps_scale, pg_kill, pg_upgrade and deploy_one_off_dyno, which runs code on a one-off dyno.
All 14 documented setups run the server on your machine.
CONTEXT COST
Rated by the size of the 33 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y @heroku/mcp-server{
"mcpServers": {
"heroku": {
"command": "heroku mcp:start"
}
}
}{
"mcpServers": {
"heroku": {
"command": "npx",
"args": [
"-y",
"@heroku/mcp-server"
],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}{
"context_servers": {
"heroku": {
"command": {
"path": "heroku",
"args": [
"mcp:start"
]
}
}
}
}{
"context_servers": {
"heroku": {
"command": {
"path": "npx",
"args": [
"-y",
"@heroku/mcp-server"
],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}
}{
"mcpServers": {
"heroku": {
"command": "npx -y @heroku/mcp-server",
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}{
"servers": {
"heroku": {
"type": "stdio",
"command": "heroku",
"args": [
"mcp:start"
]
}
}
}{
"servers": {
"heroku": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@heroku/mcp-server"
],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}