This MCP server implementation provides a comprehensive set of Python development tools, enabling AI assistants to effectively work with Python code and projects. Developed by Gianluca Mazza, it offers features for file operations, code analysis, project management, and safe code execution within a controlled environment. The server is designed for use cases requiring advanced Python development capabilities, such as code refactoring, dependency management, and automated testing in AI-assisted programming workflows.
No reviews yet. Be the first to review!
Sign in to join the conversation
Read the contents of a file in the workspace. Parameters: filename (string), start_line (optional integer), end_line (optional integer)
Write content to a file in the workspace. Parameters: filename (string), content (string), mode (optional string)
List the contents of a directory with detailed metadata. Parameters: directory (string)
Parse and analyze the structure of a Python file. Parameters: filename (string)
Format Python code using a specified style. Parameters: code (string), style (string)
Lint a Python file and return issues found. Parameters: filename (string)
Create a new virtual environment for the project.
Install project dependencies from a requirements file or pyproject.toml. Parameters: requirements_file (optional string)
Check for version conflicts between installed packages.
Update a specific package to the latest version or a specified version. Parameters: package_name (string), version (optional string)
Execute Python code in a controlled environment and capture the output and errors. Parameters: code (string)