Heroku MCP server
OfficialHeroku-MCP-Server
Der MCP-Server der Heroku-Plattform funktioniert mit Common Runtime, Cedar Private und Shield Spaces sowie Fir Private Spaces.
Bereitstellung auf Heroku
Related MCP server: ChatGPT Gateway MCP Nyan
Überblick
Der Heroku Platform MCP Server ist eine spezialisierte Implementierung des Model Context Protocol (MCP), die die nahtlose Interaktion zwischen großen Sprachmodellen (LLMs) und der Heroku-Plattform ermöglicht. Dieser Server bietet umfangreiche Tools und Funktionen, mit denen LLMs Ressourcen der Heroku-Plattform lesen, verwalten und bedienen können.
Hauptmerkmale:
Direkte Interaktion mit Ressourcen der Heroku-Plattform durch LLM-gesteuerte Tools
Sicherer und authentifizierter Zugriff auf die APIs der Heroku-Plattform unter Nutzung der Heroku-CLI
Natürliche Sprachschnittstelle für Interaktionen auf der Heroku-Plattform
Hinweis: Der Heroku Platform MCP Server befindet sich derzeit in der frühen Entwicklungsphase. Da wir die Implementierung kontinuierlich verbessern und verfeinern, können sich die verfügbaren Funktionen und Tools weiterentwickeln. Wir freuen uns über Feedback und Beiträge, um die Zukunft dieses Projekts mitzugestalten.
Authentifizierung
Generieren Sie mit einer der folgenden Methoden ein Heroku-Autorisierungstoken:
Verwenden Sie den Heroku CLI-Befehl:
heroku authorizations:createVerwenden eines vorhandenen Tokens in der CLI
heroku auth:tokenKopieren Sie das Token und verwenden Sie es in den folgenden Schritten als Ihren
HEROKU_API_KEY.In Ihrem Heroku-Dashboard :
Wählen Sie Ihren Avatar und dann „Kontoeinstellungen“ aus.
Öffnen Sie die Registerkarte „Anwendungen“.
Klicken Sie neben „Autorisierungen “ auf „Autorisierung erstellen“ .
Konfigurieren des Heroku Platform MCP-Servers
Sie können Claude Desktop, Zed, Cursor, Windsurf und andere so konfigurieren, dass sie mit dem Heroku Platform MCP Server funktionieren.
Claude Desktop
Fügen Sie diesen Codeausschnitt zu Ihrer claude_desktop_config.json hinzu:
{
"mcpServers": {
"heroku": {
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}Zed
Fügen Sie diesen Codeausschnitt zu Ihrer Zed-Datei „ settings.json “ hinzu:
{
"context_servers": {
"heroku": {
"command": {
"path": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}
}Cursor
Hinweis: Sowohl die einfache als auch die explizite Form funktionieren, aber für maximale Kompatibilität mit Agent-Tools sollte der Schlüssel
"heroku"(nicht"heroku-mcp-server") sein.
Fügen Sie diesen Codeausschnitt zu Ihrem Cursor mcp.json hinzu:
Einfache Form:
{
"mcpServers": {
"heroku": {
"command": "npx -y @heroku/mcp-server",
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}Explizite Form:
{
"mcpServers": {
"heroku": {
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}Windsurf
Fügen Sie diesen Codeausschnitt zu Ihrer Windsurf mcp_config.json hinzu:
{
"mcpServers": {
"heroku": {
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}Cline
Fügen Sie diesen Codeausschnitt zu Ihrer Cline- config.json hinzu:
{
"mcpServers": {
"heroku": {
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}VSCode
Fügen Sie diesen Snippet zu Ihrer VSCode- settings.json oder .vscode/mcp.json hinzu:
{
"mcp": {
"servers": {
"heroku": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}
}Trae
Fügen Sie diesen Snippet zu Ihrem Trae mcp_settings.json hinzu:
{
"mcpServers": {
"heroku": {
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}Verfügbare Tools
Anwendungsmanagement
list_apps– Listet alle Heroku-Apps auf. Sie können Apps nach persönlichen, Mitarbeiter-, Team- oder Bereichs-Apps filtern.get_app_info– Erhalten Sie detaillierte Informationen zu einer App, einschließlich ihrer Konfiguration, Dynos und Add-Ons.create_app– Erstellen Sie eine neue App mit anpassbaren Einstellungen für Region, Team und Bereich.rename_app– Benennen Sie eine vorhandene App um.transfer_app– Übertragen Sie den Besitz einer App auf einen anderen Benutzer oder ein anderes Team.deploy_to_heroku– Stellen Sie Projekte mit einerapp.jsonKonfiguration auf Heroku bereit und unterstützen Sie Teambereitstellungen, private Bereiche und Umgebungs-Setups.deploy_one_off_dyno– Führen Sie Code oder Befehle in einer Sandbox-Umgebung auf einem Heroku One-Off-Dyno aus. Unterstützt Dateierstellung, Netzwerkzugriff, Umgebungsvariablen und automatische Bereinigung. Ideal für die Ausführung von Skripten, Tests oder temporären Workloads.
Prozess- und Prüfstandsmanagement
ps_list– Listet alle Dynos für eine App auf.ps_scale– Skalieren Sie die Anzahl der Dynos nach oben oder unten oder ändern Sie die Größe der Dynos.ps_restart– Starten Sie bestimmte Dynos, Prozesstypen oder alle Dynos neu.
Add-ons
list_addons– Listet alle Add-Ons für alle Apps oder für eine bestimmte App auf.get_addon_info– Erhalten Sie detaillierte Informationen zu einem bestimmten Add-on.create_addon– Stellen Sie ein neues Add-on für eine App bereit.
Wartung und Protokolle
maintenance_on– Wartungsmodus für eine App aktivieren.maintenance_off– Deaktivieren Sie den Wartungsmodus für eine App.get_app_logs– Anwendungsprotokolle anzeigen.
Pipeline-Management
pipelines_create– Erstellen Sie eine neue Pipeline.pipelines_promote– Apps in die nächste Phase einer Pipeline befördern.pipelines_list– Listet verfügbare Pipelines auf.pipelines_info– Erhalten Sie detaillierte Pipeline-Informationen.
Team- und Raummanagement
list_teams– Listet die Teams auf, denen Sie angehören.list_private_spaces– Listet verfügbare Plätze auf.
PostgreSQL-Datenbankverwaltung
pg_psql– Führen Sie SQL-Abfragen für die Heroku PostgreSQL-Datenbank aus.pg_info– Zeigt detaillierte Datenbankinformationen an.pg_ps– Aktive Abfragen und Ausführungsdetails anzeigen.pg_locks– Datenbanksperren anzeigen und blockierende Transaktionen identifizieren.pg_outliers– Identifizieren Sie ressourcenintensive Abfragen.pg_credentials– Datenbankanmeldeinformationen und Zugriff verwalten.pg_kill– Beenden Sie bestimmte Datenbankprozesse.pg_maintenance– Zeigt Informationen zur Datenbankwartung an.pg_backups– Verwalten Sie Datenbanksicherungen und -pläne.pg_upgrade– Aktualisieren Sie PostgreSQL auf eine neuere Version.
Debuggen
Sie können den MCP-Inspektor oder die VS Code-Funktion „Ausführen und Debuggen“ verwenden, um den Server auszuführen und zu debuggen.
Verknüpfen Sie das Projekt als globale CLI mithilfe
npm linkvom Projektstamm aus.Erstellen Sie mit
npm run build:devoder achten Sie auf Dateiänderungen und erstellen Sie automatisch mitnpm run build:watch.
Verwenden Sie den MCP-Inspektor
Verwenden Sie den MCP-Inspektor ohne Haltepunkte im Code:
# Breakpoints are not available
npx @modelcontextprotocol/inspector heroku-mcp-serverAlternativ, wenn Sie das Paket in einem bestimmten Verzeichnis installiert haben oder aktiv auf dem Heroku MCP-Server entwickeln:
cd /path/to/servers
npx @modelcontextprotocol/inspector dist/index.jsVerwenden Sie die VS Code-Ausführen- und Debug-Funktion
Verwenden Sie den VS Code Run and Debug-Launcher mit voll funktionsfähigen Haltepunkten im Code:
Suchen und wählen Sie „Debug ausführen“.
Wählen Sie im Dropdown-Menü die Konfiguration mit der Bezeichnung „
MCP Server Launcher“ aus.Wählen Sie die Schaltfläche „Ausführen/Debuggen“ aus.
VS Code / Cursor-Debugging-Setup
So richten Sie lokales Debuggen mit Haltepunkten ein:
Speichern Sie Ihr Heroku-Authentifizierungstoken in den VS Code-Benutzereinstellungen:
Öffnen Sie die Befehlspalette (Cmd/Strg + Umschalt + P).
Geben Sie
Preferences: Open User Settings (JSON)ein.Fügen Sie den folgenden Codeausschnitt hinzu:
{ "heroku.mcp.authToken": "your-token-here" }Erstellen oder aktualisieren Sie
.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"] } ] }Erstellen Sie
.vscode/tasks.json:{ "version": "2.0.0", "tasks": [ { "type": "npm", "script": "build:watch", "group": { "kind": "build", "isDefault": true }, "problemMatcher": ["$tsc"] } ] }(Optional) Legen Sie Haltepunkte in Ihren TypeScript-Dateien fest.
Drücken Sie F5 oder verwenden Sie die Seitenleiste
Run and Debug.
Hinweis: Der Debugger erstellt Ihre TypeScript-Dateien vor dem Start automatisch.
Installation über Smithery
So installieren Sie den Heroku Platform MCP Server für Claude Desktop automatisch über Smithery :
npx -y @smithery/cli install @heroku/heroku-mcp-server --client claudeAvailable Tools
33 toolscreate_addonA
Create a new Heroku add-on for an application. Use this tool when you need to: 1) Provision a new add-on for your app, 2) Specify a particular service and plan, 3) Set a custom name for the add-on or attachment. The tool handles the provisioning process and returns the new add-on's details.
Inputs: app (required), serviceAndPlan (required), as, name.
create_appA
Create a new Heroku application with customizable settings. Use this tool when a user wants to: 1) Create a new app with a specific name, 2) Create an app in a particular region (US/EU), 3) Create an app within a team, or 4) Create an app in a private space. The tool handles name generation if not specified and returns the new app's details.
Inputs: app, region, space, team.
deploy_to_herokuA
Deploy projects to Heroku, replaces manual git push workflows. Use this tool when you need to: 1) Deploy a new application with specific app.json configuration, 2) Update an existing application with new code, 3) Configure team or private space deployments, or 4) Set up environment-specific configurations. The tool handles app creation, source code deployment, and environment setup. Requires valid app.json in workspace or provided via configuration. Supports team deployments, private spaces, and custom environment variables.Use apps_list tool with the "all" param to get a list of apps for the user to choose from when deploying to an existing app and the app name was not provided.
Inputs: name (required), rootUri (required), appJson, env, +4 more.
get_addon_infoA
Get comprehensive information about a Heroku add-on. Use this tool when you need to: 1) View add-on details, 2) Check plan details and state, 3) View billing information. Accepts add-on ID, name, or attachment name.
Inputs: addon (required), app.
get_app_infoA
Get comprehensive information about a Heroku application. Use this tool when you need to: 1) View app configuration and settings, 2) Check dyno formation and scaling, 3) List add-ons and buildpacks, 4) View collaborators and access details, 5) Check domains and certificates. Accepts app name and optional JSON format. Returns detailed app status and configuration.
Inputs: app (required), json.
get_app_logsA
View application logs with flexible filtering options. Use this tool when you need to: 1) Monitor application activity in real-time, 2) Debug issues by viewing recent logs, 3) Filter logs by dyno, process type, or source.
Inputs: app (required), dynoName, processType, source.
list_addon_plansA
List available plans for a specific Heroku add-on service. Use this tool when you need to: 1) View all plans for a service, 2) Compare plan pricing, 3) Check plan availability. Requires add-on service slug and returns detailed plan information.
Inputs: service (required), json.
list_addonsA
List Heroku add-ons with flexible filtering options. Use this tool when you need to: 1) View all add-ons across your apps, 2) List add-ons for a specific app, 3) Get detailed add-on metadata in JSON format.
Inputs: all, app, json.
list_addon_servicesA
List available Heroku add-on services. Use this tool when you need to view all available add-on services. Returns a list of add-on services with their basic information.
Inputs: json.
list_appsA
List Heroku applications with flexible filtering options. Use this tool when you need to: 1) Show all apps owned by the user, 2) Show apps where the user is a collaborator (use all=true), 3) Filter apps by team or private space. Note: For checking app name availability, prefer using get_app_info as it returns a more focused dataset. The response includes app names, regions, and ownership information.
Inputs: all, json, personal, space, +1 more.
list_private_spacesA
List Heroku Private Spaces available to the user. Use this tool when you need to: 1) View all private spaces, 2) Get space details like CIDR blocks and regions, 3) Check space compliance features, or 4) View space capacity information. Supports JSON output for detailed metadata. Essential for enterprise space management.
Inputs: json.
list_teamsA
List Heroku Teams the user belongs to. Use this tool when you need to: 1) View all accessible teams, 2) Check team membership, 3) Get team metadata and enterprise relationships, or 4) Verify team access for app operations. Supports JSON output for detailed team information.
Inputs: json.
maintenance_offA
Disable maintenance mode for Heroku applications. Use this tool when you need to: 1) Restore normal application traffic routing, 2) Resume dyno operations after maintenance, 3) Complete deployment processes, 4) Verify application health after maintenance. The tool handles service restoration and process resumption.
Inputs: app (required).
maintenance_onA
Enable maintenance mode for Heroku applications. Use this tool when you need to: 1) Redirect traffic to a maintenance page, 2) Prepare for system updates or deployments, 3) Schedule planned maintenance windows, 4) Gracefully handle service interruptions. The tool manages traffic routing and process states while preserving running operations.
Inputs: app (required).
pg_backupsB
Manage database backup operations and schedules. Use this tool when you need to: 1) View existing database backups, 2) Monitor backup schedules and status, 3) Track backup operation progress, 4) Verify backup availability. The tool helps maintain database backup operations and disaster recovery readiness.
Inputs: app (required).
pg_credentialsA
Manage database access credentials and security. Use this tool when you need to: 1) View current database credentials, 2) Configure database access permissions, 3) Rotate credentials for security compliance, 4) Set up monitoring access. The tool helps maintain secure database access and credential management.
Inputs: app (required), database.
pg_infoA
Display detailed information about Heroku PostgreSQL databases. Use this tool when you need to: 1) View comprehensive database configuration and status, 2) Monitor database performance metrics, 3) Check connection and resource utilization, 4) Assess database health and capacity. The tool provides detailed insights into database operations and configuration.
Inputs: app (required), database.
pg_killA
Terminate specific database processes. Use this tool when you need to: 1) Stop problematic or stuck queries, 2) Clear blocking transactions, 3) Manage resource-intensive operations, 4) Handle runaway processes safely. The tool provides controlled process termination with optional force mode.
Inputs: app (required), pid (required), database, force.
pg_locksA
Analyze database locks and blocking transactions. Use this tool when you need to: 1) Identify blocked queries and lock chains, 2) Investigate deadlock situations, 3) Monitor transaction lock states, 4) Resolve blocking issues affecting performance. The tool helps diagnose and resolve database concurrency problems.
Inputs: app (required), database, truncate.
pg_maintenanceA
Monitor database maintenance status and operations. Use this tool when you need to: 1) Check current maintenance windows, 2) View scheduled maintenance activities, 3) Track maintenance operation progress, 4) Plan database maintenance tasks. The tool provides visibility into database maintenance state and scheduling.
Inputs: app (required), database.
pg_outliersB
Identify resource-intensive database operations. Use this tool when you need to: 1) Find slow or expensive queries, 2) Analyze query performance patterns, 3) Optimize database workload, 4) Track query statistics over time. The tool helps identify opportunities for performance optimization.
Inputs: app (required), database, num, reset, +1 more.
pg_psA
Monitor active database queries and processes. Use this tool when you need to: 1) View currently executing queries, 2) Track query progress and resource usage, 3) Identify long-running or blocked queries, 4) Debug performance issues in real-time. The tool provides detailed visibility into database activity with optional verbose output.
Inputs: app (required), database, verbose.
pg_psqlA
Execute SQL queries against Heroku PostgreSQL databases. Use this tool when you need to: 1) Run SQL queries for database analysis, 2) Investigate database locks and performance, 3) Make schema modifications or updates, 4) Execute complex database operations. The tool provides direct SQL access with support for file-based queries and credential management.
Inputs: app (required), command, credential, database, +1 more.
pg_upgradeA
Upgrade PostgreSQL database version. Use this tool when you need to: 1) Migrate to a newer PostgreSQL version, 2) Plan version upgrade paths, 3) Execute controlled version migrations, 4) Verify upgrade compatibility. The tool manages safe database version upgrades with confirmation protection.
Inputs: app (required), confirm, database, version.
pipelines_createA
Create new Heroku deployment pipelines. Use this tool when you need to: 1) Set up new deployment workflows, 2) Create staged application environments, 3) Organize apps by development stages, 4) Configure team-based pipeline structures. The tool manages pipeline creation with optional team and initial app configuration.
Inputs: name (required), stage (required), app, team.
pipelines_infoA
Display detailed pipeline configuration. Use this tool when you need to: 1) View pipeline stage configuration, 2) Check connected applications, 3) Verify pipeline settings, 4) Monitor pipeline status. The tool provides comprehensive pipeline information and structure details.
Inputs: pipeline (required), json.
pipelines_listA
View available Heroku pipelines. Use this tool when you need to: 1) List accessible pipelines, 2) Check pipeline ownership and access, 3) View pipeline organization, 4) Find specific pipeline configurations. The tool provides pipeline visibility with optional JSON output format.
Inputs: json.
pipelines_promoteA
Promote applications through pipeline stages. Use this tool when you need to: 1) Deploy code to staging or production environments, 2) Manage staged releases, 3) Coordinate multi-app promotions, 4) Control deployment workflows. The tool handles safe promotion of apps between pipeline stages.
Inputs: app (required), to.
ps_listA
List and monitor Heroku application dynos. Use this tool when you need to: 1) View all running dynos for an app, 2) Check dyno status and health, 3) Monitor application process states, 4) Verify dyno configurations. The tool provides process visibility with optional JSON output format.
Inputs: app (required), json.
ps_restartA
Restart Heroku application processes. Use this tool when you need to: 1) Restart specific dynos by name, 2) Restart all dynos of a process type, 3) Perform full application restarts, 4) Reset dyno states selectively. The tool manages process restarts with flexible targeting options.
Inputs: app (required), dyno-name, process-type.
ps_scaleA
Scale and resize Heroku application dynos. Use this tool when you need to: 1) Adjust dyno quantities up or down, 2) Change dyno sizes for performance, 3) View current formation details, 4) Manage resource allocation. The tool handles dyno scaling with support for type-specific adjustments.
Inputs: app (required), dyno.
rename_appA
Rename an existing Heroku application. Use this tool when a user needs to: 1) Change an app's name, or 2) Resolve naming conflicts. Requires both current app name and desired new name. The tool validates name availability and handles the rename process.
Inputs: app (required), newName (required).
transfer_appA
Transfer ownership of a Heroku application. Use this tool when a user wants to: 1) Transfer an app to another user's account, 2) Move an app to a team, 3) Change app ownership for organizational purposes. Requires the app name and recipient (email for users, name for teams). The current user must be the app owner or a team admin to perform the transfer.
Inputs: app (required), recipient (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 33 tools
Most tools have distinct purposes targeting specific resources and actions, such as create_app vs. get_app_info. However, some PostgreSQL tools like pg_ps and pg_outliers have overlapping monitoring functions that could cause confusion, though their descriptions help differentiate them.
Tool names follow a highly consistent verb_noun or noun_verb pattern throughout, such as create_addon, list_addons, pg_backups, and ps_scale. All use snake_case uniformly, with clear prefixes like 'pg_' for PostgreSQL and 'ps_' for process-related tools, making the naming predictable and readable.
With 33 tools, the count is high and may feel heavy for the Heroku domain, as it includes many specialized PostgreSQL tools that could be consolidated. While comprehensive, it borders on being overwhelming compared to typical well-scoped servers (3-15 tools), though it covers a broad range of operations.
The tool set provides complete CRUD and lifecycle coverage for Heroku's core domains, including apps, add-ons, PostgreSQL, pipelines, and processes. It handles creation, retrieval, updates, deletion, and management operations across all areas, with no obvious gaps that would cause agent failures.
Maintenance
Related MCP Connectors
Deploy apps from GitHub, read build/runtime logs, and manage your app's users from your AI agent.
Connect agents to Superflag with scoped read, write, or read-write access through browser login.
Give your AI agents trusted access to the full Postman platform.
Deploy your project to a live HTTPS URL from your AI tool; read logs, set variables, resize apps.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides comprehensive Heroku application management through the Heroku Platform API for AI assistants using the Model Context Protocol. It enables users to scale dynos, view deployment history, access logs, and manage environment variables through natural language.8MIT
- AlicenseNot gradedqualityBmaintenanceEnables agent clients to safely connect to tools and execution resources through MCP with authorization, approvals, audit, chat-context isolation, SSH/Docker access, and long-running command session tracking.MIT

gaiadesk-mcpofficial
AlicenseNot gradedqualityBmaintenanceEnables AI assistants and MCP clients to execute commands, copy/move files, manage background jobs and port forwarding, and optionally view and control remote screens using scoped, expiring agent tokens.6 npm1MIT
Create app hostingofficial
AlicenseNot gradedqualityCmaintenanceEnables AI assistants to create projects, deploy files, container images, or Git repositories, attach domains, set write-only secrets, add Postgres, read logs, metrics, and failure summaries, and roll back.Apache 2.0