mcp_python_toolbox

mcp_python_toolbox

2

MCP Python Toolbox is an MCP server designed to enhance Python development with AI assistant integration. It offers robust file management, code analysis, dependency handling, and secure code execution capabilities for streamlined development workflows.

MCP Python Toolbox

A Model Context Protocol (MCP) server providing tools for Python development with AI assistants like Claude.

Overview

MCP Python Toolbox offers a standardized interface for Python development tasks:

  • Manage files and directories
  • Analyze and format Python code
  • Handle virtual environments
  • Execute code safely

Features

  • FileOperations: Safe file and directory management
  • CodeAnalyzer: Python code parsing and analysis
  • ProjectManager: Manage virtual environments and dependencies
  • CodeExecutor: Safe execution of Python code

Installation

  1. Clone the repository
  2. Create a virtual environment
  3. Install in development mode

Usage

CLI Tool

Run using the CLI with workspace specification options.

Integration with Claude Desktop

Configure MCP Python Toolbox for automatic launching in Claude Desktop.

Programmatic Usage

Use the PythonToolboxServer class to set up and run the server.

Development

  • Run tests with pytest
  • Type check with mypy
  • Lint with pylint
  • Format with black

Contributing

  1. Fork the repo
  2. Create a branch
  3. Commit changes
  4. Push changes
  5. Open a Pull Request

License

MIT License.