awk-mcp
v1.0.0Awk MCP: run programs, filter rows, aggregate columns and join delimited files with 20 real tools.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
run_program
Run an inline AWK program. Use input text or a file, never both.
| Parameter | Type | Description |
|---|---|---|
program * | string | |
fieldSeparator | string | |
file | string | |
input | string | |
timeoutMs | integer |
run_script_file
Run an AWK program from a .awk file. Use input text or a file, never both.
| Parameter | Type | Description |
|---|---|---|
scriptPath * | string | |
fieldSeparator | string | |
file | string | |
input | string | |
timeoutMs | integer |
check_program
Parse an AWK program without real input and return its syntax errors.
| Parameter | Type | Description |
|---|---|---|
program * | string | |
fieldSeparator | string |
extract_columns
Print selected 1-based columns from delimited input.
| Parameter | Type | Description |
|---|---|---|
columns * | array | |
input * | string | |
fieldSeparator | string | |
outputSeparator |
filter_rows
Keep rows where an AWK expression is true, e.g. $3 > 10 or $1 == "ok".
| Parameter | Type | Description |
|---|---|---|
condition * | string | |
input * | string | |
fieldSeparator | string | |
outputSeparator |
sum_column
Sum one numeric column.
| Parameter | Type | Description |
|---|---|---|
column * | integer | |
input * | string | |
fieldSeparator | string |
average_column
Average one numeric column. Empty input returns 0.
| Parameter | Type | Description |
|---|---|---|
column * | integer | |
input * | string | |
fieldSeparator | string |
unique_column
Print each distinct value in a column once, in first-seen order.
| Parameter | Type | Description |
|---|---|---|
column * | integer | |
input * | string | |
fieldSeparator | string |
sort_by_column
Sort lines by one 1-based column, optionally numeric and descending.
| Parameter | Type | Description |
|---|---|---|
column * | integer | |
input * | string | |
fieldSeparator | string | |
numeric | boolean | |
reverse | boolean |
join_files
Join two delimited files on numeric key columns.
| Parameter | Type | Description |
|---|---|---|
left * | string | |
leftKey * | integer | |
right * | string | |
rightKey * | integer | |
fieldSeparator | string | |
outputSeparator |
count_rows
Count input rows.
| Parameter | Type | Description |
|---|---|---|
input * | string | |
fieldSeparator | string |
print_version
Show the local AWK implementation and version when available.