RealJSON
Probeer nu

RealJSON MCP-server

Een lokale Model Context Protocol-server die AI-agents 19 JSON-tools geeft. Hij draait op je computer via stdio — geen uploads, geen API-sleutels.

Installeren in één regel

Je hebt Node.js 20 of nieuwer nodig. Je MCP-client start de server wanneer dat nodig is.

Claude Desktop — voeg toe aan claude_desktop_config.json:

{
  "mcpServers": {
    "realjson": {
      "command": "npx",
      "args": ["-y", "@realjson/mcp-server"]
    }
  }
}

Claude Code:

claude mcp add realjson -- npx -y @realjson/mcp-server

Cursor — voeg hetzelfde blok toe aan ~/.cursor/mcp.json (of .cursor/mcp.json in een project):

{
  "mcpServers": {
    "realjson": {
      "command": "npx",
      "args": ["-y", "@realjson/mcp-server"]
    }
  }
}

Pro-licentie — voeg een env-blok toe aan de serverregel:

{
  "mcpServers": {
    "realjson": {
      "command": "npx",
      "args": ["-y", "@realjson/mcp-server"],
      "env": { "REALJSON_LICENSE": "rj1.…" }
    }
  }
}

Beschikbare tools

Elke tool is een pure functie die werkt op de tekst die je aanlevert. Niets raakt het netwerk of je bestanden.

  • json_format Pretty-print JSON with a chosen indent (optionally sorting keys).
  • json_minify Strip all whitespace from JSON.
  • json_validate Check whether text is valid JSON. Returns {valid, error?, type?}.
  • json_sort_keys Sort object keys alphabetically (natural order), recursively by default.
  • jsonpath_query Query JSON with a JSONPath expression ($.a.b[*], filters [?(@.x>1)], recursive descent ..). Returns matched values with their paths.
  • json_to_schema Infer a JSON Schema from sample JSON (an array is treated as multiple samples). Set structured_output to get a schema accepted by LLM structured outputs / function calling (OpenAI strict mode, Anthropic, Gemini): object root, additionalProperties false, every property required (missing ones become nullable).
  • json_schema_validate Validate JSON against a JSON Schema; returns every error with its JSON pointer path.
  • json_to_csv Convert a JSON array (or object) to CSV, flattening nested objects to dot.path columns.
  • json_to_xml Convert JSON to well-formed XML (keys starting with @ become attributes).
  • jsonl_convert Convert between a JSON array and JSON Lines (NDJSON). direction "to_jsonl" takes JSON, "to_json" takes JSONL text.
  • json_diff Compare two JSON documents and return RFC 6902-style add/remove/replace operations turning `a` into `b`.
  • json_to_code Generate typed code from JSON: Go structs, Python dataclasses/Pydantic, Java records, Rust serde structs or Zod schemas.
  • json_repair Fix almost-JSON and LLM output: extracts JSON from chat text and ```json fences, closes truncated output, escapes stray quotes and raw newlines, fixes comments, single/curly quotes, unquoted keys, missing/trailing commas, Python True/False/None and NaN/undefined. Returns the repaired JSON and the fixes applied.
  • finetune_validate Validate a fine-tuning dataset (JSON Lines) before uploading it: OpenAI chat (SFT), OpenAI preference (DPO), Anthropic Claude (Amazon Bedrock) or prompt/completion. Returns the detected format, per-line errors and warnings (roles, missing assistant turns, weights, DPO pairs, duplicates, minimum example count) and stats including an approximate token count.
  • json_chaos Inject edge cases (nulls, type swaps, huge strings, unicode, deep nesting) into JSON to test consumers. Pass a seed for reproducible output.
  • jwt_decode Decode a JWT (header, payload, exp/nbf status). Optionally verify an HS256/HS384/HS512 signature with a secret — verification happens locally.
  • json_to_yaml Convert JSON to YAML.
  • xml_to_json Convert XML to JSON (attributes become @name keys, text next to children becomes #text, repeated siblings become arrays).
  • csv_to_json Convert CSV text to a JSON array of objects (or arrays without a header row), with optional type inference.

Limieten van Gratis en Pro

Gratis: 256 KB per aanroep en 300 aanroepen per dag (reset om lokale middernacht). Pro: 10 MB per aanroep, onbeperkte aanroepen en de batchtool. Aanroepen boven de limiet geven een gewoon resultaat dat de limiet, het resettijdstip en het upgraden uitlegt; json_validate en json_repair op kleine invoer werken altijd.

Bekijk prijzen

Privé door ontwerp

De server bevat geen netwerkcode. Gebruik wordt bijgehouden in een klein bestand op je schijf en Pro-licenties worden offline gecontroleerd met een publieke sleutel — geen account, geen telemetrie, geen licentieserver.

WebMCP op realjson.com

In browsers die WebMCP ondersteunen (navigator.modelContext) registreert realjson.com de belangrijkste tools zodat een agent in de browser ze direct kan aanroepen. Alles draait nog steeds in de pagina.

Veelgestelde vragen

Wat is de RealJSON MCP-server?

Een open Model Context Protocol-server die de formatter, validator, reparatie, JSONPath, schema, diff en converters van RealJSON beschikbaar stelt als tools die een AI-agent kan aanroepen.

Wordt mijn JSON ergens geüpload?

Nee. De server draait lokaal via stdio en bevat geen netwerkcode, dus je data verlaat je computer nooit.

Met welke clients werkt hij?

Met elke MCP-client die een stdio-server kan starten, waaronder Claude Desktop, Claude Code, Cursor, VS Code, Windsurf en Zed.

Wat zijn de gebruikslimieten?

Gratis staat 256 KB per aanroep en 300 aanroepen per dag toe. Pro staat 10 MB per aanroep toe met onbeperkte aanroepen. Kleine valideer- en repareeraanroepen worden nooit geblokkeerd.

Wat is WebMCP?

WebMCP is een browser-API waarmee een webpagina tools kan aanbieden aan AI-agents in de browser. RealJSON registreert zijn belangrijkste tools wanneer de API beschikbaar is en doet anders niets.