---
name: "xpay-code-runner"
description: "Execute code snippets in multiple programming languages"
version: "1.0.0"
provider: "Code Runner"
tools: 4
---

# Code Runner

Execute code snippets in multiple programming languages

## Code Runner

Execute code snippets in multiple programming languages

### Available Tools (4)

- **execute_code**: Execute JavaScript or Python code securely with comprehensive error handling and security measures — $0.01/call
- **execute_code_with_variables**: Execute JavaScript or Python code with dynamic input variables that can be defined and passed as key-value pairs — $0.01/call
- **get_capabilities**: Get information about supported languages and execution capabilities — $0.01/call
- **validate_code**: Validate code for security and syntax issues without executing it — $0.01/call

### Quick Start

```json
{
  "mcpServers": {
    "code-runner": {
      "url": "https://code-runner.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:** 4
**Category:** Dev Tools

## When to Use

Use Code Runner tools when you need to execute code snippets in multiple programming languages. 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

- **Execute Code** — Execute JavaScript or Python code securely with comprehensive error handling and security measures — $0.01/call — [SKILL.md](https://xpay.tools/skills/code-runner/execute-code/SKILL.md)
- **Execute Code With Variables** — Execute JavaScript or Python code with dynamic input variables that can be defined and passed as key-value pairs — $0.01/call — [SKILL.md](https://xpay.tools/skills/code-runner/execute-code-with-variables/SKILL.md)
- **Get Capabilities** — Get information about supported languages and execution capabilities — $0.01/call — [SKILL.md](https://xpay.tools/skills/code-runner/get-capabilities/SKILL.md)
- **Validate Code** — Validate code for security and syntax issues without executing it — $0.01/call — [SKILL.md](https://xpay.tools/skills/code-runner/validate-code/SKILL.md)

## How to Execute

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

## Links

- Provider page: https://xpay.tools/code-runner/
- All providers: https://xpay.tools/explore
- Docs: https://docs.xpay.sh
