Json

io.github.rog0x由 GitHub 账号 rog0x 发布v1.0.1更新于 Oct 24, 2026

JSON/YAML/CSV validate, diff, transform for AI agents

已验证STDIO仅桌面开发者工具数据与分析

概览

AI 生成的概览

让助手在本地校验、比对、转换 JSON、YAML 和 CSV 数据。

可以做什么
提供七个数据处理工具:json_validate 按 JSON Schema 校验 JSON 并返回带字段路径的错误;json_diff 比较两个 JSON 对象,按点号路径列出新增、删除和变更;json_transform 支持 pick、rename、flatten、unflatten 操作;csv_to_json 与 json_to_csv 在 CSV 文本和 JSON 数组之间转换;yaml_to_json 与 json_to_yaml 在 YAML 和 JSON 之间转换。所有处理都针对传入工具的文本完成。
适用场景
适合助手在任务中检查或调整结构化数据的场景:按 schema 校验配置或接口数据、比较两个版本的 JSON 文档、提取或重命名字段,以及在 JSON、YAML、CSV 格式之间转换。
运行要求
以本地进程方式通过 stdio 运行。README 说明需安装该 npm 包并构建,然后用指向构建产物入口文件的 Node.js 命令注册。未声明任何账号、API 密钥或环境变量。
安装前请注意
README 的示例配置使用指向构建产物的本地绝对路径,需按实际机器调整。工具只处理请求中提供的文本;未声明任何凭据或网络访问。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Json,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

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

ToolDescription
json_validateValidate JSON data against a JSON Schema, returning detailed errors with paths
json_diffCompare two JSON objects, showing additions, removals, and changes with paths
json_transformTransform JSON with pick, rename, flatten, and unflatten operations
csv_to_jsonConvert CSV text to a JSON array with configurable headers, delimiters, and type casting
json_to_csvConvert a JSON array of objects to CSV text
yaml_to_jsonConvert YAML text to JSON
json_to_yamlConvert JSON text to YAML

Installation

bash
npm installnpm run build

Usage with Claude Code

bash
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:

Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

json
{  "mcpServers": {    "json-tools": {      "command": "node",      "args": ["D:/products/mcp-servers/mcp-json-tools/dist/index.js"]    }  }}

Tool Details

json_validate

Validate JSON data against a JSON Schema. Returns a valid boolean and an array of errors, each with the field path, message, and schema keyword that failed.

Parameters:

  • data (string) — JSON data to validate
  • schema (string) — JSON Schema to validate against

json_diff

Compare two JSON objects and produce a structured diff. Each difference includes the dot-notation path, the type of change (added, removed, or changed), and the old/new values.

Parameters:

  • original (string) — Original JSON object
  • modified (string) — Modified JSON object

json_transform

Apply transformations to JSON data. Supports four operations:

  • pick — Extract specific fields by dot-notation paths
  • rename — Rename top-level keys using a mapping object
  • flatten — Flatten nested objects into dot-separated keys
  • unflatten — Restore dot-separated keys into nested objects

Parameters:

  • data (string) — JSON data to transform
  • operation (string) — One of: pick, rename, flatten, unflatten
  • fields (string[]) — For pick: field paths to extract
  • mapping (object) — For rename: old-to-new key mapping
  • separator (string) — For flatten/unflatten: separator character (default: ".")

csv_to_json

Parse CSV text into a JSON array of objects.

Parameters:

  • csv (string) — CSV text to convert
  • hasHeaders (boolean) — Whether the first row is headers (default: true)
  • delimiter (string) — Column delimiter (default: ",")
  • castTypes (boolean) — Auto-cast numbers and booleans (default: false)

json_to_csv

Convert a JSON array of objects to CSV text. Headers are derived from the union of all object keys.

Parameters:

  • data (string) — JSON array to convert
  • delimiter (string) — Column delimiter (default: ",")
  • includeHeaders (boolean) — Include header row (default: true)

yaml_to_json / json_to_yaml

Convert between YAML and JSON formats.

Parameters:

  • yamlText / jsonText (string) — Text to convert
  • indent (number) — Indentation spaces (default: 2)

License

MIT

来源:README.md,提交 bf22559

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分