About Python execute
Python execute is an MCP server published by STUzhy in the Social category: run Python code in a secure sandbox without local setup. Declare inline dependencies and execute snippets instantly. Prototype, test, and share reproducible results with ease.
Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
git clone https://github.com/STUzhy/py_execute_mcpThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Python execute
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
# py_execute_mcp
MCP stdio server that executes Python code inside Pyodide (WASM) using Bun as the runtime and bundler.
Prerequisites
- Bun v1.2 or newer (install script:
powershell -Command "iwr https://bun.sh/install.ps1 -UseBasicParsing | iex")
Install dependencies
bun install
Run the server (development)
bun run src/index.ts
Expose bun run src/index.ts as an MCP stdio endpoint in Claude Desktop, Cherry Studio, or any compliant client.
Package as a single executable
bun build src/index.ts --compile --outfile mcp-python
Optional: Offline Pyodide
Download a Pyodide distribution and set PYODIDE_INDEX_URL before launching:
set PYODIDE_INDEX_URL=file:///absolute/path/to/pyodide/full/
./mcp-python
Minimum example request
# /// script
# dependencies = ['pydash']
# ///
import sys
print(sys.version)
print(sum([1, 2, 3]))
"done"
python_execute will stream stdout/stderr and return the expression result under __RESULT__ when present.
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.