MCP (Model Context Protocol) server to unminify / beautify JS, CSS, and HTML code. Wraps js-beautify behind a single unminify tool with auto-detection of code type.
npm install
npm run buildRun as a subprocess — typical for MCP client configs (Claude Desktop, VS Code, etc.):
unminify-mcp
# or
node dist/index.jsConfigure in claude_desktop_config.json:
{
"mcpServers": {
"unminify": {
"command": "node",
"args": ["/path/to/unminify-mcp/dist/index.js"]
}
}
}unminify-mcp --transport http --port 3000Endpoint: POST http://localhost:3000/mcp
unminify-mcp --transport sse --port 3000Endpoints:
GET http://localhost:3000/sse— SSE event streamPOST http://localhost:3000/messages?sessionId=...— client messages
Unminify / beautify minified JS, CSS, or HTML code.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
code |
string | yes | — | The minified source code to beautify |
type |
enum | no | "auto" |
Code type: "auto", "js", "css", or "html" |
Returns the beautified code as text content with detectedType in the metadata.
npm run dev # Run with tsx (stdio transport)
npm run build # Compile TypeScript → dist/- js-beautify — the underlying beautification engine
- Original unminify2.com browser tool