MCPServers
Python Toolbox - MCP server logo

Python Toolbox

4
0

Summary

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.

Available Actions(11)

read_file

Read the contents of a file located in the workspace. Parameters: file_path (string), start_line (optional integer), end_line (optional integer)

write_file

Write contents to a specified file in the workspace. Parameters: file_path (string), content (string), mode (optional string, default is 'w')

list_directory

List the contents of a directory within the workspace. Parameters: directory_path (string)

parse_python_file

Parse and analyze the structure of a Python file. Parameters: file_path (string)

format_code

Format the given code using a specified style. Parameters: code (string), style (optional string, default is 'black')

lint_code

Lint a Python file and return a list of issues found. Parameters: file_path (string)

create_virtual_environment

Create a new virtual environment for the project.

install_dependencies

Install project dependencies from a specified requirements file or from default sources (requirements.txt or pyproject.toml). Parameters: requirements_file (optional string)

check_dependency_conflicts

Check for any dependency conflicts in the installed packages.

update_package

Update a specified package to the latest version or to a specific version. Parameters: package_name (string), version (optional string)

execute_code

Execute a block of Python code in a controlled environment. Parameters: code (string)

Last Updated: April 25, 2025

Community Reviews

0.0
0 reviews
5
0
4
0
3
0
2
0
1
0

No reviews yet. Be the first to review!

Sign in to join the conversation

Coming soon to
HighlightHighlight AI

Language

TypeScript

Categories

Tags