Heroku MCP Code Execution - Python
@heroku
About Heroku MCP Code Execution - Python
MCP (model context protocol) server for running python code.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-code-exec-python": {
"command": "python",
"args": [
"example_clients/streamable_http_client.py",
"mcp",
"call_tool",
"--args",
"{"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Heroku MCP Code Execution - Python?
This MCP server enables Python code execution on the Heroku platform. It supports Streamable HTTP, SSE, and STDIO transports, and is designed for developers who need to run Python code execution tasks through the Model Context Protocol.
How to use Heroku MCP Code Execution - Python?
Deploy via the one-click Heroku button or manually using the Heroku CLI. Set required environment variables (API_KEY, STDIO_MODE_ONLY, REMOTE_SERVER_TRANSPORT_MODULE), then use MCP clients (STDIO or HTTP/SSE) to call the code_exec_python tool with code and optional packages arguments.
Key features of Heroku MCP Code Execution - Python
- Executes Python code with optional pip package installation
- Supports Streamable HTTP, SSE, and STDIO transports
- Deploys to Heroku via one-click or manual setup
- API key authentication for access control
- Configurable STDIO-only mode for code execution isolation
Use cases of Heroku MCP Code Execution - Python
- Run Python code execution tasks via MCP from AI assistants
- Test and debug Python code in isolated Heroku one-off dynos
- Integrate Python code execution into MCP-based agent workflows
FAQ from Heroku MCP Code Execution - Python
What transports does the server support?
It supports Streamable HTTP, SSE, and STDIO transports, for both local and remote testing.
What is the STDIO_MODE_ONLY configuration for?
When set to true, only STDIO-based communication is allowed, enhancing security and code execution isolation. It is recommended for non-development environments.
Can I install additional Python packages before execution
Frequently asked questions
What transports does the server support?
It supports Streamable HTTP, SSE, and STDIO transports, for both local and remote testing.
What is the STDIO_MODE_ONLY configuration for?
When set to `true`, only STDIO-based communication is allowed, enhancing security and code execution isolation. It is recommended for non-development environments.
Basic information
More Developer Tools MCP servers

Windframe
Windframe MCP gives your AI the design taste needed to create consistent, production-ready UI that feels intentionally designed. Available at https://windframe.dev/mcp
Mobbin
MobbinMobbin MCP connects your AI agents to 600,000+ real product screens, so what they build starts with what already works.

Reelier
Maxime HouleAgents make claims. Reelier writes receipts — record an agent's tool-call workflow once, replay it deterministically at 0 tokens, and diff runs to catch drift.

directree
coburn2716directree MCP server — query the honest software directory from any AI assistant

Codex Pets
astandrikPublic read-only MCP server for discovering, inspecting, installing, and sharing approved Codex-compatible animated pet packs.
Comments