Server MCP RealJSON
Un server locale Model Context Protocol che offre 19 strumenti JSON agli agenti IA. Gira sul tuo computer via stdio: nessun upload, nessuna chiave API.
Installazione in una riga
Serve Node.js 20 o successivo. Il tuo client MCP avvia il server quando serve.
Claude Desktop: aggiungi 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: aggiungi lo stesso blocco a ~/.cursor/mcp.json (o a .cursor/mcp.json in un progetto):
{
"mcpServers": {
"realjson": {
"command": "npx",
"args": ["-y", "@realjson/mcp-server"]
}
}
} Licenza Pro: aggiungi un blocco env alla voce del server:
{
"mcpServers": {
"realjson": {
"command": "npx",
"args": ["-y", "@realjson/mcp-server"],
"env": { "REALJSON_LICENSE": "rj1.…" }
}
}
} Strumenti disponibili
Ogni strumento è una funzione pura che lavora sul testo che le passi. Nulla tocca la rete o i tuoi file.
-
json_formatPretty-print JSON with a chosen indent (optionally sorting keys). -
json_minifyStrip all whitespace from JSON. -
json_validateCheck whether text is valid JSON. Returns {valid, error?, type?}. -
json_sort_keysSort object keys alphabetically (natural order), recursively by default. -
jsonpath_queryQuery JSON with a JSONPath expression ($.a.b[*], filters [?(@.x>1)], recursive descent ..). Returns matched values with their paths. -
json_to_schemaInfer 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_validateValidate JSON against a JSON Schema; returns every error with its JSON pointer path. -
json_to_csvConvert a JSON array (or object) to CSV, flattening nested objects to dot.path columns. -
json_to_xmlConvert JSON to well-formed XML (keys starting with @ become attributes). -
jsonl_convertConvert between a JSON array and JSON Lines (NDJSON). direction "to_jsonl" takes JSON, "to_json" takes JSONL text. -
json_diffCompare two JSON documents and return RFC 6902-style add/remove/replace operations turning `a` into `b`. -
json_to_codeGenerate typed code from JSON: Go structs, Python dataclasses/Pydantic, Java records, Rust serde structs or Zod schemas. -
json_repairFix 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_validateValidate 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_chaosInject edge cases (nulls, type swaps, huge strings, unicode, deep nesting) into JSON to test consumers. Pass a seed for reproducible output. -
jwt_decodeDecode a JWT (header, payload, exp/nbf status). Optionally verify an HS256/HS384/HS512 signature with a secret — verification happens locally. -
json_to_yamlConvert JSON to YAML. -
xml_to_jsonConvert XML to JSON (attributes become @name keys, text next to children becomes #text, repeated siblings become arrays). -
csv_to_jsonConvert CSV text to a JSON array of objects (or arrays without a header row), with optional type inference.
Limiti di Gratis e Pro
Gratis: 256 KB per chiamata e 300 chiamate al giorno (azzeramento a mezzanotte locale). Pro: 10 MB per chiamata, chiamate illimitate e lo strumento batch. Le chiamate oltre il limite restituiscono un risultato normale che spiega il limite, quando si azzera e come passare a Pro; json_validate e json_repair su input piccoli funzionano sempre.
Vedi i prezziPrivato per progetto
Il server non contiene codice di rete. L’utilizzo viene conteggiato in un piccolo file sul tuo disco e le licenze Pro sono verificate offline con una chiave pubblica: nessun account, nessuna telemetria, nessun server di licenze.
WebMCP su realjson.com
Nei browser che supportano WebMCP (navigator.modelContext), realjson.com registra i suoi strumenti principali così che un agente nel browser possa chiamarli direttamente. Tutto continua a girare nella pagina.
Domande frequenti
Che cos’è il server MCP di RealJSON?
Un server aperto Model Context Protocol che espone formattatore, validatore, riparazione, JSONPath, schemi, diff e convertitori di RealJSON come strumenti richiamabili da un agente IA.
Il mio JSON viene caricato da qualche parte?
No. Il server gira in locale via stdio e non contiene codice di rete, quindi i tuoi dati non lasciano mai il tuo computer.
Con quali client funziona?
Con qualsiasi client MCP in grado di avviare un server stdio, tra cui Claude Desktop, Claude Code, Cursor, VS Code, Windsurf e Zed.
Quali sono i limiti di utilizzo?
Gratis consente 256 KB per chiamata e 300 chiamate al giorno. Pro consente 10 MB per chiamata con chiamate illimitate. Le piccole chiamate di convalida e riparazione non vengono mai bloccate.
Che cos’è WebMCP?
WebMCP è un’API del browser che permette a una pagina web di offrire strumenti agli agenti IA nel browser. RealJSON registra i suoi strumenti principali quando l’API è disponibile e non fa nulla in caso contrario.