ellmos-codecommander-mcp
ellmos CodeCommander MCP provides 17 developer-focused tools for code analysis, repair, format conversion, and documentation.
Code Analysis
cc_analyze_code– Full Python file analysis: classes, functions, imports, LOC, and complexity metricscc_analyze_methods– Method-level analysis: parameters, decorators, visibility, and data flowcc_extract_classes– Extract Python classes/functions as separate text blocks (optionally saved to disk)
Import Management
cc_organize_imports– Sort, deduplicate, and group Python imports per PEP 8 (dry-run supported)cc_diagnose_imports– Detect unused, missing, duplicate, or circular imports
JSON Tools
cc_fix_json– Auto-repair broken JSON (BOM, trailing commas, single quotes, comments, NUL bytes) with backup supportcc_validate_json– Validate JSON with detailed error position and context
Encoding & Text Repair
cc_fix_encoding– Fix Mojibake and double-encoded UTF-8 (27+ patterns for German, French, Spanish)cc_cleanup_file– Remove BOM, NUL bytes, trailing whitespace, and normalize line endingscc_fix_umlauts– Repair broken German umlauts using 70+ patterns including HTML entities and escape sequences
Format Conversion & Documentation
cc_convert_format– Convert between JSON, CSV, INI, YAML, TOML, XML, and TOONcc_generate_licenses– Generate third-party license files for npm or Python projects (text, JSON, or CSV)cc_md_to_html– Convert Markdown to standalone CSS-styled HTMLcc_md_to_pdf– Convert Markdown to PDF via headless browser (falls back to HTML if unavailable)
Developer Utilities
cc_scan_emoji– Scan files/directories for emojis with Unicode codepoint info and ASCII alternativescc_diff_files– Compare two files using unified diff with configurable context linescc_regex_test– Test regex patterns against text or file content, with match details, capture groups, and replace preview
Configuration
cc_set_language– Set output language for all tools (enorde)
All modifying tools support dry-run mode and optional backups.
Converts Markdown files to standalone HTML or PDF with styling support for code blocks, tables, lists, and blockquotes.
Generates third-party license files for npm projects by reading package.json and collecting license information.
Analyzes Python code to extract classes, methods, imports, and complexity metrics; also organizes imports per PEP 8 and diagnoses import issues.
Supports conversion between TOML and other formats such as JSON, CSV, INI, YAML, XML, and TOON.
Supports conversion between XML and other formats such as JSON, CSV, INI, YAML, TOML, and TOON.
Supports conversion between YAML and other formats such as JSON, CSV, INI, TOML, XML, and TOON.
ellmos CodeCommander MCP Server
Part of the ellmos-ai family.
A developer-focused Model Context Protocol (MCP) server that gives AI assistants code analysis, JSON repair, encoding fix, import organization, format conversion, file diff, and regex testing capabilities.
17 tools optimized for developers - the coding companion to FileCommander.
Why CodeCommander?
While FileCommander handles filesystem operations, CodeCommander focuses on code intelligence:
Python Code Analysis - AST-based class/method extraction, complexity metrics, import analysis
JSON Repair - Fix broken JSON automatically (trailing commas, single quotes, BOM, comments)
Import Organization - Sort and deduplicate Python imports per PEP 8
Encoding Fix - Repair Mojibake and double-encoded UTF-8 (27+ patterns)
Umlaut Repair - Fix broken German characters (70+ patterns)
Format Conversion - Convert between JSON, CSV, INI, YAML, TOML, XML, and TOON
File Diff - Compare two files with unified diff output (LCS algorithm)
Regex Tester - Test regular expressions with match details, groups, and replace preview
Markdown Export - Convert Markdown to professional HTML/PDF with code blocks, tables, nested lists, blockquotes
Cross-platform - Works on Windows, macOS, and Linux
Installation
Prerequisites
Node.js 18 or higher
Option 1: Install from NPM
npm install -g ellmos-codecommander-mcpOption 2: Install from Source
git clone https://github.com/ellmos-ai/ellmos-codecommander-mcp.git
cd ellmos-codecommander-mcp
npm install
npm run buildConfiguration
Claude Desktop
Add to your claude_desktop_config.json:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
If installed globally via NPM:
{
"mcpServers": {
"codecommander": {
"command": "ellmos-codecommander"
}
}
}If installed from source:
{
"mcpServers": {
"codecommander": {
"command": "node",
"args": ["/absolute/path/to/ellmos-codecommander-mcp/dist/index.js"]
}
}
}Using Both Servers Together
FileCommander and CodeCommander are designed to work side by side:
{
"mcpServers": {
"filecommander": {
"command": "ellmos-filecommander"
},
"codecommander": {
"command": "ellmos-codecommander"
}
}
}Tools Overview
Code Analysis (3 tools)
Tool | Description |
| Full code analysis: classes, functions, imports, LOC, complexity |
| Detailed method analysis: params, decorators, visibility, data flow |
| Extract Python classes/functions as separate text blocks |
Import Management (2 tools)
Tool | Description |
| Sort & deduplicate Python imports per PEP 8 |
| Detect unused imports, duplicates, circular import risks |
JSON Tools (2 tools)
Tool | Description |
| Repair broken JSON (BOM, trailing commas, comments, single quotes) |
| Validate JSON with detailed error position and context |
Encoding & Text (3 tools)
Tool | Description |
| Fix Mojibake / double-encoded UTF-8 (27+ patterns) |
| Remove BOM, NUL bytes, trailing whitespace, normalize line endings |
| Repair broken German umlauts (70+ patterns, HTML entities, escapes) |
Scanning (1 tool)
Tool | Description |
| Scan files for emojis with codepoint info |
Format & Documentation (2 tools)
Tool | Description |
| Convert between JSON, CSV, INI, YAML, TOML, XML, and TOON formats |
| Generate third-party license file (npm/pip) |
Developer Utilities (2 tools)
Tool | Description |
| Compare two files with unified diff output (configurable context lines) |
| Test regex patterns against text/files with match details, groups, and replace preview |
Export (2 tools)
Tool | Description |
| Markdown to standalone HTML with CSS styling (headers, code blocks, tables, nested lists, blockquotes, images, checkboxes) |
| Markdown to PDF via headless browser (Edge/Chrome). Falls back to HTML if no browser is available |
Total: 17 tools
Shared Tools
7 tools exist in both FileCommander and CodeCommander for convenience:
FileCommander | CodeCommander | Function |
|
| JSON repair |
|
| JSON validation |
|
| Encoding repair |
|
| File cleanup |
|
| Format conversion (JSON/CSV/INI/YAML/TOML/XML/TOON) |
|
| Markdown to HTML export |
|
| Markdown to PDF export |
Tool Prefix
All tools use the cc_ prefix (CodeCommander) to avoid conflicts with FileCommander's fc_ prefix and other MCP servers.
Security
See SECURITY.md for detailed security information.
Key points:
All file-modifying tools support
dry_runmodeBackup creation is enabled by default for destructive operations
No built-in sandboxing - security is delegated to the MCP client
Designed for local development use via stdio transport
Development
npm install
npm run dev # Watch mode
npm run build # One-time build
npm start # Start server
npm test # Run test suite (vitest)Testing
The project includes a comprehensive test suite with 137 tests covering all 17 tools.
npm test # Run all tests
npx vitest run # Same as above
npx vitest --watch # Watch modeTests are verified on Windows, macOS, and Linux.
Changelog
See CHANGELOG.md for the full version history.
License
MIT - Lukas Geiger (ellmos-ai)
History
This project was originally developed as BACH CodeCommander (bach-codecommander-mcp). It has been renamed to ellmos CodeCommander (ellmos-codecommander-mcp) as part of the ellmos-ai organization.
The old npm package bach-codecommander-mcp is deprecated. Please use ellmos-codecommander-mcp instead:
npm uninstall -g bach-codecommander-mcp
npm install -g ellmos-codecommander-mcpellmos-ai Ecosystem
This MCP server is part of the ellmos-ai ecosystem — AI infrastructure, MCP servers, and intelligent tools.
MCP Server Family
Server | Tools | Focus | npm |
43 | Filesystem, process management, interactive sessions |
| |
17 | Code analysis, AST parsing, import management |
| |
12 | File repair, format conversion, batch operations |
| |
13 | n8n workflow management via AI assistants |
|
AI Infrastructure
Project | Description |
Text-based OS for LLMs — 109+ handlers, 373+ tools, 932+ skills | |
Provider-neutral LLM orchestration with auto-routing and budget tracking | |
Lightweight agent memory, connectors, and automation infrastructure | |
Self-hosted AI research stack (Ollama + n8n + Rinnsal + KnowledgeDigest) | |
Autonomous agent chain framework for Claude Code | |
Minimalist database-driven LLM OS prototype (4 functions, 1 table) | |
Testing framework for LLM operating systems (7 dimensions) |
Desktop Software
Our partner organization open-bricks bundles AI-native desktop applications — a modern, open-source software suite built for the age of AI. Categories include file management, document tools, developer utilities, and more.
Haftung / Liability
Dieses Projekt ist eine unentgeltliche Open-Source-Schenkung im Sinne der §§ 516 ff. BGB. Die Haftung des Urhebers ist gemäß § 521 BGB auf Vorsatz und grobe Fahrlässigkeit beschränkt. Ergänzend gelten die Haftungsausschlüsse aus GPL-3.0 / MIT / Apache-2.0 §§ 15–16 (je nach gewählter Lizenz).
Nutzung auf eigenes Risiko. Keine Wartungszusage, keine Verfügbarkeitsgarantie, keine Gewähr für Fehlerfreiheit oder Eignung für einen bestimmten Zweck.
This project is an unpaid open-source donation. Liability is limited to intent and gross negligence (§ 521 German Civil Code). Use at your own risk. No warranty, no maintenance guarantee, no fitness-for-purpose assumed.
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ellmos-ai/ellmos-codecommander-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server