Format Python Files
MCP Serverby aitmpl.com · Added 5mo ago
Claude
1.1k
Install
See GitHub for installationQuick 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