MCP 服务器

data-transform

io.github.lazymac2x/data-transform
数据与分析 开发者工具 公开且可连接 MCP 2026-07-28

此 MCP 可以做什么

Transforms and analyzes structured data through CSV, JSON, XML, filtering, sorting, flattening, field selection, and statistics tools.

csv_to_json
Parse CSV text into a JSON array of objects.
输入模式
{'type': 'object', 'required': ['csv'], 'properties': {'csv': {'type': 'string', 'description': 'CSV text to parse'}, 'delimiter': {'type': 'string', 'description': 'CSV delimiter (default: comma)'}}}
filter
Filter a JSON array by a query object. Supports >, <, ! prefixes for comparisons.
输入模式
{'type': 'object', 'required': ['data', 'query'], 'properties': {'data': {'type': 'array', 'items': {'type': 'object'}, 'description': 'Array of objects to filter'}, 'query': {'type': 'object', 'description': 'Filter criteria (e.g. {"age":">30","status":"active"})'}}}
flatten
Flatten a nested JSON object into dot-notation keys.
输入模式
{'type': 'object', 'required': ['data'], 'properties': {'data': {'type': 'object', 'description': 'Nested object to flatten'}}}
json_to_csv
Convert a JSON array of objects to CSV text. Optionally specify a delimiter.
输入模式
{'type': 'object', 'required': ['data'], 'properties': {'data': {'type': 'array', 'items': {'type': 'object'}, 'description': 'Array of objects to convert'}, 'delimiter': {'type': 'string', 'description': 'CSV delimiter (default: comma)'}}}
json_to_xml
Convert a JSON object or array to XML string.
输入模式
{'type': 'object', 'required': ['data'], 'properties': {'data': {'description': 'JSON data to convert to XML'}, 'rootName': {'type': 'string', 'description': 'Root element name (default: root)'}}}
pick
Pick specific fields from each object in a JSON array.
输入模式
{'type': 'object', 'required': ['data', 'fields'], 'properties': {'data': {'type': 'array', 'items': {'type': 'object'}, 'description': 'Array of objects'}, 'fields': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Field names to keep'}}}
sort
Sort a JSON array by a field.
输入模式
{'type': 'object', 'required': ['data', 'field'], 'properties': {'data': {'type': 'array', 'items': {'type': 'object'}, 'description': 'Array of objects to sort'}, 'field': {'type': 'string', 'description': 'Field name to sort by'}, 'order': {'enum': ['asc', 'desc'], 'type': 'string', 'description': 'Sort order (default: asc)'}}}
stats
Compute statistics (count, sum, mean, min, max, median) for a numeric field.
输入模式
{'type': 'object', 'required': ['data', 'field'], 'properties': {'data': {'type': 'array', 'items': {'type': 'object'}, 'description': 'Array of objects'}, 'field': {'type': 'string', 'description': 'Numeric field to compute stats for'}}}
unflatten
Unflatten a dot-notation JSON object back into nested structure.
输入模式
{'type': 'object', 'required': ['data'], 'properties': {'data': {'type': 'object', 'description': 'Flat dot-notation object to unflatten'}}}
validate
Validate a JSON string and return type, size, or error.
输入模式
{'type': 'object', 'required': ['data'], 'properties': {'data': {'type': 'string', 'description': 'JSON string to validate'}}}
已添加
validate
2026年9月17日 12:43
已添加
stats
2026年9月17日 12:43
已添加
sort
2026年9月17日 12:43
已添加
pick
2026年9月17日 12:43
已添加
filter
2026年9月17日 12:43
已添加
unflatten
2026年9月17日 12:43
已添加
flatten
2026年9月17日 12:43
已添加
json_to_xml
2026年9月17日 12:43
已添加
csv_to_json
2026年9月17日 12:43
已添加
json_to_csv
2026年9月17日 12:43