heroku-mcp-server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
> The Heroku Platform MCP Server works on Common Runtime, Cedar Private and Shield Spaces, and Fir Private Spaces.
Prerequisites
- **Heroku CLI** must be installed globally on your system, version **10.8.1 or higher**.
- Install or upgrade the Heroku CLI
Deploy on Heroku
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.
> **Note:** The Heroku Platform MCP Server requires the
> Heroku CLI to be installed globally (v10.8.1+). Ensure you have the correct version by running heroku --version.
Configure the Heroku Platform MCP Server
You can configure Claude Desktop, Zed, Cursor, Windsurf, and other clients to work with the Heroku Platform MCP Server.
Configure the Heroku Platform MCP Server with heroku mcp:start
Use heroku mcp:start to launch the Heroku Platform MCP Server. We recommend this method as it leverages your existing
Heroku CLI authentication, so you don't need to set the
HEROKU_API_KEY environment variable. The
heroku mcp:start command is available in Heroku CLI version 10.8.1 and later.
There are several benefits to configuring with heroku mcp:start:
- No need to manage or expose your Heroku API key
- Uses your current Heroku CLI authentication context
- Works seamlessly with supported clients
Example configuration for Claude Desktop:
Example configuration for Zed:
Example configuration for Cursor:
Example configuration for Windsurf:
Example configuration for Cline:
Example configuration for VSCode:
Example configuration for Trae:
> **Note:** When you use heroku mcp:start, the server authenticates using your current Heroku CLI session so you don't
> need to set the HEROKU_API_KEY environment variable. We recommend you use heroku mcp:start, but if you prefer to
> use an API key, you can use the alternate configuration below.
Configure the Heroku Platform MCP Server with npx -y @heroku/mcp-server
You can also launch the Heroku Platform MCP Server using the npx -y @heroku/mcp-server command. This method requires
you to set the HEROKU_API_KEY environment
variable with your Heroku
authorization token.
Generating the HEROKU_API_KEY
Generate a Heroku authorization token with one of these methods:
- Use the Heroku CLI command:
- Use an existing token in the CLI
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**.
Example configuration for Claude Desktop:
Example configuration for Zed:
Example configuration for Cursor:
Example configuration for Windsurf:
Example configuration for Cline:
Example configuration for VSCode:
Example configuration for Trae: