RealJSON
Probar ahora

Servidor MCP de RealJSON

Un servidor local del Model Context Protocol que da a los agentes de IA 19 herramientas JSON. Se ejecuta en tu equipo por stdio, sin subidas ni claves de API.

Instalación en una línea

Necesitas Node.js 20 o superior. Tu cliente MCP inicia el servidor cuando hace falta.

Claude Desktop: añade esto a 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: añade el mismo bloque a ~/.cursor/mcp.json (o a .cursor/mcp.json en un proyecto):

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

Licencia Pro: añade un bloque env a la entrada del servidor:

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

Herramientas disponibles

Cada herramienta es una función pura que trabaja con el texto que le pasas. Nada toca la red ni tus archivos.

  • 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.

Límites de Gratis y Pro

Gratis: 256 KB por llamada y 300 llamadas al día (reinicio a medianoche local). Pro: 10 MB por llamada, llamadas ilimitadas y la herramienta por lotes. Las llamadas que superan el límite devuelven un resultado normal que explica el límite, cuándo se reinicia y cómo mejorar; json_validate y json_repair con entradas pequeñas siempre funcionan.

Ver precios

Privado por diseño

El servidor no tiene código de red. El uso se cuenta en un archivo pequeño de tu disco y las licencias Pro se verifican sin conexión con una clave pública: sin cuenta, sin telemetría y sin servidor de licencias.

WebMCP en realjson.com

En los navegadores compatibles con WebMCP (navigator.modelContext), realjson.com registra sus herramientas principales para que un agente del navegador pueda llamarlas directamente. Todo sigue ejecutándose en la página.

Preguntas frecuentes

¿Qué es el servidor MCP de RealJSON?

Un servidor abierto del Model Context Protocol que expone el formateador, el validador, la reparación, JSONPath, los esquemas, el diff y los conversores de RealJSON como herramientas que puede llamar un agente de IA.

¿Mi JSON se sube a algún sitio?

No. El servidor se ejecuta en local por stdio y no contiene código de red, así que tus datos nunca salen de tu equipo.

¿Con qué clientes funciona?

Con cualquier cliente MCP que pueda iniciar un servidor stdio, como Claude Desktop, Claude Code, Cursor, VS Code, Windsurf y Zed.

¿Cuáles son los límites de uso?

Gratis permite 256 KB por llamada y 300 llamadas al día. Pro permite 10 MB por llamada y llamadas ilimitadas. Las llamadas pequeñas de validar y reparar nunca se bloquean.

¿Qué es WebMCP?

WebMCP es una API del navegador que permite a una página web ofrecer herramientas a los agentes de IA del navegador. RealJSON registra sus herramientas principales cuando la API está disponible y no hace nada en caso contrario.