drio
Open app

MCP Python Toolbox

Source

A Model Context Protocol (MCP) server that provides a comprehensive set of tools for Python development

Catalog onlyCatalog onlySTDIO

Overview

MCP Python Toolbox is a Model Context Protocol (MCP) server designed to provide a comprehensive set of tools for Python development, enabling AI assistants to effectively work with Python code and projects.

To use MCP Python Toolbox, clone the repository, set up a virtual environment, and run the server either via CLI or programmatically. You can also integrate it with Claude Desktop for enhanced functionality.

  • Safe file operations within a workspace - Code analysis and formatting using AST - Virtual environment and dependency management - Controlled execution of Python code
  1. Managing Python project files and directories.
  2. Analyzing and formatting Python code for better readability.
  3. Executing Python scripts in a safe environment.
  4. Managing project dependencies and virtual environments.

Add to your AI client

Use these steps to connect MCP Python Toolbox in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-python-toolbox-gianlucamazza": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-python-toolbox-gianlucamazza"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-python-toolbox-gianlucamazza": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-python-toolbox-gianlucamazza"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-python-toolbox-gianlucamazza": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-python-toolbox-gianlucamazza"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-python-toolbox-gianlucamazza": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-python-toolbox-gianlucamazza"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-python-toolbox-gianlucamazza": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-python-toolbox-gianlucamazza"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-python-toolbox-gianlucamazza": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-python-toolbox-gianlucamazza"
      ]
    }
  }
}

FAQ

Can MCP Python Toolbox be used with any Python project?

Yes! It is designed to work with any Python project that follows standard practices.

Is there a graphical interface for MCP Python Toolbox?

No, it primarily operates as a command-line tool, but it can be integrated with GUI applications like Claude Desktop.

How do I contribute to MCP Python Toolbox?

You can fork the repository, create a feature branch, and submit a pull request.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1916,"uuid":"30dc3093-77f4-43b2-9422-0f2f9ae4dc2e","name":"mcp_python_toolbox","title":"MCP Python Toolbox","description":"A Model Context Protocol (MCP) server that provides a comprehensive set of tools for Python development","avatar_url":"https://avatars.githubusercontent.com/u/25006045?v=4","created_at":"2025-03-05T06:05:36.933Z","updated_at":"2025-03-12T10:21:42.091Z","status":"created","author_name":"gianlucamazza","author_avatar_url":"https://avatars.githubusercontent.com/u/25006045?v=4","tags":"mcp_python_toolbox,python-development,model-context-protocol","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/gianlucamazza/mcp_python_toolbox","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-02-28 21:10:53\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]