BACH CodeCommander logo

BACH CodeCommander

Local MCP tools for code analysis, Python edits, JSON repair, format conversion, diffs, regex tests, and Markdown export.

Install BACH CodeCommander

Run the project’s own setup commands, in order.

Setup steps from the project

BACH CodeCommander installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g ellmos-codecommander-mcp
    
  2. 2. Install
    git clone https://github.com/ellmos-ai/ellmos-codecommander-mcp.git
    
  3. 3. Run
    cd ellmos-codecommander-mcp
    
  4. 4. Install
    npm install
    
  5. 5. Run
    npm run build
    
  6. 6. Start the server
    npm run build             # Compile TypeScript to dist/
    

Overview

BACH CodeCommander MCP server connects AI coding clients to a local developer-tool suite for code analysis, structural Python editing, configuration repair, and document conversion. Its 23 tools cover Python, JavaScript, and TypeScript analysis, JSON and encoding fixes, import organization, file diffs, regex testing, and Markdown export to HTML or PDF. It uses local stdio transport and runs on Windows, macOS, and Linux with Node.js 20 or newer. Reach for it when an agent needs deterministic inspection or previewable edits without sending project data to a remote service.

Use cases

  • Inspect Python classes, methods, imports, and complexity
  • Preview structural Python edits before applying them
  • Repair malformed JSON and damaged text encodings
  • Convert configuration files between common data formats
  • Export Markdown documents to HTML or PDF

Key features

  • Python, JavaScript, and TypeScript code analysis
  • Preview-safe structural Python editing
  • JSON, encoding, and umlaut repair
  • PEP 8 import organization
  • Multi-format conversion and unified file diffs
  • Regex testing and Markdown HTML/PDF export

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 78d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
Last commit15d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How BACH CodeCommander works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about BACH CodeCommander

BACH CodeCommander is an MCP server that connects AI coding clients to local developer tools for code analysis, structural Python editing, JSON repair, encoding fixes, format conversion, file diffs, regex testing, and Markdown export. It runs over local stdio and supports Windows, macOS, and Linux with Node.js 20 or newer.

Install the `ellmos-codecommander-mcp` package from npm and register it as a local stdio MCP server in your client. Node.js 20 or newer is required, and the package supports Windows, macOS, and Linux.

Yes, BACH CodeCommander is listed for use with Cursor. Configure the npm package as a local stdio MCP server so Cursor can discover its `cc_` tools.

Yes, its JSON repair tool handles issues including trailing commas, single quotes, byte-order marks, and comments, and reports precise error locations.

Yes, it provides structural Python editing with a preview-oriented workflow and unified diff output. Python-specific path tools also reject non-`.py` files instead of treating them as Python.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewBACH CodeCommander AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/bach-codecommander?style=directory)](https://allmcps.com/mcp/bach-codecommander)
HTML Embed
<a href="https://allmcps.com/mcp/bach-codecommander"><img src="https://allmcps.com/api/badge/bach-codecommander?style=directory" alt="BACH CodeCommander on AllMCPs" /></a>