
Json
Plugs JSON, YAML, and CSV manipulation directly into Claude through stdio. You get seven tools: schema validation with detailed error paths, structural diffs showing what changed where, transformations like pick/rename/flatten, and bidirectional conversion between all three formats with configurable delimiters and type casting. Useful when you're building workflows that need to validate API payloads against schemas, compare configuration files, reshape data structures without writing throwaway scripts, or convert between formats during data pipeline work. Install via npm, point Claude Desktop or Claude Code at the built index.js, and the tools appear in your agent's toolkit.
- tools
- 6
- transport
- STDIO
- last updated
- Mar 22, 2026
Tools
6 toolsPublic tool metadata for what this MCP can expose to an agent.
json_formatPretty-print or minify JSON. Specify indent level (default 2) or set minify=true to compact JSON into a single line.3 params
Pretty-print or minify JSON. Specify indent level (default 2) or set minify=true to compact JSON into a single line.
indentintegerjsonstringminifybooleanjson_validateValidate a JSON string. Returns valid=true with type info on success, or valid=false with line, column, error message, and a suggestion for fixing common mistakes.1 params
Validate a JSON string. Returns valid=true with type info on success, or valid=false with line, column, error message, and a suggestion for fixing common mistakes.
jsonstringjson_diffCompare two JSON values and return a structured diff showing added paths, removed paths, and changed values. Supports nested objects and arrays.2 params
Compare two JSON values and return a structured diff showing added paths, removed paths, and changed values. Supports nested objects and arrays.
json_astringjson_bstringjson_queryQuery JSON data using JSONPath-like syntax. Supports: root ($), dot notation ($.a.b), bracket notation ($["key"]), array index ($[0]), wildcard (*), deep scan (..), slice ([1:3]), filter ([?(@.age>18)]), and union ([0,1]).2 params
Query JSON data using JSONPath-like syntax. Supports: root ($), dot notation ($.a.b), bracket notation ($["key"]), array index ($[0]), wildcard (*), deep scan (..), slice ([1:3]), filter ([?(@.age>18)]), and union ([0,1]).
jsonstringquerystringjson_transformTransform JSON data. Operations: "flatten" (nested→flat with dot keys), "unflatten" (flat→nested), "pick" (keep only specified keys), "omit" (remove specified keys), "rename" (rename keys via a map). Use options.deep=true for recursive key operations.3 params
Transform JSON data. Operations: "flatten" (nested→flat with dot keys), "unflatten" (flat→nested), "pick" (keep only specified keys), "omit" (remove specified keys), "rename" (rename keys via a map). Use options.deep=true for recursive key operations.
jsonstringoperationstringflatten · unflatten · pick · omit · renameoptionsobjectjson_schema_generateGenerate a JSON Schema (draft-07 compatible) from a sample JSON object. Infers types, required fields, formats (date-time, email, uri, uuid), and nested structure. Ideal for API documentation or validation setup.2 params
Generate a JSON Schema (draft-07 compatible) from a sample JSON object. Infers types, required fields, formats (date-time, email, uri, uuid), and nested structure. Ideal for API documentation or validation setup.
jsonstringtitlestringSponsors
Readme
mcp-json-tools
An MCP (Model Context Protocol) server that provides JSON and data manipulation tools for AI agents. Designed for use with Claude Code, Claude Desktop, and any MCP-compatible client.
Tools
| Tool | Description |
|---|---|
json_validate | Validate JSON data against a JSON Schema, returning detailed errors with paths |
json_diff | Compare two JSON objects, showing additions, removals, and changes with paths |
json_transform | Transform JSON with pick, rename, flatten, and unflatten operations |
csv_to_json | Convert CSV text to a JSON array with configurable headers, delimiters, and type casting |
json_to_csv | Convert a JSON array of objects to CSV text |
yaml_to_json | Convert YAML text to JSON |
json_to_yaml | Convert JSON text to YAML |
Installation
npm install
npm run build
Usage with Claude Code
claude mcp add json-tools -- node D:/products/mcp-servers/mcp-json-tools/dist/index.js
Usage with Claude Desktop
Add the following to your Claude Desktop configuration file:
Details
- Repository
- github.com/rog0x/mcp-json-tools
- Category
- Data & Analytics
- Package
@rog0x/mcp-json-tools- Transport
- STDIO
- Registry
- MCP registry, active