Skip to main content
Glama

execute_python

Run Python code securely in a WebAssembly sandbox to execute scripts and return output. Supports pure Python without external dependencies.

Instructions

Execute Python code in a secure isolated WebAssembly sandbox. Both standard output (print statements) and the last evaluated expression are returned. Supports pure Python only (no C extensions like numpy/pandas).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesPython code to execute. Standard output and the final expression are returned.
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mavdol/capsule-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server