awk-mcp

v1.0.0
io.github.mrfentmen/awk-mcp Checked 1 hour ago Published 23 days ago

Awk 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.

ParameterTypeDescription
program *string
fieldSeparatorstring
filestring
inputstring
timeoutMsinteger

run_script_file

Run an AWK program from a .awk file. Use input text or a file, never both.

ParameterTypeDescription
scriptPath *string
fieldSeparatorstring
filestring
inputstring
timeoutMsinteger

check_program

Parse an AWK program without real input and return its syntax errors.

ParameterTypeDescription
program *string
fieldSeparatorstring

extract_columns

Print selected 1-based columns from delimited input.

ParameterTypeDescription
columns *array
input *string
fieldSeparatorstring
outputSeparator

filter_rows

Keep rows where an AWK expression is true, e.g. $3 > 10 or $1 == "ok".

ParameterTypeDescription
condition *string
input *string
fieldSeparatorstring
outputSeparator

sum_column

Sum one numeric column.

ParameterTypeDescription
column *integer
input *string
fieldSeparatorstring

average_column

Average one numeric column. Empty input returns 0.

ParameterTypeDescription
column *integer
input *string
fieldSeparatorstring

unique_column

Print each distinct value in a column once, in first-seen order.

ParameterTypeDescription
column *integer
input *string
fieldSeparatorstring

sort_by_column

Sort lines by one 1-based column, optionally numeric and descending.

ParameterTypeDescription
column *integer
input *string
fieldSeparatorstring
numericboolean
reverseboolean

join_files

Join two delimited files on numeric key columns.

ParameterTypeDescription
left *string
leftKey *integer
right *string
rightKey *integer
fieldSeparatorstring
outputSeparator

count_rows

Count input rows.

ParameterTypeDescription
input *string
fieldSeparatorstring

print_version

Show the local AWK implementation and version when available.