---
name: "xpay-python-execute"
description: "Execute Python code in a sandboxed environment"
version: "1.0.0"
provider: "Python Execute"
tools: 1
---

# Python Execute

Execute Python code in a sandboxed environment

## Python Execute

Execute Python code in a sandboxed environment

### Available Tools (1)

- **python_execute**: Run Python in a Pyodide sandbox with optional PEP 723 requirements. — $0.01/call

### Quick Start

```json
{
  "mcpServers": {
    "python-execute": {
      "url": "https://python-execute.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"
    }
  }
}
```

### Pricing

$0.01 per tool call. Pay per use from your XPay wallet. No subscriptions.

Get an API key at [xpay.tools](https://xpay.tools).


**Tools:** 1
**Category:** Dev Tools

## When to Use

Use Python Execute tools when you need to execute python code in a sandboxed environment. All tools are available through xpay✦'s single MCP connection.

## MCP Connection

```json
{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}
```

For Claude Code:
```bash
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
```

## Available Tools

- **Python Execute** — Run Python in a Pyodide sandbox with optional PEP 723 requirements. — $0.01/call — [SKILL.md](https://xpay.tools/skills/python-execute/python-execute/SKILL.md)

## How to Execute

1. **`xpay_discover`** — Search for tools: `xpay_discover("python-execute")`
2. **`xpay_details`** — Get input schema: `xpay_details("python-execute/TOOL_NAME")`
3. **`xpay_run`** — Execute: `xpay_run("python-execute/TOOL_NAME", { ...inputs })`
4. **`xpay_balance`** — Check credits

## Links

- Provider page: https://xpay.tools/python-execute/
- All providers: https://xpay.tools/explore
- Docs: https://docs.xpay.sh
