data-transform
Cloudflare Workers MCP server: data-transform
我该使用它吗
质量与安全性
发现(3)
- LOW在 flatten 中
- LOW在 unflatten 中
- LOW在 pick 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"data-transform": {
"url": "https://api.lazy-mac.com/data-transform/mcp"
}
}
}远程端点
https://api.lazy-mac.com/data-transform/mcpstreamable-http它能做什么
工具清单
工具(10)
⚪json_to_csv(data, delimiter)
Convert a JSON array of objects to CSV text. Optionally specify a delimiter.
输入模式
{
"type": "object",
"properties": {
"data": {
"type": "array",
"description": "Array of objects to convert",
"items": {
"type": "object"
}
},
"delimiter": {
"type": "string",
"description": "CSV delimiter (default: comma)"
}
},
"required": [
"data"
]
}🟢csv_to_json(csv, delimiter)
Parse CSV text into a JSON array of objects.
输入模式
{
"type": "object",
"properties": {
"csv": {
"type": "string",
"description": "CSV text to parse"
},
"delimiter": {
"type": "string",
"description": "CSV delimiter (default: comma)"
}
},
"required": [
"csv"
]
}⚪json_to_xml(data, rootName)
Convert a JSON object or array to XML string.
输入模式
{
"type": "object",
"properties": {
"data": {
"description": "JSON data to convert to XML"
},
"rootName": {
"type": "string",
"description": "Root element name (default: root)"
}
},
"required": [
"data"
]
}⚪flatten(data)
Flatten a nested JSON object into dot-notation keys.
输入模式
{
"type": "object",
"properties": {
"data": {
"type": "object",
"description": "Nested object to flatten"
}
},
"required": [
"data"
]
}⚪unflatten(data)
Unflatten a dot-notation JSON object back into nested structure.
输入模式
{
"type": "object",
"properties": {
"data": {
"type": "object",
"description": "Flat dot-notation object to unflatten"
}
},
"required": [
"data"
]
}🟢filter(data, query)
Filter a JSON array by a query object. Supports >, <, ! prefixes for comparisons.
输入模式
{
"type": "object",
"properties": {
"data": {
"type": "array",
"description": "Array of objects to filter",
"items": {
"type": "object"
}
},
"query": {
"type": "object",
"description": "Filter criteria (e.g. {\"age\":\">30\",\"status\":\"active\"})"
}
},
"required": [
"data",
"query"
]
}⚪pick(data, fields)
Pick specific fields from each object in a JSON array.
输入模式
{
"type": "object",
"properties": {
"data": {
"type": "array",
"description": "Array of objects",
"items": {
"type": "object"
}
},
"fields": {
"type": "array",
"description": "Field names to keep",
"items": {
"type": "string"
}
}
},
"required": [
"data",
"fields"
]
}⚪sort(data, field, order)
Sort a JSON array by a field.
输入模式
{
"type": "object",
"properties": {
"data": {
"type": "array",
"description": "Array of objects to sort",
"items": {
"type": "object"
}
},
"field": {
"type": "string",
"description": "Field name to sort by"
},
"order": {
"type": "string",
"enum": [
"asc",
"desc"
],
"description": "Sort order (default: asc)"
}
},
"required": [
"data",
"field"
]
}🟢stats(data, field)
Compute statistics (count, sum, mean, min, max, median) for a numeric field.
输入模式
{
"type": "object",
"properties": {
"data": {
"type": "array",
"description": "Array of objects",
"items": {
"type": "object"
}
},
"field": {
"type": "string",
"description": "Numeric field to compute stats for"
}
},
"required": [
"data",
"field"
]
}⚪validate(data)
Validate a JSON string and return type, size, or error.
输入模式
{
"type": "object",
"properties": {
"data": {
"type": "string",
"description": "JSON string to validate"
}
},
"required": [
"data"
]
}社区
证据