RealJSON
Dùng thử ngay

Máy chủ MCP RealJSON

Máy chủ Model Context Protocol cục bộ cung cấp 19 công cụ JSON cho tác tử AI. Chạy trên máy của bạn qua stdio — không tải lên, không cần khóa API.

Cài đặt chỉ một dòng

Cần Node.js 20 trở lên. MCP client sẽ khởi động máy chủ khi cần.

Claude Desktop — thêm vào 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 — thêm cùng khối này vào ~/.cursor/mcp.json (hoặc .cursor/mcp.json trong dự án):

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

Giấy phép Pro — thêm khối env vào mục máy chủ:

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

Các công cụ có sẵn

Mỗi công cụ là một hàm thuần túy xử lý văn bản bạn truyền vào. Không có gì chạm đến mạng hay tệp của bạn.

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

Giới hạn gói Miễn phí và Pro

Miễn phí: 256 KB mỗi lần gọi và 300 lần gọi mỗi ngày (đặt lại vào nửa đêm theo giờ địa phương). Pro: 10 MB mỗi lần gọi, gọi không giới hạn và công cụ hàng loạt. Lời gọi vượt giới hạn trả về kết quả bình thường giải thích giới hạn, thời điểm đặt lại và cách nâng cấp; json_validate và json_repair với đầu vào nhỏ luôn hoạt động.

Xem bảng giá

Riêng tư từ thiết kế

Máy chủ không có mã mạng. Lượng sử dụng được đếm trong một tệp nhỏ trên ổ đĩa của bạn và giấy phép Pro được xác minh ngoại tuyến bằng khóa công khai — không tài khoản, không telemetry, không máy chủ giấy phép.

WebMCP trên realjson.com

Trên trình duyệt hỗ trợ WebMCP (navigator.modelContext), realjson.com đăng ký các công cụ chính để tác tử trong trình duyệt gọi trực tiếp. Mọi xử lý vẫn diễn ra trong trang.

Câu hỏi thường gặp

Máy chủ MCP RealJSON là gì?

Một máy chủ Model Context Protocol mở, cung cấp trình định dạng, kiểm tra, sửa lỗi, JSONPath, schema, diff và các bộ chuyển đổi của RealJSON dưới dạng công cụ để tác tử AI gọi.

JSON của tôi có bị tải lên đâu không?

Không. Máy chủ chạy cục bộ qua stdio và không chứa mã mạng, nên dữ liệu của bạn không bao giờ rời khỏi máy.

Hoạt động với những client nào?

Mọi MCP client có thể khởi chạy máy chủ stdio, gồm Claude Desktop, Claude Code, Cursor, VS Code, Windsurf và Zed.

Giới hạn sử dụng là gì?

Gói Miễn phí cho phép 256 KB mỗi lần gọi và 300 lần gọi mỗi ngày. Pro cho phép 10 MB mỗi lần gọi và gọi không giới hạn. Các lời gọi kiểm tra và sửa lỗi nhỏ không bao giờ bị chặn.

WebMCP là gì?

WebMCP là API trình duyệt cho phép trang web cung cấp công cụ cho tác tử AI trong trình duyệt. RealJSON đăng ký các công cụ chính khi API khả dụng và không làm gì nếu không.