Python Toolbox

v1.0.0Coding Agentsstable

A Model Context Protocol server that enables AI assistants like Claude to perform Python development tasks through file operations, code analysis, project management, and safe code execution.

mcp-python-toolboxmcpai-integration
Share:
9
Stars
0
Downloads
0
Weekly
0/5

What is Python Toolbox?

Python Toolbox is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to model context protocol server that enables ai assistants like claude to perform python development tasks through file operations, code analysis, project management, and safe code execution.

A Model Context Protocol server that enables AI assistants like Claude to perform Python development tasks through file operations, code analysis, project management, and safe code execution.

This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A Model Context Protocol server that enables AI assistants l

Use Cases

Perform Python development tasks including file operations and code analysis.
Execute code safely and manage Python projects through AI.
Analyze and refactor Python code with AI assistance.
gianlucamazza

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedApr 13, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-python-toolbox

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Python Toolbox

MCP Python Toolbox is a Model Context Protocol server that gives AI assistants like Claude a full suite of Python development capabilities within a sandboxed workspace directory. It provides four main tool groups: FileOperations for safe file read/write within a defined workspace, CodeAnalyzer for AST-based structure parsing and Black/Pylint formatting, ProjectManager for virtual environment creation and dependency installation, and CodeExecutor for running Python code with captured stdout and stderr. This makes it possible for Claude to write, analyze, refactor, and execute Python code end-to-end without leaving the conversation.

Prerequisites

  • Python 3.10 or later with pip
  • Git for cloning the repository
  • Optional: Black and Pylint installed in the target virtual environment for formatting and linting tools
  • Claude Desktop or another MCP-compatible client
1

Clone the repository

Clone the MCP Python Toolbox from GitHub. There is no PyPI package, so installation is from source.

git clone https://github.com/gianlucamazza/mcp_python_toolbox.git
cd mcp_python_toolbox
2

Create and activate a virtual environment

Isolate the toolbox dependencies in a dedicated virtual environment to avoid conflicts with other Python projects.

python -m venv .venv
source .venv/bin/activate  # macOS/Linux
# .venv\Scripts\activate   # Windows
3

Install the package with development extras

Install the toolbox in editable mode along with its development dependencies including Black, Pylint, and the MCP SDK.

pip install -e ".[dev]"
4

Run the server pointing at your project workspace

Launch the server and pass the --workspace flag pointing to the Python project directory you want Claude to operate in.

python -m mcp_python_toolbox --workspace /path/to/your/project
5

Configure Claude Desktop

Add the server to your claude_desktop_config.json with the PYTHONPATH and VIRTUAL_ENV environment variables so the correct Python interpreter is used.

{
  "mcpServers": {
    "python-toolbox": {
      "command": "/path/to/mcp_python_toolbox/.venv/bin/python",
      "args": ["-m", "mcp_python_toolbox", "--workspace", "/path/to/your/project"],
      "env": {
        "PYTHONPATH": "/path/to/mcp_python_toolbox/src",
        "VIRTUAL_ENV": "/path/to/mcp_python_toolbox/.venv",
        "PYTHONHOME": ""
      }
    }
  }
}

Python Toolbox Examples

Client configuration

Full Claude Desktop configuration using the toolbox's own virtual environment Python binary to ensure consistent dependency resolution.

{
  "mcpServers": {
    "python-toolbox": {
      "command": "/Users/yourname/mcp_python_toolbox/.venv/bin/python",
      "args": ["-m", "mcp_python_toolbox", "--workspace", "/Users/yourname/myproject"],
      "env": {
        "PYTHONPATH": "/Users/yourname/mcp_python_toolbox/src",
        "VIRTUAL_ENV": "/Users/yourname/mcp_python_toolbox/.venv",
        "PYTHONHOME": ""
      }
    }
  }
}

Prompts to try

These prompts demonstrate the end-to-end Python development capabilities the toolbox enables.

- "List all Python files in my workspace and show the class structure of main.py."
- "Run the tests in tests/test_utils.py and show me the output."
- "Install the requests library in my project's virtual environment and verify it imported correctly."
- "Lint utils.py with Pylint and fix the reported issues."

Troubleshooting Python Toolbox

ModuleNotFoundError when starting the server

Ensure you activated the virtual environment before running and that 'pip install -e .[dev]' completed without errors. Verify with 'pip show mcp-python-toolbox'.

CodeExecutor tool returns permission errors

The executor is sandboxed to the workspace directory. Any file paths referenced in executed code must be within --workspace. Absolute paths outside the workspace will be rejected.

Black or Pylint not found during code analysis

Install them explicitly in the same virtual environment: 'pip install black pylint'. The CodeAnalyzer tool calls these as subprocesses and requires them to be on the PATH within the virtual environment.

Frequently Asked Questions about Python Toolbox

What is Python Toolbox?

Python Toolbox is a Model Context Protocol (MCP) server that model context protocol server that enables ai assistants like claude to perform python development tasks through file operations, code analysis, project management, and safe code execution. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Python Toolbox?

Follow the installation instructions on the Python Toolbox GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Python Toolbox?

Python Toolbox works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Python Toolbox free to use?

Yes, Python Toolbox is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-python-toolbox": { "command": "npx", "args": ["-y", "mcp-python-toolbox"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Python Toolbox?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides