Format Python Files

MCP Server

by aitmpl.com · Added 5mo ago

Claude
1.1k

Install

See GitHub for installation

Quick Setup Config

Copy & paste ready

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

{
  "mcpServers": {
    "format-python-files": {
      "command": "npx",
      "args": [
        "format-python-files"
      ]
    }
  }
}

Paste into your Claude Desktop config file, then restart Claude.

About

Automatically format Python files after any Edit operation using black formatter. This hook runs 'black' on any .py file that Claude modifies, ensuring consistent Python code formatting. Requires black to be installed ('pip install black'). The command includes error suppression (2>/dev/null || true

Tags

developmenthookaitmplhook

From Our Store

View all →
Claude Code

Claude Code Power User Kit

$39+

Advanced Claude Code skills and configurations

OpenClaw

OpenClaw Business Starter Kit

$59+

Set Up Your AI Assistant in 60 Minutes