RealJSON MCPサーバー
AIエージェントに19個のJSONツールを提供するローカルのModel Context Protocolサーバー。stdio経由であなたのマシン上で動作し、アップロードもAPIキーも不要です。
1行でインストール
Node.js 20以上が必要です。MCPクライアントが必要に応じてサーバーを起動します。
Claude Desktop: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:同じブロックを ~/.cursor/mcp.json(またはプロジェクトの .cursor/mcp.json)に追加します:
{
"mcpServers": {
"realjson": {
"command": "npx",
"args": ["-y", "@realjson/mcp-server"]
}
}
} Proライセンス:サーバーのエントリに env ブロックを追加します:
{
"mcpServers": {
"realjson": {
"command": "npx",
"args": ["-y", "@realjson/mcp-server"],
"env": { "REALJSON_LICENSE": "rj1.…" }
}
}
} 利用できるツール
すべてのツールは、渡したテキストを処理する純粋な関数です。ネットワークやファイルには一切触れません。
-
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.
無料プランとProの上限
無料:1回256KB、1日300回(現地時間の午前0時にリセット)。Pro:1回10MB、呼び出し無制限、バッチツール。上限を超えた呼び出しには、上限の内容・リセット時刻・アップグレード方法を説明する通常の結果が返ります。小さな入力の json_validate と json_repair は常に動作します。
料金を見る設計段階からプライベート
サーバーにはネットワーク用のコードがありません。利用回数はディスク上の小さなファイルで数え、Proライセンスは公開鍵でオフライン検証します。アカウントもテレメトリもライセンスサーバーもありません。
realjson.com の WebMCP
WebMCP(navigator.modelContext)に対応したブラウザでは、realjson.comが主要ツールを登録し、ブラウザ内のエージェントが直接呼び出せます。処理はすべてページ内で完結します。
よくある質問
RealJSON MCPサーバーとは何ですか?
RealJSONのフォーマッター、バリデーター、修復、JSONPath、スキーマ、差分、コンバーターを、AIエージェントが呼び出せるツールとして公開するオープンなModel Context Protocolサーバーです。
JSONはどこかにアップロードされますか?
いいえ。サーバーはstdio経由でローカル動作し、ネットワーク用のコードを含まないため、データがマシンの外に出ることはありません。
どのクライアントで使えますか?
Claude Desktop、Claude Code、Cursor、VS Code、Windsurf、Zedなど、stdioサーバーを起動できるMCPクライアントならどれでも使えます。
利用上限はどうなっていますか?
無料は1回256KB・1日300回。Proは1回10MBで呼び出し無制限です。小さな入力の検証と修復がブロックされることはありません。
WebMCPとは何ですか?
WebMCPは、Webページがブラウザ内のAIエージェントにツールを提供できるブラウザAPIです。RealJSONはAPIが利用できる場合に主要ツールを登録し、そうでなければ何もしません。