wayknow/clearjson
ClearJSON
隐私优先的浏览器 JSON 查看器。零追踪。完全本地化。外加一个面向 AI 代理的 MCP 服务器。
ClearJSON 是一款 Chrome 扩展,可自动检测并格式化浏览器中的 JSON 响应。为回应 JSON Formatter 争议 而构建——我们永远不会注入广告、追踪你或出售你的数据。
MCP 服务器(新增!)
面向 AI 代理(Claude Code 等):npx -y clearjson-mcp
{
"mcpServers": {
"clearjson": {
"command": "npx",
"args": ["-y", "clearjson-mcp"]
}
}
}10 个工具——格式化、验证、搜索、JSONPath 查询、深度差异、转换(CSV/TSV/YAML/TypeScript),外加许可证管理。唯一支持大文件安全的 JSON MCP 服务器。可在 npm 和 mcp.so 上获取。完整理由见 AGENT_FIRST.md。
Related MCP server: agent-utils-mcp
功能
免费(永久)
✅ 自动检测并格式化 JSON/JSON-LD/JSON:API/NDJSON
✅ 可折叠树形视图,带缩进引导线
✅ 语法高亮(字符串、数字、布尔值、null)
✅ 10 种主题(Dark、Light、Sepia、Monokai、Dracula、Nord、One Dark、Solarized Light、GitHub、High Contrast)
✅ 跟随系统主题切换
✅ 点击复制值,右键获取 JSONPath
✅ 自动检测链接(可点击)和图片预览(悬停)
✅ 原始视图中的行号
✅ 统计栏(节点数、深度、文件大小、解析时间)
✅ 键盘快捷键(
[折叠、]展开、D主题、R原始、Enter搜索导航)✅ 独立查看器(粘贴 JSON、拖放、文件加载)
✅ URL 排除列表(正则模式)
✅ 100% 本地处理——零网络请求
Pro($2.99/月或 $19.99/年)
💰 大文件虚拟滚动(100MB+ 不卡顿)
💰 高级搜索(正则、匹配高亮、结果导航)
💰 JWT 自动解码(header + payload 内联,过期检测)
💰 多格式导出(CSV、TSV、YAML、TypeScript 类型,带递归推断)
💰 30 种高级主题(Catppuccin、Tokyo Night、Gruvbox、Nord、Dracula、Monokai…)
💰 自定义键盘快捷键(6 个可配置绑定)
安装
Chrome Web Store
Edge Add-ons
加载已解压的扩展(开发)
克隆此仓库
前往
chrome://extensions/启用"开发者模式"
点击"加载已解压的扩展程序"并选择项目文件夹
项目结构
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.md开发
# 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.js当前状态(v1.1.1——已在 CWS 上线)
所有功能已实现。Pro 可通过 Creem 获取($2.99/月或 $19.99/年)。 136 个单元测试通过。MCP 服务器 v1.1.0 已发布到 npm。
完整项目状态、架构决策和发布清单见 STATUS.md。
隐私
ClearJSON 在本地处理所有内容。我们承诺:
❌ 不向任何地方发送数据
❌ 无分析或遥测
❌ 无追踪
❌ 无广告
❌ 无账户
❌ 无第三方脚本
我们的权限是最小的:
storage——保存你的主题偏好activeTab——在当前标签页中格式化 JSON主机权限——仅用于检测 JSON 内容类型;不会在非 JSON 页面上读取页面内容
链接
MCP 服务器:npmjs.com/package/clearjson-mcp
为什么叫"ClearJSON"?
在原始 JSON Formatter(200 万+ 用户,10 年开源)被出售并开始注入广告和追踪用户之后,开发者需要一个值得信赖的替代品。ClearJSON 就是为了成为那个替代品而构建的,它采用可持续的 Pro 模式,尊重用户而不是利用用户。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityDmaintenanceAn efficient MCP server for performing accurate, deep comparisons between JSON objects or strings using the deepdiff engine. It provides AI agents with standardized difference reports, supporting nested structures and various input formats to ensure precise data analysis.1
- FlicenseNot gradedqualityDmaintenanceSwiss-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 required5
- 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.40MIT
- AlicenseAqualityBmaintenanceDeveloper-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.221533MIT
Related MCP Connectors
JSON tools MCP.
Remote MCP server: 10 developer utilities (base64, JWT, DNS, UUID, URL, JSON, UA, IP lookup).
MCP Spec Compliance MCP — audits any MCP server.json against the official Model Context Protocol
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/wayknow/clearjson'
If you have feedback or need assistance with the MCP directory API, please join our Discord server