# BACH CodeCommander [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/lukisch/bach-codecommander-mcp  
**GitHub Stars:** 4  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/bach-codecommander

## Description
15 tools for code analysis, JSON repair, encoding fix, import organization, and PDF export.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/lukisch/bach-codecommander-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g ellmos-codecommander-mcp
```

2. Install:

```sh
git clone https://github.com/ellmos-ai/ellmos-codecommander-mcp.git
```

3. Run:

```sh
cd ellmos-codecommander-mcp
```

4. Install:

```sh
npm install
```

5. Run:

```sh
npm run build
```

6. Start the server:

```sh
npm run build             # Compile TypeScript to dist/
```

## Documentation

## What BACH CodeCommander does

BACH CodeCommander provides a local MCP toolset for developer workflows. It is intended for AI coding agents and pair-programming clients that need more precise operations than text generation alone, including source inspection, structured Python changes, configuration cleanup, and format conversion.

The server analyzes Python, JavaScript, and TypeScript files. Python-focused operations include class, method, and function extraction, complexity and import analysis, indentation checks, runtime import diagnostics, template-based generation, and structural edits. JavaScript and TypeScript analysis is read-only and regex-based. Path-oriented Python tools apply explicit `.py` checks rather than treating other file types as Python.

Additional utilities repair malformed JSON, correct mojibake and double-encoded UTF-8, fix broken German umlauts, organize Python imports according to PEP 8, compare files, test regular expressions, and convert between JSON, CSV, INI, YAML, TOML, XML, and TOON. Markdown can be rendered as standalone HTML or PDF with styled code blocks, tables, and blockquotes.

## How it works

The server exposes MCP tools using the `cc_` prefix over local stdio transport. An MCP client invokes the relevant operation with file or content inputs and receives structured results, diagnostics, previews, or converted output. Structural Python editing supports a preview-oriented workflow that can produce a unified diff before a mutation is accepted.

File comparison uses an LCS-based unified diff with configurable context lines. JSON repair reports precise error locations while addressing common problems such as trailing commas, single-quoted values, byte-order marks, and comments. Encoding repair covers more than 27 mojibake and double-encoding patterns, while umlaut repair includes more than 70 German-character patterns.

## Setup and configuration

Install the `ellmos-codecommander-mcp` package from npm and register it as a local stdio MCP server in a compatible client. Node.js 20 or newer is required. The package supports Windows, macOS, and Linux, and its local execution model is designed for offline, zero-egress use.

The server is suitable for clients including Claude Code, Codex, Cursor, and Windsurf. It can also be used by general MCP clients that support local stdio servers. No environment variables are required by the documented runtime model.

## Tools and capabilities

- Analyze Python structure, methods, complexity, and imports.
- Inspect JavaScript and TypeScript structure with read-only analysis.
- Diagnose runtime Python imports with `cc_runtime_import_diagnose`.
- Edit Python structurally with `cc_python_structural_edit` and reviewable diffs.
- Check indentation and generate code from templates.
- Repair and validate JSON with `cc_fix_json`.
- Fix encoding corruption and German umlaut damage.
- Sort and deduplicate Python imports using PEP 8 conventions.
- Convert JSON, CSV, INI, YAML, TOML, XML, and TOON.
- Compare files with unified diffs and configurable context.
- Test regular expressions, captures, matches, and replacements.
- Export Markdown to standalone HTML or PDF.

## Limitations and notes

JavaScript and TypeScript analysis is regex-based and read-only, while the structural editing and language gates described here are Python-specific. The server focuses on local developer files and does not provide filesystem or process-management operations associated with its FileCommander sibling. Its runtime messages and diagnostics support multiple languages, but that does not imply that every client interface or MCP schema is translated.

_Full upstream README: https://allmcps.com/mcp/bach-codecommander/readme_

