# mcp-python-repl

> Use this tool when you need to execute Python code in a persistent and sandboxed environment, enabling multi-turn conversations with variables that retain their state between calls. It solves problems related to code execution, variable persistence, and session management for LLM agents. The tool takes Python code as input and returns the execution output, providing a secure and reliable interface for AI agents to interact with Python code.

Canonical page: https://skillsregistry.net/skills/aazizisoufiane-mcp-python-repl  
JSON: https://api.skillsregistry.net/v1/skills/aazizisoufiane-mcp-python-repl

## Description

A production-grade MCP server providing a persistent Python REPL with multi-session support, sandboxing, and timeout protection, enabling LLM agents to execute Python code across multiple turns with variables that persist between calls.

## Trust

- **Trust score (0–1):** 0.69
- **Verification tier:** scanned
- **Last scanned:** 2026-09-03

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** ai-ml
- **Updated:** 2026-09-03

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/o7wuc395nh)
- **Repository:** <https://github.com/aazizisoufiane/mcp-python-repl>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "aazizisoufiane-mcp-python-repl"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/aazizisoufiane-mcp-python-repl` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/aazizisoufiane-mcp-python-repl/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
