Loading connector details…
Loading connector details…
Choose a unique username to continue using AgentHotspot
by yzfly • Tools & CLI
A local MCP server that lets LLM agents run Python code, manage environments, and read/write files inside an isolated working directory.
Execute Python code or run scripts in a controlled environment and capture stdout/stderr results.
Read, create, or modify project files (including binary files) within a secured, isolated working directory.
Inspect and manage Python environments and packages (list environments, list installed packages, install packages).
This MCP server exposes Python environment and file-system capabilities to LLMs: list and use Python environments, run code or scripts, manage packages, and perform safe file read/write operations (text and binary). It enforces an isolated working directory, file size limits, and overwrite protections to reduce risk when executing code. Useful for automating development tasks, debugging, and programmatic execution from agent workflows.
List all available Python environments (system Python and conda environments).
List installed packages for a specific Python environment. Args: environment: Name of the Python environment
Execute Python code with flexible execution modes. Args: code: Python code to execute execution_mode: Execution mode - "inline" (default, fast, in-process) or "subprocess" (isolated) session_id: Session ID for inline mode to maintain state across executions environment: Python environment name (only for subprocess mode) save_as: Optional filename to save the code before execution timeout: Maximum execution time in seconds (only enforced for subprocess mode) Returns: Execution result with output Execution modes: - "inline" (default): Executes code in the current process. Fast and reliable, maintains session state. Use for most code execution tasks. - "subprocess": Executes code in a separate Python process. Use when you need environment isolation or a different Python environment.
Execute a Python file (always uses subprocess for file execution). Args: file_path: Path to the Python file to execute environment: Name of the Python environment to use arguments: List of command-line arguments to pass to the script timeout: Maximum execution time in seconds (default: 300)
Install a Python package in the specified environment. Args: package_name: Name of the package to install environment: Name of the Python environment upgrade: Whether to upgrade if already installed timeout: Maximum execution time in seconds
Generate a template for a Python function with docstring.
Help refactor Python code for better readability and performance.
Help debug a Python error.
List all available Python environments as a resource.
List all Python files in the working directory as a resource.
Scores are informational only and provided “as is” without warranty. AgentHotspot assumes no liability for actions taken based on these ratings.