Heroku MCP server
Official헤로쿠-mcp-서버
Heroku 플랫폼 MCP 서버는 Common Runtime, Cedar Private 및 Shield Spaces, Fir Private Spaces에서 작동합니다.
Heroku에 배포
Related MCP server: ChatGPT Gateway MCP Nyan
개요
Heroku 플랫폼 MCP 서버는 대규모 언어 모델(LLM)과 Heroku 플랫폼 간의 원활한 상호작용을 지원하도록 설계된 특수 모델 컨텍스트 프로토콜(MCP) 구현입니다. 이 서버는 LLM이 Heroku 플랫폼 리소스를 읽고, 관리하고, 운영할 수 있도록 지원하는 강력한 도구와 기능 세트를 제공합니다.
주요 특징:
LLM 기반 도구를 통해 Heroku 플랫폼 리소스와 직접 상호 작용
Heroku CLI를 활용하여 Heroku 플랫폼 API에 대한 안전하고 인증된 액세스
Heroku 플랫폼 상호 작용을 위한 자연어 인터페이스
참고: Heroku 플랫폼 MCP 서버는 현재 초기 개발 단계에 있습니다. 구현을 지속적으로 개선하고 개선함에 따라 사용 가능한 기능과 도구가 더욱 발전할 수 있습니다. 이 프로젝트의 미래를 형성하는 데 도움이 되는 여러분의 피드백과 기여를 환영합니다.
입증
다음 방법 중 하나를 사용하여 Heroku 인증 토큰을 생성하세요.
Heroku CLI 명령을 사용하세요:
지엑스피1
CLI에서 기존 토큰 사용
heroku auth:token토큰을 복사하여 다음 단계에서
HEROKU_API_KEY로 사용하세요.Heroku 대시보드 에서:
아바타를 선택한 다음 계정 설정을 선택하세요.
응용 프로그램 탭을 엽니다.
권한 부여 옆에 있는 권한 부여 만들기를 클릭합니다.
Heroku 플랫폼 MCP 서버 구성
Claude Desktop, Zed, Cursor, Windsurf 등을 구성하여 Heroku Platform MCP Server와 함께 작동하도록 할 수 있습니다.
클로드 데스크탑
claude_desktop_config.json 에 이 스니펫을 추가하세요:
{
"mcpServers": {
"heroku": {
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}제드 자의 명칭
이 스니펫을 Zed settings.json 에 추가하세요:
{
"context_servers": {
"heroku": {
"command": {
"path": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}
}커서
참고: 간단한 형식과 명시적 형식 모두 작동하지만, 에이전트 도구와의 최대 호환성을 위해 키는
"heroku"여야 합니다("heroku-mcp-server"가 아님).
Cursor mcp.json 에 이 스니펫을 추가하세요:
간단한 형태:
{
"mcpServers": {
"heroku": {
"command": "npx -y @heroku/mcp-server",
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}명시적 형태:
{
"mcpServers": {
"heroku": {
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}윈드서핑
Windsurf mcp_config.json 에 이 스니펫을 추가하세요:
{
"mcpServers": {
"heroku": {
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}클라인
Cline config.json 에 이 스니펫을 추가하세요:
{
"mcpServers": {
"heroku": {
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}VS코드
이 스니펫을 VSCode settings.json 또는 .vscode/mcp.json 에 추가하세요.
{
"mcp": {
"servers": {
"heroku": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}
}트레이
Trae mcp_settings.json 에 이 스니펫을 추가하세요:
{
"mcpServers": {
"heroku": {
"command": "npx",
"args": ["-y", "@heroku/mcp-server"],
"env": {
"HEROKU_API_KEY": "<YOUR_HEROKU_AUTH_TOKEN>"
}
}
}
}사용 가능한 도구
애플리케이션 관리
list_apps- 모든 Heroku 앱을 나열합니다. 개인, 공동작업자, 팀 또는 스페이스별로 앱을 필터링할 수 있습니다.get_app_info- 앱의 구성, 다이노, 애드온을 포함한 자세한 정보를 가져옵니다.create_app- 지역, 팀, 공간에 대한 사용자 정의 설정으로 새로운 앱을 만듭니다.rename_app- 기존 앱의 이름을 변경합니다.transfer_app- 앱의 소유권을 다른 사용자나 팀으로 이전합니다.deploy_to_heroku-app.json구성을 사용하여 Heroku에 프로젝트를 배포하고 팀 배포, 개인 공간 및 환경 설정을 지원합니다.deploy_one_off_dyno- Heroku 일회성 Dyno의 샌드박스 환경에서 코드나 명령을 실행합니다. 파일 생성, 네트워크 액세스, 환경 변수 및 자동 정리를 지원합니다. 스크립트, 테스트 또는 임시 워크로드 실행에 이상적입니다.
프로세스 및 다이노 관리
ps_list- 앱의 모든 다이노를 나열합니다.ps_scale- 다이노의 개수를 늘리거나 줄이거나, 다이노의 크기를 조절합니다.ps_restart- 특정 다이노, 프로세스 유형 또는 모든 다이노를 다시 시작합니다.
추가 기능
list_addons- 모든 앱 또는 특정 앱의 모든 애드온을 나열합니다.get_addon_info- 특정 애드온에 대한 자세한 정보를 얻습니다.create_addon- 앱에 대한 새로운 애드온을 제공합니다.
유지 관리 및 로그
maintenance_on- 앱의 유지 관리 모드를 활성화합니다.maintenance_off- 앱의 유지 관리 모드를 비활성화합니다.get_app_logs- 애플리케이션 로그를 봅니다.
파이프라인 관리
pipelines_create- 새로운 파이프라인을 생성합니다.pipelines_promote- 파이프라인에서 앱을 다음 단계로 승격합니다.pipelines_list- 사용 가능한 파이프라인을 나열합니다.pipelines_info- 자세한 파이프라인 정보를 얻습니다.
팀 및 공간 관리
list_teams- 소속된 팀을 나열합니다.list_private_spaces- 사용 가능한 공간을 나열합니다.
PostgreSQL 데이터베이스 관리
pg_psql- Heroku PostgreSQL 데이터베이스에 대해 SQL 쿼리를 실행합니다.pg_info- 자세한 데이터베이스 정보를 표시합니다.pg_ps- 활성 쿼리와 실행 세부 정보를 봅니다.pg_locks- 데이터베이스 잠금을 보고 차단 트랜잭션을 식별합니다.pg_outliers- 리소스를 많이 사용하는 쿼리를 식별합니다.pg_credentials- 데이터베이스 자격 증명과 액세스를 관리합니다.pg_kill- 특정 데이터베이스 프로세스를 종료합니다.pg_maintenance- 데이터베이스 유지 관리 정보를 표시합니다.pg_backups- 데이터베이스 백업 및 일정을 관리합니다.pg_upgrade- PostgreSQL을 최신 버전으로 업그레이드합니다.
디버깅
MCP 검사기 나 VS Code 실행 및 디버그 기능을 사용하여 서버를 실행하고 디버깅할 수 있습니다.
프로젝트 루트에서
npm link사용하여 프로젝트를 글로벌 CLI로 연결합니다.npm run build:dev로 빌드하거나,npm run build:watch로 파일 변경 사항을 감시하고 자동으로 빌드합니다.
MCP 검사기를 사용하세요
코드에 중단점 없이 MCP 검사기를 사용하세요.
# Breakpoints are not available
npx @modelcontextprotocol/inspector heroku-mcp-server또는 특정 디렉토리에 패키지를 설치했거나 Heroku MCP 서버에서 적극적으로 개발 중인 경우:
cd /path/to/servers
npx @modelcontextprotocol/inspector dist/index.jsVS Code 실행 및 디버그 기능 사용
코드에서 완벽한 기능을 갖춘 중단점을 갖춘 VS Code 실행 및 디버그 런처를 사용하세요.
실행 디버그를 찾아 선택합니다.
드롭다운에서 "
MCP Server Launcher"라고 표시된 구성을 선택합니다.실행/디버그 버튼을 선택하세요.
VS 코드/커서 디버깅 설정
중단점을 사용하여 로컬 디버깅을 설정하려면:
VS Code 사용자 설정에 Heroku 인증 토큰을 저장합니다.
명령 팔레트를 엽니다(Cmd/Ctrl + Shift + P).
유형
Preferences: Open User Settings (JSON).다음 스니펫을 추가합니다.
{ "heroku.mcp.authToken": "your-token-here" }.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"] } ] }.vscode/tasks.json생성합니다.{ "version": "2.0.0", "tasks": [ { "type": "npm", "script": "build:watch", "group": { "kind": "build", "isDefault": true }, "problemMatcher": ["$tsc"] } ] }(선택 사항) TypeScript 파일에 중단점을 설정합니다.
F5를 누르거나
Run and Debug사이드바를 사용하세요.
참고: 디버거는 실행하기 전에 자동으로 TypeScript 파일을 빌드합니다.
Smithery를 통해 설치
Smithery를 통해 Claude Desktop용 Heroku Platform MCP Server를 자동으로 설치하려면:
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