MCP 服务器

Dataset Filter & Transform

io.github.Nero-Engine/dataset-filter-transform
数据与分析 公开且可连接 MCP 2026-07-28

此 MCP 可以做什么

Filters, transforms, sorts, deduplicates, and limits JSON rows using configurable processing pipelines.

list_capabilities
Returns every filter operator and transform operation this server supports, the order the pipeline runs in, and the maximum rows per call. Call this first if you are unsure what is available. Free, processes no data.
输入模式
{'type': 'object', 'properties': {}, 'additionalProperties': False}
process_rows
Cleans a list of JSON rows in one call: transforms each row, filters out the rows you do not want, then optionally sorts, de-duplicates and limits them. Returns the kept rows plus a summary of exactly what was removed and why. Use it to reshape scraped or API data before passing it on: rename and drop fields, cast strings to numbers, compute new fields with arithmetic, extract with regex, then keep only the rows that match your rules. Transforms run before filters, so you can filter on a field you just created.
输入模式
{'type': 'object', 'required': ['rows'], 'properties': {'rows': {'type': 'array', 'items': {'type': 'object'}, 'description': 'The rows to process. Each row is a JSON object. Keys may differ between rows.'}, 'limit': {'type': 'integer', 'description': 'Return at most this many rows.'}, 'offset': {'type': 'integer', 'description': 'Skip this many rows after filtering and sorting.'}, 'sortBy': {'type': 'array', 'items': {'type': 'object'}, 'description': 'Sort the kept rows, for example [{"field":"price","direction":"desc"}].'}, 'filters': {'type': 'array', 'items': {'type': 'object'}, 'description': 'Conditions a row must satisfy to be kept, for example {"field":"country","operator":"equals","value":"UK"} or {"field":"price","operator":"greaterThan","value":100}. Dot paths like "address.city" work. Call list_capabilities for all 25 operators.'}, 'distinctBy': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Keep only the first row for each combination of these fields. Applied after sorting, so sorting first lets you keep the newest row per key.'}, 'transforms': {'type': 'array', 'items': {'type': 'object'}, 'description': 'Transform steps applied to every row, in order. Each step is an object with an "op" key, for example {"op":"cast","field":"price","to":"number"} or {"op":"compute","field":"total","expression":"price * qty"} or {"op":"rename","from":"e_mail","to":"email"}. Call list_capabilities for all 26 operations.'}, 'lenientNumbers': {'type': 'boolean', 'description': 'On by default: values like "$1,234.50", "49 USD" and "12%" are read as numbers. Set false to require real numeric values.'}, 'filterCombineMode': {'enum': ['AND', 'OR'], 'type': 'string', 'description': 'Whether a row must match every filter (AND, the default) or any one of them (OR).'}, 'caseSensitiveFilters': {'type': 'boolean', 'description': 'Text comparisons are case-insensitive by default. Set true to make them exact.'}}, 'additionalProperties': False}
已添加
process_rows
2026年9月17日 12:45
已添加
list_capabilities
2026年9月17日 12:45