Integrations
Provides the ability to execute Python code in a sandboxed environment using pyodide, allowing safe Python code execution isolated from the operating system.
MCP Запустить Python
Модель сервера Context Protocol для запуска кода Python в «песочнице».
Код выполняется с использованием Pyodide в Deno и поэтому изолирован от остальной части операционной системы.
Полную документацию смотрите по адресу https://ai.pydantic.dev/mcp/run-python/ .
Сервер можно запустить с установленным deno
с помощью:
где:
-N -R=node_modules -W=node_modules
(псевдоним--allow-net --allow-read=node_modules --allow-write=node_modules
) разрешает сетевой доступ и доступ на чтение и запись к./node_modules
. Они необходимы для того, чтобы pyodide мог загружать и кэшировать стандартную библиотеку и пакеты Python--node-modules-dir=auto
сообщает deno использовать локальный каталогnode_modules
stdio
запускает сервер с транспортом Stdio MCP — подходит для локального запуска процесса как подпроцессаsse
запускает сервер с транспортом SSE MCP — запуск сервера как HTTP-сервера для локального или удаленного подключенияwarmup
запустит минимальный скрипт Python для загрузки и кэширования стандартной библиотеки Python. Это также полезно для проверки корректности работы сервера.
Вот пример использования @pydantic/mcp-run-python
с PydanticAI:
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Модель сервера Context Protocol для запуска кода Python в «песочнице».
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that allows execution of Python code within Daytona workspaces, providing a secure and isolated environment for executing and managing Python scripts.Last updated -18PythonApache 2.0
- -securityFlicense-qualityA Model Context Protocol server that allows management and execution of Blender Python scripts, enabling users to create, edit and run scripts in a headless Blender environment through natural language interfaces.Last updated -4Python
- -securityAlicense-qualityA Model Context Protocol server that enables seamless execution of commands, Python code, web content fetching, and reusable task management with secure credentials handling.Last updated -2PythonMIT License
- -securityAlicense-qualityA streamlined foundation for building Model Context Protocol servers in Python, designed to make AI-assisted development of MCP tools easier and more efficient.Last updated -12PythonMIT License