csvto-mcp

v0.1.2
io.github.Bishop81/csvto-mcp Checked 2 days ago Published 3 months ago

Local CSV, JSON and Excel conversion.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

inspect_file Inspect a CSV, JSON or Excel file

Report the columns, row count and any parse warnings for a CSV, JSON or Excel file without loading the whole thing into the conversation. Use before converting so you know the shape of the data.

ParameterTypeDescription
input_path *stringAbsolute path to the source file on this machine.
formatstringDefaults to detection from the file extension.
has_headerbooleanTreat the first row as column names. Default true.

read_rows Read rows from a CSV, JSON or Excel file

Read a slice of rows from a tabular file, with optional search and sorting, returning them as a compact table. Use this to look at part of a large file without pulling the whole thing into the conversation: ask for the rows you need rather than reading the file directly.

ParameterTypeDescription
input_path *stringAbsolute path to the source file on this machine.
filterstringCase-insensitive text match across all columns.
formatstringDefaults to detection from the file extension.
has_headerbooleanTreat the first row as column names. Default true.
limitintegerRows to return. Default 50, maximum 500.
offsetintegerRows to skip. Default 0.
sort_columnstringColumn name to sort by.
sort_directionstringDefault asc. Empty cells always sort last.

csv_to_excel Convert CSV to Excel

Convert a CSV file on this machine to Excel and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded. Types are inferred per column, so leading zeros and formatting survive instead of being mangled.

ParameterTypeDescription
input_path *stringAbsolute path to the source file on this machine.
has_headerbooleanTreat the first row as column names. Default true.
max_rowsintegerStop after this many data rows.
output_pathstringWhere to write the result. Defaults to the input path with a new extension.
sheet_namestringWorksheet name. Defaults to Sheet1.

csv_to_pdf Convert CSV to PDF

Convert a CSV file on this machine to PDF and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded. PDF text is limited to latin-1; characters outside it become question marks and are reported. Types are inferred per column, so leading zeros and formatting survive instead of being mangled.

ParameterTypeDescription
input_path *stringAbsolute path to the source file on this machine.
has_headerbooleanTreat the first row as column names. Default true.
max_rowsintegerStop after this many data rows.
orientationstringUse landscape for wide tables.
output_pathstringWhere to write the result. Defaults to the input path with a new extension.
page_sizestringPage size. Default a4.
titlestringOptional title printed above the table.

csv_to_json Convert CSV to JSON

Convert a CSV file on this machine to JSON and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded. Types are inferred per column, so leading zeros and formatting survive instead of being mangled.

ParameterTypeDescription
input_path *stringAbsolute path to the source file on this machine.
has_headerbooleanTreat the first row as column names. Default true.
indentintegerIndent width. 0 for compact output.
max_rowsintegerStop after this many data rows.
output_pathstringWhere to write the result. Defaults to the input path with a new extension.
shapestringobjects gives one object per row keyed by column name (default).

json_to_csv Convert JSON to CSV

Convert a JSON file on this machine to CSV and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded.

ParameterTypeDescription
input_path *stringAbsolute path to the source file on this machine.
has_headerbooleanTreat the first row as column names. Default true.
max_rowsintegerStop after this many data rows.
output_pathstringWhere to write the result. Defaults to the input path with a new extension.

excel_to_csv Convert Excel to CSV

Convert a Excel file on this machine to CSV and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded.

ParameterTypeDescription
input_path *stringAbsolute path to the source file on this machine.
has_headerbooleanTreat the first row as column names. Default true.
max_rowsintegerStop after this many data rows.
output_pathstringWhere to write the result. Defaults to the input path with a new extension.
sheetstringWorksheet name. Defaults to the first sheet.

csv_to_xml Convert CSV to XML

Convert a CSV file on this machine to XML and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded. Types are inferred per column, so leading zeros and formatting survive instead of being mangled.

ParameterTypeDescription
input_path *stringAbsolute path to the source file on this machine.
has_headerbooleanTreat the first row as column names. Default true.
max_rowsintegerStop after this many data rows.
output_pathstringWhere to write the result. Defaults to the input path with a new extension.
root_elementstringRoot element name. Default "rows".
row_elementstringPer-record element name. Default "row".

csv_to_sql Convert CSV to SQL

Convert a CSV file on this machine to SQL and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded. Types are inferred per column, so leading zeros and formatting survive instead of being mangled.

ParameterTypeDescription
input_path *stringAbsolute path to the source file on this machine.
create_tablebooleanInclude a CREATE TABLE statement. Default true.
dialectstringIdentifier quoting style.
has_headerbooleanTreat the first row as column names. Default true.
max_rowsintegerStop after this many data rows.
output_pathstringWhere to write the result. Defaults to the input path with a new extension.
table_namestringTarget table name. Default "my_table".

csv_to_markdown Convert CSV to Markdown

Convert a CSV file on this machine to Markdown and write it to disk. Returns a summary rather than the file contents, so large files do not fill the conversation. Runs locally: nothing is uploaded. Types are inferred per column, so leading zeros and formatting survive instead of being mangled.

ParameterTypeDescription
input_path *stringAbsolute path to the source file on this machine.
has_headerbooleanTreat the first row as column names. Default true.
max_rowsintegerStop after this many data rows.
output_pathstringWhere to write the result. Defaults to the input path with a new extension.