mcp-server

v1.2.15
@heroku/mcp-server Checked 6 hours ago Published 11 days ago

Heroku Platform MCP Server

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_apps

List Heroku apps: owned, collaborator access, team/space filtering

ParameterTypeDescription
allbooleanShow owned apps and collaborator access. Default: owned only
personalbooleanList personal account apps only, ignoring default team
spacestringFilter by private space name. Excludes team param
teamstringFilter by team name. Excludes space param

get_app_info

Get app details: config, dynos, addons, access, domains

ParameterTypeDescription
app *stringTarget app name. Requires access permissions
jsonbooleanJSON output with full metadata. Default: text format

create_app

Create app: custom name, region (US/EU), team, private space

ParameterTypeDescription
appstringApp name. Auto-generated if omitted
regionstringRegion: us/eu. Default: us. Excludes space param
spacestringPrivate space name. Inherits region. Excludes region param
teamstringTeam name for ownership

rename_app

Rename app: validate and update app name

ParameterTypeDescription
app *stringCurrent app name. Requires access
newName *stringNew unique app name

maintenance_on

Enable maintenance mode and redirect traffic for a Heroku app

ParameterTypeDescription
app *stringTarget Heroku app name

maintenance_off

Disable maintenance mode and restore normal app operations

ParameterTypeDescription
app *stringTarget Heroku app name

get_app_logs

App logs: monitor/debug/filter by dyno/process/source

ParameterTypeDescription
app *stringHeroku app name. Requires: permissions, Cedar-gen
dynoNamestringFormat: web.1/worker.2. Excludes processType
processTypestringweb|worker. All instances. Excludes dynoName
sourcestringapp=application, heroku=platform. Default: all

list_private_spaces

Lists Heroku Private Spaces with CIDR blocks, regions, compliance and capacity details. JSON output supported.

ParameterTypeDescription
jsonbooleanJSON output for detailed space metadata, text output if false/omitted

list_teams

Lists accessible Heroku Teams. Use for: viewing teams, checking membership, getting team metadata, and verifying access. JSON output available.

ParameterTypeDescription
jsonbooleanOutput format control - true for detailed JSON with team metadata, false/omitted for simplified text

list_addons

List add-ons: all apps or specific app, detailed metadata

ParameterTypeDescription
allbooleanList all add-ons across accessible apps. Overrides app param, shows full status
appstringFilter by app name. Shows add-ons and attachments. Uses Git remote default if omitted

get_addon_info

Get add-on details: plan, state, billing

ParameterTypeDescription
addon *stringAdd-on identifier: UUID, name (postgresql-curved-12345), or attachment name (DATABASE)
appstringApp context for add-on lookup. Required for attachment names. Uses Git remote default

create_addon

Create add-on: specify service, plan, custom names

ParameterTypeDescription
app *stringTarget app for add-on. Must have write access. Region/space affects availability
serviceAndPlan *stringFormat: service_slug:plan_slug (e.g., heroku-postgresql:essential-0)
asstringCustom attachment name. Used for config vars prefix. Must be unique in app
namestringGlobal add-on identifier. Must be unique across all Heroku add-ons

list_addon_services

List available add-on services and features

ParameterTypeDescription
jsonbooleanJSON output with sharing options and app generation support. Default: basic text

list_addon_plans

List service plans: features, pricing, availability

ParameterTypeDescription
service *stringService slug (e.g., heroku-postgresql). Get from list_addon_services
jsonbooleanJSON output with pricing, features, space compatibility. Default: text format

pg_psql

Execute SQL queries: analyze, debug, modify schema, manage data

ParameterTypeDescription
app *stringapp to run command against
commandstringSQL command. Single line. Ignored if file provided
credentialstringcredential to use
databasestringDatabase identifier: config var, name, ID, alias. Format: APP_NAME::DB for other apps. Default: DATABASE_URL
filestringSQL file path. Ignored if command provided

pg_info

View database status: config, metrics, resources, health

ParameterTypeDescription
app *stringTarget app name
databasestringDatabase identifier. Format: APP_NAME::DB for other apps. Default: all databases

pg_ps

Monitor active queries: progress, resources, performance

ParameterTypeDescription
app *stringTarget app name
databasestringDatabase identifier. Format: APP_NAME::DB for other apps. Default: DATABASE_URL
verbosebooleanShow query plan and memory usage

pg_locks

Analyze locks: blocked queries, deadlocks, concurrency

ParameterTypeDescription
app *stringTarget app name
databasestringDatabase identifier. Format: APP_NAME::DB for other apps. Default: DATABASE_URL
truncatebooleanTruncate queries to 40 chars

pg_outliers

Find resource-heavy queries: performance, patterns, optimization

ParameterTypeDescription
app *stringTarget app name
databasestringDatabase identifier. Format: APP_NAME::DB for other apps. Default: DATABASE_URL
numnumberNumber of queries to show. Default: 10
resetbooleanReset pg_stat_statements stats
truncatebooleanTruncate queries to 40 chars

pg_credentials

Manage access: credentials, permissions, security, monitoring

ParameterTypeDescription
app *stringTarget app name
databasestringDatabase identifier. Format: APP_NAME::DB for other apps. Default: DATABASE_URL

pg_kill

Stop processes: stuck queries, blocking transactions, runaway operations

ParameterTypeDescription
app *stringTarget app name
pid *numberProcess ID to terminate
databasestringDatabase identifier. Format: APP_NAME::DB for other apps. Default: DATABASE_URL
forcebooleanForce immediate termination

pg_maintenance

Track maintenance: windows, schedules, progress, planning

ParameterTypeDescription
app *stringTarget app name
databasestringDatabase identifier. Format: APP_NAME::DB for other apps. Default: DATABASE_URL

pg_backups

Manage backups: schedules, status, verification, recovery

ParameterTypeDescription
app *stringTarget app name

pg_upgrade

Upgrade PostgreSQL: version migration, compatibility, safety

ParameterTypeDescription
app *stringTarget app name
confirmstringConfirmation for destructive operation
databasestringDatabase identifier. Format: APP_NAME::DB for other apps. Default: DATABASE_URL
versionstringPostgreSQL version target

ps_list

List and monitor Heroku app dynos. View running dynos, check status/health, monitor process states, verify configurations.

ParameterTypeDescription
app *stringApp name to list processes for
jsonbooleanOutput process info in JSON format

ps_scale

Scale Heroku app dynos. Adjust quantities, change sizes, view formation details, manage resources.

ParameterTypeDescription
app *stringApp name to scale
dynostringDyno type and quantity (e.g., web=3:Standard-2X, worker+1). Omit to show current formation

ps_restart

Restart Heroku app processes. Restart specific dynos, process types, or all dynos. Reset dyno states selectively.

ParameterTypeDescription
app *stringApp name to restart processes for
dyno-namestringSpecific dyno to restart (e.g., web.1). Omit both options to restart all
process-typestringDyno type to restart (e.g., web). Omit both options to restart all

pipelines_create

Creates new Heroku deployment pipeline with configurable stages, apps, and team settings

ParameterTypeDescription
name *stringPipeline name
stage *stringInitial pipeline stage
appstringApp to add to pipeline
teamstringTeam owning the pipeline

pipelines_promote

Promotes apps between pipeline stages with configurable target applications

ParameterTypeDescription
app *stringSource app for promotion
tostringTarget apps for promotion (comma-separated)

pipelines_list

Lists accessible Heroku pipelines with ownership and configuration details

ParameterTypeDescription
jsonbooleanEnable JSON output

pipelines_info

Displays detailed pipeline configuration, stages, and connected applications

ParameterTypeDescription
pipeline *stringTarget pipeline name
jsonbooleanEnable JSON output

deploy_to_heroku

Use 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.

ParameterTypeDescription
appJson *stringApp.json config for deployment. Must follow schema: {"default":{"$schema":"http://json-schema.org/draft-07/schema#","title":"Heroku app.json Schema","description":"app.json is a manifest format for de…
name *stringApp name for deployment. Creates new app if not exists.
rootUri *stringWorkspace root directory path.
envobjectEnvironment variables overriding app.json values
internalRoutingbooleanEnable internal routing in private spaces.
spaceIdstringPrivate space ID for space deployments.
tarballUristringURL of deployment tarball. Creates from rootUri if not provided.
teamIdstringTeam ID for team deployments.

deploy_one_off_dyno

Run code/commands in Heroku one-off dyno with network and filesystem access. Requirements: - Show command output - Use app_info for buildpack detection - Support shell setup commands - Use stdout/stderr Features: - Network/filesystem access - Environment variables - File operations - Temp directory handling Usage: 1. Use Heroku runtime 2. Proper syntax/imports 3. Organized code structure 4. Package management: - Define dependencies - Minimize external deps - Prefer native modules Example package.json: ```json { "type": "module", "dependencies": { "axios": "^1.6.0" } } `…

ParameterTypeDescription
command *stringCommand to run in dyno.
name *stringTarget Heroku app name.
envobjectDyno environment variables.
sizestringDyno size.
sourcesarraySource files to include in dyno.
timeToLivenumberDyno lifetime in seconds.