{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_8bzjw2tqbq2k","handle":"mcp-python-repl","url":"https://wellknown.network/agents/mcp-python-repl","links":{"self":"https://wellknown.network/agents/mcp-python-repl/record.json","html":"https://wellknown.network/agents/mcp-python-repl","markdown":"https://wellknown.network/agents/mcp-python-repl/record.md","api":"https://wellknown.network/api/v1/agents/mcp-python-repl","status":"https://wellknown.network/api/v1/agents/mcp-python-repl/status","claim":"https://wellknown.network/agents/mcp-python-repl/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/mcp-python-repl/claim.json","badge":"https://wellknown.network/agents/mcp-python-repl/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/mcp-python-repl/history","tools":"https://wellknown.network/api/v1/agents/mcp-python-repl/tools"},"ard":{"identifier":"urn:air::server:mcp-python-repl","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"mcp-python-repl","summary":"A production-grade MCP server providing a persistent Python REPL with multi-session support, sandboxing, and timeout protection.","description":"# 🐍 mcp-python-repl\n\nA **production-grade** MCP server providing a persistent Python REPL with multi-session support, sandboxing, and timeout protection.\n\nBuilt for LLM agents that need to execute Python code across multiple turns with **variables that persist between calls**.\n\n## ✨ Features\n\n| Feature | Description |\n|---|---|\n| **Multi-session** | Isolated sessions with unique IDs — run parallel workflows |\n| **Persistent namespace** | Variables survive across calls within a session |\n| **Timeout protection** | Configurable execution timeout (SIGALRM on Unix) |\n| **Sandboxing** | Optional mode blocks dangerous modules (`subprocess`, `socket`, etc.) |\n| **Package install** | Install pip packages on-the-fly (prefers `uv` for speed) |\n| **File execution** | Run `.py` files inside the persistent session |\n| **Dual transport** | stdio (local) and streamable-http (remote) |\n| **Full introspection** | List variables, get history, check server status |\n| **Env-based config** | All settings via `REPL_*` environment variables |\n\n## 🚀 Quick Start\n\n### With Claude Desktop / Cursor (stdio)\n\nAdd to your MCP config:\n\n```json\n{\n  \"mcpServers\": {\n    \"python-repl\": {\n      \"command\": \"uvx\",\n      \"args\": [\"mcp-python-repl\"]\n    }\n  }\n}\n```\n\n### With uv (local dev)\n\n```bash\n# Clone and run\ngit clone https://github.com/soufiane-aazizi/mcp-python-repl.git\ncd mcp-python-repl\nuv run mcp-python-repl\n```\n\n### HTTP transport (remote / multi-client)\n\n```bash\nREPL_TRANSPORT=streamable-http REPL_PORT=8000 uv run mcp-python-repl\n```\n\n## 🛠️ Tools\n\n### Code Execution\n\n| Tool | Description |\n|---|---|\n| `repl_run_code` | Execute Python code with persistent namespace |\n| `repl_run_file` | Execute a `.py` file in the session |\n| `repl_install_package` | Install a pip package (uses `uv` if available) |\n\n### Namespace Management\n\n| Tool | Description |\n|---|---|\n| `repl_list_namespace` | List all variables in a session |\n| `repl_get_variable` | Get the full value of a variable |\n| `repl_set_vari…","publisher":{"name":"Soufiane Aazizi","url":null},"homepage":"https://github.com/aazizisoufiane","repository":"https://github.com/aazizisoufiane","version":"0.1.1","license":null,"protocols":["mcp"],"tags":["agent","interpreter","llm","mcp","model-context-protocol","python","repl"],"pricing":null,"endpoints":[{"url":"pypi:mcp-python-repl","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi","publisherName":"pypi"}},"derived":{"capabilities":[{"slug":"code.execution","name":"Code Execution","confidence":1,"provenance":"declared"},{"slug":"dev.version-control","name":"Version Control","confidence":0.745,"provenance":"derived"}],"categories":["code","dev"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"mcp-python-repl","registry":"pypi","observedAt":"2026-10-28T12:23:06.584Z","publishedAt":"2026-02-11T15:32:24.923430Z","latestVersion":"0.1.1"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"mcp-python-repl","url":"https://pypi.org/project/mcp-python-repl/","firstSeenAt":"2026-09-10T03:19:01.687Z","fetchedAt":"2026-10-28T12:22:22.147Z","normalizedAt":"2026-10-28T12:22:22.147Z"}]},"firstSeenAt":"2026-09-10T03:19:01.687Z","updatedAt":"2026-10-28T12:23:06.584Z"}