wayknow/clearjson
ClearJSON
Visor de JSON para navegador que prioriza la privacidad. Cero rastreo. Totalmente local. Además, un servidor MCP para agentes de IA.
ClearJSON es una extensión de Chrome que detecta y formatea automáticamente las respuestas JSON en tu navegador. Creada en respuesta a la controversia de JSON Formatter: nunca inyectaremos anuncios, te rastrearemos ni venderemos tus datos.
Servidor MCP (¡Nuevo!)
Para agentes de IA (Claude Code, etc.): npx -y clearjson-mcp
{
"mcpServers": {
"clearjson": {
"command": "npx",
"args": ["-y", "clearjson-mcp"]
}
}
}10 herramientas — formato, validación, búsqueda, consulta JSONPath, diff profundo, conversión (CSV/TSV/YAML/TypeScript), además de gestión de licencias. El único servidor MCP de JSON seguro para archivos grandes. Disponible en npm y mcp.so. Consulta AGENT_FIRST.md para conocer la justificación completa.
Related MCP server: mcp-json-tools
Características
Gratis (para siempre)
✅ Detección y formato automáticos de JSON/JSON-LD/JSON:API/NDJSON
✅ Vista de árbol plegable con guías de sangría
✅ Resaltado de sintaxis (cadenas, números, booleanos, null)
✅ 10 temas (Dark, Light, Sepia, Monokai, Dracula, Nord, One Dark, Solarized Light, GitHub, High Contrast)
✅ Cambio de tema según el sistema
✅ Clic para copiar valores, clic derecho para JSONPath
✅ Enlaces detectados automáticamente (en los que se puede hacer clic) y vistas previas de imágenes (al pasar el cursor)
✅ Números de línea en la vista sin procesar
✅ Barra de estadísticas (número de nodos, profundidad, tamaño del archivo, tiempo de análisis)
✅ Atajos de teclado (
[contraer,]expandir,Dtema,Rsin procesar,Enternavegación de búsqueda)✅ Visor independiente (pegar JSON, arrastrar y soltar, cargar archivo)
✅ Lista de exclusión de URL (patrones regex)
✅ Procesamiento 100 % local: cero solicitudes de red
Pro ($2.99/mes o $19.99/año)
💰 Desplazamiento virtual de archivos grandes (más de 100 MB sin congelarse)
💰 Búsqueda avanzada (regex, resaltado de coincidencias, navegación por resultados)
💰 Descodificación automática de JWT (cabecera + carga útil en línea, detección de caducidad)
💰 Exportación en múltiples formatos (CSV, TSV, YAML, tipos de TypeScript con inferencia recursiva)
💰 30 temas premium (Catppuccin, Tokyo Night, Gruvbox, Nord, Dracula, Monokai…)
💰 Atajos de teclado personalizables (6 asignaciones configurables)
Instalación
Chrome Web Store
Edge Add-ons
Cargar descomprimida (desarrollo)
Clona este repositorio
Ve a
chrome://extensions/Activa el «Modo de desarrollador»
Haz clic en «Load unpacked» y selecciona la carpeta del proyecto
Estructura del proyecto
clearjson/
├── manifest.json # Chrome Extension manifest (MV3)
├── server/ # License server (Cloudflare Worker + D1)
│ ├── src/index.js # API: verify/generate/webhook/admin
│ ├── schema.sql # D1 database schema
│ └── wrangler.toml # Worker config
├── clearjson-mcp/ # MCP server (npm: clearjson-mcp)
│ ├── package.json
│ ├── src/
│ │ ├── index.js # MCP entry point (stdio transport)
│ │ ├── core/ # Core logic (parser, exporter, license)
│ │ └── tools/ # 7 JSON tools + 3 license tools
│ ├── tests/ # 49 MCP unit tests
│ └── README.md
├── src/
│ ├── content/
│ │ ├── content.js # Content script (JSON detection + viewer injection)
│ │ └── content.css # Base styles + CSS variable theming
│ ├── viewer/
│ │ ├── viewer.html # Standalone viewer page
│ │ └── viewer.js # Viewer logic
│ ├── popup/
│ │ ├── popup.html # Extension toolbar popup
│ │ ├── popup.js
│ │ └── popup.css
│ └── utils/
│ ├── parser.js # JSON detection + parsing
│ ├── tokenizer.js # Syntax highlighting tokenizer
│ ├── themes.js # 30 theme definitions
│ ├── license.js # Pro license system
│ ├── export.js # CSV/TSV/YAML/TypeScript export
│ ├── stream-parser.js # Web Worker streaming parser
│ ├── virtual-tree.js # Virtual scrolling tree view
│ └── tree.js # Standard tree view renderer
├── tests/ # 136 unit tests (Node built-in runner)
│ ├── helpers/setup.js
│ ├── test-parser.js
│ ├── test-tokenizer.js
│ ├── test-jwt.js
│ ├── test-license.js
│ └── test-export.js
├── test-data/ # Test data + automation scripts
│ ├── complex-api-response.json
│ ├── jwt-test.json
│ ├── users-array.json
│ ├── large-array.json # 2.2 MB for Pro gate testing
│ ├── server.js # Local test server (port 8765)
│ ├── run-checklist.js # 130-item static analysis
│ ├── browser-test.js # 21-item browser automation
│ └── TEST-CHECKLIST.md # 43-item manual checklist
├── icons/
│ ├── icon.svg
│ ├── icon16.png
│ ├── icon48.png
│ └── icon128.png
└── README.mdDesarrollo
# For development, load the extension unpacked:
# 1. chrome://extensions/ → Developer mode ON
# 2. Load unpacked → select the project root
# 3. Edit files and click refresh on the extension card
# Run unit tests (zero dependencies, Node 18+):
npm test # 136 tests (Chrome extension)
cd clearjson-mcp && npm test # 49 tests (MCP server)
# Run static analysis checklist (130 checks):
node test-data/run-checklist.js
# Run browser automation tests (requires puppeteer):
node test-data/browser-test.js
# Start local test server (Pro auto-enabled on localhost:8765):
node test-data/server.jsEstado actual (v1.1.1 — disponible en CWS)
Todas las funciones implementadas. Pro disponible a través de Creem (2,99 $/mes o 19,99 $/año). 136 pruebas unitarias superadas. Servidor MCP v1.1.0 publicado en npm.
Consulta STATUS.md para ver el estado completo del proyecto, las decisiones de arquitectura y la lista de verificación de lanzamiento.
Privacidad
ClearJSON procesa todo localmente. Prometemos:
❌ Ningún dato se envía a ningún sitio
❌ Sin análisis ni telemetría
❌ Sin rastreo
❌ Sin anuncios
❌ Sin cuentas
❌ Sin scripts de terceros
Nuestros permisos son mínimos:
storage— guardar tu preferencia de temaactiveTab— formatear JSON en la pestaña actualPermisos de host: solo se necesitan para detectar el tipo de contenido JSON; no se lee ningún contenido de la página en páginas que no son JSON
Enlaces
Página del producto: wayknow.tech/clearjson.html
Servidor MCP: npmjs.com/package/clearjson-mcp
Política de privacidad: wayknow.tech/clearjson-privacy.html
Soporte: support@wayknow.tech
¿Por qué «ClearJSON»?
Después de que el JSON Formatter original (más de 2 millones de usuarios, 10 años de código abierto) se vendiera y empezara a inyectar anuncios y a rastrear a los usuarios, los desarrolladores necesitaban una alternativa fiable. ClearJSON se creó para ser esa alternativa con un modelo Pro sostenible que respeta a los usuarios en lugar de explotarlos.
Available Tools
10 toolsactivate_licenseA
Activate a ClearJSON Pro license key (CLJ-XXXX-XXXX-XXXX). Unlocks query_json, diff_json, and convert_json tools. One license covers up to 3 devices. $29 lifetime at wayknow.tech/clearjson.html.
Inputs: key (required).
convert_jsonA
Convert JSON to another format: CSV, TSV, YAML, or TypeScript type definitions. CSV/TSV requires a top-level array of objects. YAML and TypeScript work on any structure.
Inputs: json (required), format (required), rootName.
deactivate_licenseA
Remove the Pro license from this machine. Frees up a device slot.
Inputs: no named parameters.
diff_jsonA
Deep compare two JSON strings and produce a structured diff report. Detects added keys, removed keys, changed values, and type changes. Returns a list of differences with their JSONPath locations and old/new values.
Inputs: json_a (required), json_b (required).
format_jsonA
Parse and pretty-print a JSON string with configurable indentation. Handles JSON of any size — the only MCP JSON tool that does not crash on 100MB+ files. Returns the formatted result along with stats (node count, depth, size, parse time).
Inputs: json (required), indent.
license_statusA
Check ClearJSON Pro license status — activation state, email, device count, offline/online.
Inputs: no named parameters.
minify_jsonA
Compress/minify a JSON string to its smallest valid form (no whitespace).
Inputs: json (required).
query_jsonA
Query a JSON structure using JSONPath syntax. Supports dot-notation ($.store.book[0].title), recursive descent ($..author), array slicing ($[0:5]), wildcards ($..*), and filter expressions ($..book[?(@.price < 10)]). Returns matched values with their paths.
Inputs: json (required), path (required).
search_jsonA
Search for keys, values, or paths inside a JSON structure. Returns matching nodes with their JSONPath locations. Supports key search (field name contains), value search (value string contains), and path search (JSONPath contains). Respects maxResults limit (default 50).
Inputs: json (required), query (required), mode, maxResults, +1 more.
validate_jsonA
Validate a JSON string. Returns whether it is valid, and if not, the exact error location (line and column). Also returns stats: node count, max depth, file size, parse time.
Inputs: json (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool serves a distinct purpose: license management, JSONPath querying, diffing, conversion, formatting, minification, validation, and search. No overlap; even query and search are clearly differentiated.
All tools follow a consistent verb_noun pattern (e.g., activate_license, query_json, convert_json). The only slight deviation is license_status, but it still fits the pattern as a status check.
10 tools is well-scoped for a JSON utility server. It covers core operations and license management without unnecessary bloat. Each tool earns its place.
The set covers validation, formatting, querying, searching, diffing, and conversion. Missing are JSON editing tools (add/remove/modify keys) and schema validation, but the stated purpose focuses on analysis and transformation.
Maintenance
Related MCP Connectors
Remote MCP: JSON repair, JSON Schema validation, JSON to TypeScript, CSV to JSON and JSON to CSV.
Remote MCP for JSON repair, hashing, formatting, IDs, dates, units, and other small tools.
Remote MCP for JSON repair, hashing, formatting, IDs, dates, units, and other small tools.
Free, no-key MCP server: token estimates, JSON Schema conversion, MCP configs, tool search.
Related MCP Servers
- FlicenseAqualityDmaintenanceSwiss-army-knife utility MCP server for AI agents. 18 tools for JSON validation/formatting, base64 encode/decode, hash generation, UUID generation, URL parsing, regex testing, markdown↔HTML conversion, text stats, slug generation, datetime conversion, cron parsing, text diffing, CSV↔JSON conversion, and JWT decoding. Zero API Key required185-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides tools for JSON validation, diffing, and transformation operations such as flattening and renaming. It also enables data format conversion between JSON, CSV, and YAML to streamline data processing for AI agents.37 npmMIT
- AlicenseBqualityBmaintenanceDeveloper-focused MCP server for code analysis and local engineering workflows. Provides tools for JSON repair, encoding fixes, import organization, format conversion, diff inspection, and regex testing.23156 npm4MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for reading, querying, and filtering local JSON files with extended JSONPath syntax, supporting sorting, aggregations, and complex conditions.52 npm2MIT