Piston MCP MCP Server

Remote code execution in 60+ languages via Piston.

TypeScript 120 8MIT
View on GitHub

Overview

This Model Context Protocol server provides remote code execution capabilities powered by the Piston API, enabling developers to run and test code across 60+ programming languages without local environment setup. Built in TypeScript, it eliminates infrastructure complexity by offering instant, sandbox-isolated code execution directly through Claude and other MCP-compatible applications, making it an essential tool for development workflows, educational platforms, and automated testing scenarios.

The server supports comprehensive language coverage including Python, JavaScript, Java, C++, Go, Rust, Ruby, PHP, and many others, with full output capture including stdout, stderr, and execution time metrics. It handles multiple file submissions, manages execution timeouts, and returns structured results that integrate seamlessly with AI-powered development assistants. The implementation leverages the robust Piston infrastructure, ensuring reliable and secure code evaluation without requiring developers to maintain their own execution environments.

This MCP server integrates seamlessly with any MCP-compatible client, including Claude Desktop and other AI development tools, making it ideal for code review automation, educational tutoring systems, competitive programming platforms, and rapid prototyping workflows. It proves particularly valuable for teams building AI-assisted development tools, technical interview platforms, or polyglot applications requiring dynamic code testing across diverse technology stacks.

Installation

npx -y @modelcontextprotocol/server-piston-mcp

Compatible Clients

Claude DesktopCursor

Related

FAQ

How do I install the Piston MCP MCP server?
Install via npx or pip depending on the language. Then add the server configuration to your MCP client settings file.
Which AI clients support the Piston MCP MCP server?
The Piston MCP MCP server is compatible with Claude Desktop, Cursor. Any MCP-compatible client should work.