jsonsafe-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@jsonsafe-mcp inspect events.jsonl for unsafe 64-bit integers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
jsonsafe-mcp — Offline Lossless BigInt JSON/JSONL, RFC 6902 Diff & 5-Target Schema MCP Server, CLI & GitHub Action
Zero-dependency, 100% offline Model Context Protocol (MCP) Server, CLI, and GitHub Action enabling AI coding agents (Claude Desktop, Claude Code, Cursor, Windsurf, Antigravity) and pull-request CI pipelines to inspect .json and 1,000+ row .jsonl / NDJSON payloads without JSON.parse() IEEE-754 float64 truncation (> 2^53 - 1), decode Twitter / Discord / Epoch 64-bit Snowflake timestamps, recursively un-escape nested stringified JSON logs, compute lossless RFC 6902 JSON Patches catching 1-ULP int64 mutations, and emit TypeScript, Zod v3, Go struct, PostgreSQL CREATE TABLE, and JSON Schema Draft 2020-12 definitions.
MCP Tools Exposed (stdio)
Tool | Purpose | Safety Annotations |
| Parses raw JSON or multi-line |
|
| Infers unified types across single JSON payloads or |
|
| Computes a lossless |
|
| Recursively un-escapes double- or triple-escaped JSON string fields inside gateway, Kafka, CloudWatch, or OpenTelemetry |
|
Related MCP server: agent-core-mcp
Quick Start (MCP Client & Local CLI)
# Start MCP server over stdio (supports both NDJSON and Content-Length framing)
npx -y github:z121245017-ai/jsonsafe-mcp
# List MCP tool schemas from terminal
npx -y github:z121245017-ai/jsonsafe-mcp --list
# Audit a JSONL stream for unsafe 64-bit integers (exits 2 on IEEE-754 truncation hazards)
npx -y github:z121245017-ai/jsonsafe-mcp --input ./events.jsonl --fail-on-unsafe
# Generate TypeScript / Zod / Go / PostgreSQL / JSON Schema from multi-row JSONL
npx -y github:z121245017-ai/jsonsafe-mcp --input ./events.jsonl --target ts --root-name OrderEvent
# Invoke any MCP tool directly via --cli
npx -y github:z121245017-ai/jsonsafe-mcp --cli diff_lossless_rfc6902_patch '{"leftContent":"{\"id\":1861928374659182593}","rightContent":"{\"id\":1861928374659182594}"}'Claude Desktop / Cursor / Windsurf / Antigravity Config
{
"mcpServers": {
"jsonsafe": {
"command": "npx",
"args": ["-y", "github:z121245017-ai/jsonsafe-mcp"]
}
}
}Docker (node:22-alpine, non-root USER node)
docker build -t jsonsafe-mcp .
docker run -i --rm jsonsafe-mcpGitHub Action (z121245017-ai/jsonsafe-mcp@v1)
Block silent 64-bit Snowflake ID corruption, high-precision financial decimal rounding, and duplicate JSON keys in API fixtures and golden test snapshots:
name: JsonSafe Precision & Schema Gate
on:
pull_request:
paths:
- '**/*.json'
- '**/*.jsonl'
permissions:
contents: read
jobs:
jsonsafe:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Audit JSON/JSONL fixtures for IEEE-754 int64 rounding
uses: z121245017-ai/jsonsafe-mcp@v1
with:
paths: 'fixtures'
fail-on-unsafe: 'true'
schema-target: 'ts'
schema-output: 'generated/fixtures.d.ts'IEEE-754 float64 vs Lossless JsonSafe Reference Matrix
Numeric Literal Class | Example Raw Literal | Standard |
|
Safe 53-Bit Integer |
|
|
|
Signed 64-Bit Snowflake |
|
|
|
Unsigned |
|
|
|
Financial / Crypto Decimal |
|
|
|
Commercial Air-Gapped Browser Workbench & Developer Suite
Need a zero-install Bilingual Air-Gapped Browser Workbench (connect-src 'none') or Chrome DevTools MV3 Inspector for pasting production API responses, decoding JWT timestamps offline, and exporting 5-target schemas without touching the terminal?
Explore JsonSafe BigInt & Schema Studio and our full offline developer utility catalog at https://z121245017-ai.github.io/.
Verification
npm testLicense
MIT License — 0 external npm dependencies, 0 network calls, 100% local deterministic execution.
Available Tools
4 toolsdiff_lossless_rfc6902_patchARead-onlyIdempotent
Computes a lossless RFC 6902 JSON Patch (add, remove, replace) between two JSON snapshots, catching 1-ULP 64-bit Snowflake and high-precision decimal mutations that JSON.parse() silently misses.
Inputs: leftPath, rightPath, leftContent, rightContent, +1 more.
infer_multi_target_schemaARead-onlyIdempotent
Infers unified schemas across single JSON payloads or 1,000+ .jsonl rows (optional ?, | null, UUID, ISO timestamps, and string | bigint hazards) into TypeScript, Zod v3, Go struct, PostgreSQL DDL, and JSON Schema Draft 2020-12.
Inputs: targets, filePath, rootName, tableName, +2 more.
inspect_lossless_bigint_jsonARead-onlyIdempotent
Parses raw JSON or multi-line .jsonl payloads offline without IEEE-754 float64 truncation (> 2^53 - 1), flagging unsafe int64/decimal paths, decoding Snowflake timestamps, detecting duplicate keys, and previewing JWT claims.
Inputs: format, filePath, payloadContent, expandUnescaped, +1 more.
unescape_nested_json_logsARead-onlyIdempotent
Recursively un-escapes nested stringified JSON fields inside gateway, Kafka, or OpenTelemetry .json/.jsonl logs while preserving exact 64-bit Snowflake IDs and redacting JWT signatures.
Inputs: filePath, payloadContent, quoteUnsafeNumbers.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct JSON-safety concern: inspection, schema inference, diffing/patching, and log unescaping. The main overlap is between inspect_lossless_bigint_json and unescape_nested_json_logs, since both parse JSON/.jsonl logs, but their descriptions clarify analysis versus transformation.
All tool names follow a consistent snake_case verb-first pattern with descriptive noun phrases. The convention is predictable across the set, even though the names are long and specialized.
Four tools is well-scoped for a focused JSON safety utility. Each tool covers a distinct workflow—inspection, schema inference, patch diffing, and log unescaping—without obvious filler.
The surface covers several important JSON-safety workflows, but there are notable gaps such as applying RFC 6902 patches, safe serialization/stringification, and explicit validation or repair operations. Agents may need external tools to complete patch-apply and encode-side workflows.
Maintenance
Related MCP Connectors
Deterministic JSON repair, validate, example-gen, schema-coerce for agents. Zero LLM, sub-10ms.
Repair broken JSON without changing values, find the exact error, outline or query big payloads.
JSON healing, O(n) ReDoS defense, XML prompt compilation, and schema verification tools.
JSON/YAML, regex, diff, JWT, SQL dialects — the keyless millisecond ops an agent needs mid-task.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceDeterministic JSON validation and repair for AI agents. Validates, repairs, schema-checks, and diffs JSON so long-running agents don't corrupt their session state with malformed writes.MIT
- AlicenseAqualityCmaintenanceEnables AI agents to perform exact, reproducible mechanical computation — text diffing, hashing, JSON querying, calendar arithmetic, deadline-bounded regex extraction, CSV parsing, similarity scoring, unit and base conversion — instead of relying on probabilistic guessing. Runs dependency-free, read-only and offline over stdio, with schema validation and hard caps on every operation so no call can hang the client.15MIT
- AlicenseAqualityCmaintenanceEnables validating JSON/JSONC, getting/setting values with jq-like paths, pretty-printing or minifying, validating against Ajv JSON Schema, and diffing local files or inline strings without network calls.8MIT
- AlicenseAqualityBmaintenanceLets an agent query JSON files too large for its context: JSONPath with aggregation pipes, schema, field profiles, samples, identity-keyed diff, CSV and spreadsheet export, and checks that gate a file. Int64 IDs and decimals keep their exact digits, and zstd, Base64-Zstd and PostgreSQL bytea payloads open directly.12100 npm2MIT