README.md
The Heroku Platform MCP Server works on Common Runtime, Cedar Private and Shield Spaces, and Fir Private Spaces.
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:
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 runningheroku --version
.
You can configure Claude Desktop, Zed, Cursor, Windsurf, and other clients to work with the Heroku Platform MCP Server.
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
:
{
"mcpServers": {
"heroku": {
"command": "heroku mcp:start"
}
}
}
{
"context_servers": {
"heroku": {
"command": {
"path": "heroku",
"args": ["mcp:start"]
}
}
}
}
{
"mcpServers": {
"heroku": {
"command": "heroku mcp:start"
}
}
}
{
"mcpServers": {
"heroku": {
"command": "heroku mcp:start"
}
}
}
{
"mcpServers": {
"heroku": {
"command": "heroku mcp:start"
}
}
}
{
"mcp": {
"servers": {
"heroku": {
"type": "stdio",
"command": "heroku",
"args": ["mcp:start"]
}
}
}
}
{
"mcpServers": {
"heroku": {
"command": "heroku mcp:start"
}
}
}
Note: When you use
heroku mcp:start
, the server authenticates using your current Heroku CLI session so you don't
need to set theHEROKU_API_KEY
environment variable. We recommend you useheroku mcp:start
, but if you prefer to
use an API key, you can use the alternate configuration below.
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.
HEROKU_API_KEY
Generate a Heroku authorization token with one of these methods:
heroku authorizations:create