Python Code Interpreter

8

Provides a secure Python code interpreter for executing code, installing packages, and running files in isolated environments with persistent execution contexts and variable extraction capabilities.

Category MCP Servers
Added Mar 28, 2026
Views 61

About

A Python-based MCP server by XuMing that provides a secure code interpreter for executing Python code, installing packages via pip, and running Python files in isolated environments. Built using FastMCP with comprehensive error handling and variable return capabilities, it offers four core tools: direct code execution with optional variable extraction, file-based code saving and execution with overwrite protection, package installation management, and existing Python file execution. The implementation uses temporary directories for isolation and maintains persistent execution contexts, making it valuable for AI assistants that need to perform data analysis, mathematical calculations, package management, and general Python scripting tasks in a controlled environment.

Is this your product? Claim this listing with an email at your domain to post updates.

Is this your project?

Claim this listing to manage your page, access analytics, and unlock upgrades. Verification takes 60 seconds.

Log In to Claim

Share This Project

Embed Badge

Add this badge to your README:

[![Listed on AiList](https://hifriendbot.com/ai-list/badge/python-code-interpreter.svg)](https://hifriendbot.com/ai-list/python-code-interpreter/)
Listed on AiList

List Your Project

Join the directory Ai agents read. Free forever.

Submit Your Project