SuperAPI AI Directory

piston-mcp

Execute code through the Piston remote code execution engine.

Open website

About this tool

piston-mcp is an MCP (Model Context Protocol) server designed to enable large language models (LLMs) to connect to and execute code, relying on the Piston remote code execution engine under the hood.

Purpose: To provide LLMs with code execution capabilities, enabling them to run code by calling Piston through the MCP protocol.

Main capability: As an MCP server, it acts as a bridge between the LLM and Piston, enabling the LLM to send code and obtain execution results.

How to use: Users can try piston-mcp locally without cloning the repository. First, uv needs to be installed, and an MCP client (such as Claude Desktop) needs to be downloaded. Then update the MCP client's configuration to connect to piston-mcp. For Claude Desktop, the configuration file is usually located in a specific location (the official documentation does not provide a specific path). After configuration is complete, the MCP client can run code.

Applicable scenarios: Suitable for development and testing scenarios that require an LLM to execute code, for example, calling code execution functionality through an MCP client in a local environment.

Limitations: According to the official statement, as of February 15, 2026, the Piston API is no longer publicly available and requires an authorization token. Therefore, piston-mcp will no longer be able to work with publicly hosted Piston instances. Other limitations (such as supported programming languages, execution environments, etc.) are not yet provided.