python-mcp-server

python-mcp-server

3.1

If you are the rightful owner of python-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server for executing Python code and managing Python environments.

The Python MCP Server is designed to facilitate the execution of Python code and management of Python environments through a Model Context Protocol. It allows integration with language models like Claude and other LLMs to run Python scripts, manage files, and handle Python packages efficiently. The server supports various functionalities such as executing code snippets, managing files, and configuring execution environments. It requires Node.js and Python to be installed and can be integrated with platforms like Claude Desktop and Cline for seamless operation.

Features

  • Code Execution: Run Python code snippets or execute Python files.
  • File Management: List, read, and write Python files.
  • Python Environment: Check Python version and environment details.
  • Configurable Execution: Set timeouts, working directories, and command-line arguments.

Tools

  1. execute_python_code

    Executes Python code snippets with optional timeout and arguments.

  2. execute_python_file

    Executes a Python file with optional timeout and arguments.

  3. check_python_version

    Returns information about the installed Python version.

  4. list_python_files

    Lists Python files in a directory with optional recursive search.

  5. read_python_file

    Reads the content of a Python file.

  6. write_python_file

    Writes content to a Python file, creating directories if necessary.