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"
]
}社群
證據